[SOLVED] Fix: Sub Categories Total Count

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2008, 08:13 PM
cmstheme's Avatar
Donor/Coder
Pligg Version: 9.9
Pligg Template: Squaretle
Donation Level 4 
 
Join Date: Jan 2007
Location: Philippines
Posts: 380
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
Reply With Quote
  #2 (permalink)  
Old 08-24-2008, 08:25 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
Thanks cmstheme
Added to the svn


Download the full Pligg Module Pack





Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Beta 9.9.5 Bug- Cannot create new categories kallu Questions and Comments 10 01-31-2009 07:55 PM
[SOLVED] error: &quot;There is a problem with the categories table. Error CA:001.&quo lacasuela Questions and Comments 7 08-06-2008 06:57 AM
[SOLVED] How to disable default rss feed for categories ? goopopp Questions and Comments 2 08-19-2007 02:08 PM
[SOLVED] 9.6 - Problem with Categories and Friendly URL latin Questions and Comments 5 08-07-2007 07:49 AM
[SOLVED] White space in my categories side panel AshMCairo Questions and Comments 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! Make a donation to support Pligg CMS development