View Full Version : Hide/Empty categories?
ohiobiz
05-18-2006, 08:52 PM
Is there any way to hide categories AND/OR don't show empty categories?
Nick Collins
05-19-2006, 07:40 AM
Sure, you only need to disapprove these categories.
ohiobiz
05-19-2006, 12:58 PM
Thanks Nick.
Nick Collins
05-22-2006, 05:47 AM
Thanks Nick.
No problem ;)
lepkio
12-27-2007, 07:05 AM
Right, but in that case new links can not be suggested to the category that is in approval status. It would be nice to have that there is a category option to select when suggesting a link but that category should not be shown if empty (if there are no links). What file should be modified for this to work?
Nikita B.
12-27-2007, 10:40 AM
Hello
Just make some changes in includes/classes/esynCategory.php
find function getAllByParent
and code in this function
$sql .= "AND t1.`status` = 'active' ";
after this code add
$sql .= "AND t1.`num_all_listings` != '0'";
You also can play with it - to add this line in other functions (getNeighbours etc.) and see result.
Don't forget make backup of esynCategory.php :)
Nikita B.
12-27-2007, 11:14 AM
Oh sorry :)
In Omega version this file is DirCategory.php
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.