Support Forums - Classified Ads Script Osclass

Osclass plugin support => Radius Search Plugin => Topic started by: san37 on December 30, 2015, 07:51:03 PM

Title: Items are only one category
Post by: san37 on December 30, 2015, 07:51:03 PM
I want to make on the card were ads for just one category, real estate
Please tell me what files are responsible for this, and what am I looking for?
Title: Re: Items are only one category
Post by: MB Themes on December 30, 2015, 08:00:54 PM
@san4747
Did not fully understand what you want to do...
Title: Re: Items are only one category
Post by: san37 on December 31, 2015, 12:50:42 PM
I want the map to display only ads from category real estate, houses apartments
Other categories to ban the placement of ads on the map

Where to start, how to implement it please
Title: Re: Items are only one category
Post by: MB Themes on December 31, 2015, 12:55:38 PM
@san4747
Go to file:
oc-content/plugins/radius_search/listings_map.php

Here is everything regarding map and items on it.
Try this following.

Find line:
Code: [Select]
$radiusSearch = new Search();
Bellow this line add code:
Code: [Select]
$radiusSearch->addCategory( 4 );
Replace 4 with ID of category you want.
Not sure if it will works, but you got basic idea ;)
Title: Re: Items are only one category
Post by: san37 on January 09, 2016, 06:40:05 PM
So did not help, the card does not work, are there any other options, or where you can read about it?
That only one category is displayed
Title: Re: Items are only one category
Post by: MB Themes on January 09, 2016, 06:47:21 PM
@san37
Best is to check:
http://www.w3schools.com/php/php_intro.asp

Or directly their documentation.