Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Bug Report



[SOLVED] Fix: Sub Categories Total Count

Found or fixed a small bug in Pligg? Post it here so we can update appropriately.


 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2008, 08:13 PM
cmstheme's Avatar
Coder
Pligg Version: 9.9
Pligg Template: Squaretle
Donation Level 4 
 
Join Date: Jan 2007
Location: Philippines
Posts: 287
[SOLVED] Fix: Sub Categories Total Count

Description: A fix to get the correct total number of subcategories in each parent category.
Pligg Version Affected: Beta 9.8.2, 9.9.0 and 9.9.5

Open /libs/dbtree.php, go to LINE 170 and find:
PHP Code:
if($cat->category_parent == $catid && $cat->category__auto_id <> && $cat->category_lang == $dblang
Replace the above code with:
PHP Code:
if($cat->category_parent == $catid && $cat->category__auto_id <> 0

Unleash The True Beauty Of Pligg CMS: Join Our Pligg Template Club | Featured Content Gallery Pligg Module
  #2 (permalink)  
Old 08-24-2008, 08:25 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,390
Thanks cmstheme
Added to the svn


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error: &quot;There is a problem with the categories table. Error CA:001.&quo lacasuela Installation and Upgrade Help 7 08-06-2008 06:57 AM
[SOLVED] Error While adding categories slick33 General Help 1 08-01-2008 11:58 AM
[SOLVED] How to disable default rss feed for categories ? goopopp General Help 2 08-19-2007 02:08 PM
[SOLVED] White space in my categories side panel AshMCairo General Help 5 07-20-2007 10:48 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development