Go Back   Pligg Forum > Pligg Help > Wiki Articles
 
 
LinkBack Article Tools Display Modes
  #1 (permalink)  
Old 09-03-2007, 04:23 PM
Yankidank's Avatar
Yankidank Yankidank is offline
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Pligg Founder
Pligg Version: 9.9
Pligg Template: Blue Green Str
 
Join Date: Dec 2005
Location: Savannah, GA
Posts: 1,359
Downloads: 58
Uploads: 6
Thanks: 88
Thanked 139 Times in 93 Posts
Category Management

YouTube - Pligg Category Management
If you are able to see this message it means that you don't have flash installed or that the video server is down.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.

Last edited by Yankidank : 09-04-2007 at 11:40 PM.
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2  

Category Management

From Pligg the Category Management control panel allows you to quickly add new categories for stories to your site (ie: science, technology, sports, etc.)
Category names may contain spaces, dashes and slashes, but not apostrophes.

Changing the order of categories


As of Pligg version 'beta 9' you can change the order of categories by ´drag & drop´ in the Category Manager control panel. To move a category to another position you can drop it on one of the grey boxes above or below a category.
When you drop a category on an existing category, it becomes a subcategory in the hierarchy.

Deleted 'all'


When you accidentally deleted the 'all' category, Pligg won't function correctly and you won't be able to restore it through the Category Management control panel. You can restore the category at the database level, by issuing the following SQL statements to MySQL:

Code:
 mysql> INSERT INTO pligg_categories VALUES (0, 'en', 0, 0, 'all', 'all', 0, 0, 2, 0, '000000');
Query OK, 1 row affected (0.00 sec)
mysql> UPDATE pligg_categories SET category__auto_id = 0 WHERE category_name = 'all' LIMIT 1;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
Note that you may need to change these statements:
  • when you choose another tablename prefix than 'pligg_' during installation
  • when your database language is something other than 'en'

When you move your DB


The categories all disappear in other circumstances. Apparently this occurs after you move your database, because of an AUTO-INCREMENT setting which throws off the value 0 for the ID of the root category.
The quick fix -- which is even simpler than what is described above -- is to change the category__auto_id to 0 for the category_name 'all' in the pligg_categories table/ This can be done with the UPDATE shown above, or through graphical MySQL browsing/editing tools such as HeidiSQL or the MySQL management console provided by many hosting services.


Contributors:
Created by Yankidank, 09-03-2007 at 04:23 PM
Last edited by Yankidank, 09-12-2007 at 08:26 PM
1 Comments , 1216 Views
 



Article Tools
Display Modes
Posting Rules
You may not create new articles
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
bold the main category, but unbold the subcategory? abcdefgary Pligg Templates 11 01-28-2008 04:15 PM
Category Management Error jeffuk General Help 12 07-20-2007 03:43 AM
[Fixed] Ampersand (&) in Category name shows All Biomech Bug Report 5 03-16-2007 06:02 PM
non-english category names NEC Bug Report 6 02-16-2007 08:08 AM
new category code - improvements? cruci Pligg Mods 4 01-06-2007 12:35 PM


LinkBacks Enabled by vBSEO 3.0.0