How to show country specific ads in Osclass?

4 replies
Hi geeks,
I have setup a classified site, Studier.org, with Osclass. Now, I just don't know anything about PHP or any other programming. My total experience with the web is limited to blogging with Blogspot. So, need your help earnestly to cope with the oncoming difficulties.
What I want about Studier is that if a user comes from India, he sees only ads from India, the one from Russia is exposed only to Russian content, and so on.
How can I do that?
I don't mind setting up it on the same domain or assigning separate subdomains like in.studier.org or ru.studier.org. You can suggest either way, but please in a simpler language. Programmese is all Greek to me!
#ads #classifieds #country #country targeted #osclass #show #specific #subdomain
  • Profile picture of the author Andrew H
    Yes, Osclass allows you to run regions as a subdomain (ie: india.studier.org). It's not super simple though. Read this blog post: Use categories, countries, regions or cities as subdomains | Osclass Development Updates
    Signature
    "You shouldn't come here and set yourself up as the resident wizard of oz."
    {{ DiscussionBoard.errors[9166272].message }}
    • Profile picture of the author sbagde
      Yes, It is possible in OSClass if the theme which we used is compatible for country wise search. Other wise you need to customized it. Or if any kind of plugin is available for this.

      Check this for OSClass Plugins
      {{ DiscussionBoard.errors[10212856].message }}
  • Profile picture of the author iWEB Experts
    Here the method currently I'm use to create subdomain work with Osclass installed on root (public_html/)

    1. Login to your cpanel
    2. Find subdomain and create new
    3. Type * on subdomain name input text field and hit Create button
    4. Edit your config.php, find
    define('WEB_PATH', 'http://yourdomain.com/');
    and replace with
    define('WEB_PATH', 'http://'.$_SERVER['HTTP_HOST'].'/');
    and save the config.php
    Don't use: define('COOKIE_DOMAIN', '.domain.tld'); for upper 3.3 version
    5. login to your administrative area, enable subdomain under Show More >Setting > advanced > subdomain type and add hostname as (yourdomain.com) without www.
    6. Disable Enable friendly urls under Show More > Settings > Permalinks
    7. Test it Enjoy, Thank you
    More details: https://phpcoder.org/others/set-city...omain-osclass/
    {{ DiscussionBoard.errors[10964285].message }}
    • Profile picture of the author Kart Martine
      hi, Experts, I saw your site it is amazing to have all the functions working well. I have a site using the same theme osclasswizards. I just add the sub domains based on regions as you said and the site is working well (100 times thanks for that~) but there is some faults I have no idea how to fix it. Can you kindly help me out of that?

      my sub domains are region1.site.com,region2.site.com..
      1. the feature listing section of region1.site.com will display the feature listing from region2, what should I do if I just want to show the feature ads from region1 on region1.site.com?
      2. the related listing of each single item page is the same problem as above. How to fix that?
      3. How to config the title of each sub domain so that the title of region1.site.com and region2.site.com are different and seo friendly? I saw your sub domains all have excellent titles.

      Many thanks!!!!
      If ok please send me a message via zdxhit@gmail.com
      {{ DiscussionBoard.errors[11078259].message }}

Trending Topics