[SOLVED] Category order does not match Category Management page

Register an Account
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2008, 02:44 PM
New Pligger
 
Join Date: Feb 2008
Posts: 7
I have changed the order of the categories in the category management page. However my category order does not match the order of categories in the category management page.

Is there a way to refresh the categories? or reset them?
  #2 (permalink)  
Old 09-08-2008, 03:14 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Try clearing the template cache by deleting the contents of /templates_c.
Sometimes you have to confirm that the categories shifted in the category manager by revisiting the page. You sometimes need to reset the order for it to catch.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
  #3 (permalink)  
Old 09-08-2008, 06:08 PM
New Pligger
 
Join Date: Feb 2008
Posts: 7
Is there a way to do it directly from the database?
without having to hassle with the management page?
If I can order it manually that would be great.
  #4 (permalink)  
Old 09-08-2008, 06:33 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
You could open up phpmyadmin and navigate to your pligg_categories table then change the field numbers for "category_order" to reflect the order you want them to display in.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
  #5 (permalink)  
Old 09-08-2008, 06:56 PM
New Pligger
 
Join Date: Feb 2008
Posts: 7
After taking a look at the cat table. i'm seeing. i have
0 for the category parent.
looking at the category order column i see that i have the entries in the right order. But the navigation isn't changing.

Where is the query that controls the display of the navigation? it looks like it's not ordering by the category_order for some reason. I'd like to double check if that is the case.
  #6 (permalink)  
Old 09-08-2008, 07:36 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Did you do as I suggested and clear the /templates_c directory? The sidebar content is cached a lot of the time and won't rebuild itself unless you delete the cache.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
  #7 (permalink)  
Old 09-09-2008, 12:45 PM
New Pligger
 
Join Date: Feb 2008
Posts: 7
Absolutely sure did. However that was not the issue.

we are using a template called yournews.
after looking at the mysql query that gets the categories. it seems that it was not ordering by the category order. it was just grabbing the categories with no ordering at all.

after adding an order to the query it worked like a charm.

thank you for helping. i appreciate it.

If anyone else needs this fixed. Follow these steps.
1. In the yournews template folder open dropmenu.tpl
2. look for line 41
3. replace this
PHP Code:
$rq  "SELECT * FROM "table_prefix "categories WHERE category_parent = '0' "
with
PHP Code:
$rq  "SELECT * FROM "table_prefix "categories WHERE category_parent = '0' order by category_order "
4. look for line 54
5. replace this
PHP Code:
 $rq "SELECT * FROM ".table_prefix "categories WHERE category_parent = '".$rez3[$i]["category__auto_id"]."'"
with
PHP Code:
 $rq "SELECT * FROM ".table_prefix "categories WHERE category_parent = '".$rez3[$i]["category__auto_id"]."'  order by category_order"
6. save and upload.

Hope this helps others.
  #8 (permalink)  
Old 09-09-2008, 02:31 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Glad it wasn't an issue with Pligg.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Questions and Comments 71 03-29-2011 10:03 PM
Upgrade to Pligg 1.0.0, blank category management page onlinebisnes Questions and Comments 4 07-03-2009 12:47 AM
Pligg Categories Yankidank Wiki Articles 1 12-17-2008 11:10 AM
Changing Category from the News Management page? XSP Questions and Comments 6 07-26-2007 05:58 PM
About page after login, Sort news by, Category order, and much Slower bizdiggers Questions and Comments 4 02-22-2007 07:36 PM


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