I m new to OSClass(OpenSource Classifieds).
i know its similar to wordpress., but i'm not sure how to write my own query like how i do in wordpress.
The right side bar will have cities/regions as links to display advertisements from that city/region.
The City/Region name is passed through the URL, and as per requirement i need to change the URL as virtual subdomain.
For example if the user click city1, then the URL should be http://city1.domainname.com/ and results asusual.
I used htaccess to change the virtual subdomain redirection but stuck with city and region.
to determine whether its a city or region i need to do a check with the database, for that i need write a custom query to match the value with the table..
so that i can display the results regarding the city/region.
Any ideas for this problem i'm facing..
Thanks.
Here is how I did in one of my plugins: