Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2008, 08:19 PM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 138
Thanks: 2
Thanked 36 Times in 14 Posts
category parent 9.9(fix)

how i solved category-parent problem in last svn, essential for many mods (menudigglike,submitdigglike)
open config.php on line 125 add category_parent into the select
Code:
		$the_cats = $db->get_results("select category_parent, category_id, category__auto_id, lft, rgt, category_name, category_safe_name, category_lang, category_desc, category_keywords from ".table_categories." ORDER BY lft ASC;");
do the same for admin_categories.php on line 40
remember to delete all files from cache folder
if u solve tnx me
__________________
My pligg site: www.upnews.it

Last edited by peppolone; 04-04-2008 at 10:42 PM..
Reply With Quote
The Following 5 Users Say Thank You to peppolone For This Useful Post:
  #2 (permalink)  
Old 04-05-2008, 12:30 AM
Designer
Pligg Version: 9.9.
 
Join Date: Mar 2007
Posts: 159
Thanks: 1
Thanked 15 Times in 11 Posts
Send a message via MSN to skins4webs
Have not tried it but good job if it works!
__________________
http://www.illestlyrics.com, hip-hop site
http://www.qkin.com, Web development site
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 07:18 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 226
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to xiesi
conifg.php on line 125?

the code on line 125 is:

// start summarization and caching of mysql data
__________________
www.qelele.com齐乐乐
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 07:38 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 226
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to xiesi
i got error:

Warning: Unknown column 'category_desc' in 'field list' in E:\wwwroot\qelele\wwwroot\libs\db.php on line 233

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\html1.php on line 14

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\html1.php on line 174

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 73

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 73

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 73

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194
__________________
www.qelele.com齐乐乐
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 07:41 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 226
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to xiesi
i add category_parent into the select in conifg.php

$the_cats = $db->get_results("select category_parent, category_id, category_name, category_safe_name, category_lang from ".table_categories.";");


modify the admin_category.php to:

$the_cats = $db->get_results("select category_parent, category_id, category__auto_id, lft, rgt, category_name, category_safe_name, category_lang, category_desc, category_keywords from ".table_categories." ORDER BY lft ASC;");

is it correct?
__________________
www.qelele.com齐乐乐
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 08:19 AM
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 58
Thanks: 11
Thanked 0 Times in 0 Posts
I have try too and give me

Warning: Unknown column 'category_desc' in 'field list' in /var/www/vhosts/xenfra.com/httpdocs/libs/db.php on line 233

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xenfra.com/httpdocs/libs/html1.php on line 14

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xenfra.com/httpdocs/libs/html1.php on line 171

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xenfra.com/httpdocs/libs/dbtree.php on line 76
There is a problem with the categories table. Error CA:001.
__________________
---------------------------------------------------------------------------------------
Free News - Video Music - Gossip News - Viaggi e Vacanze - Cani - Gatti - Travel Rss
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 11:25 AM
peppolone's Avatar
Pligg Donor
Pligg Version: 995-54
Pligg Template: upnews.it
 
Join Date: Dec 2006
Location: rome
Posts: 138
Thanks: 2
Thanked 36 Times in 14 Posts
$the_cats need to be the same in both files. i don't know what is your version, but in your config.php it is only a part...
Try to make the function in your config.php equal to admin_categories.php
$the_cats = $db->get_results("select category_parent, category_id, category__auto_id, lft, rgt, category_name, category_safe_name, category_lang, category_desc, category_keywords from ".table_categories." ORDER BY lft ASC;");
__________________
My pligg site: www.upnews.it

Last edited by peppolone; 04-08-2008 at 11:34 AM..
Reply With Quote
The Following User Says Thank You to peppolone For This Useful Post:
  #8 (permalink)  
Old 04-08-2008, 12:33 PM
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 58
Thanks: 11
Thanked 0 Times in 0 Posts
I wrong something before
__________________
---------------------------------------------------------------------------------------
Free News - Video Music - Gossip News - Viaggi e Vacanze - Cani - Gatti - Travel Rss
Reply With Quote
  #9 (permalink)  
Old 04-09-2008, 12:59 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 226
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to xiesi
i used 9.9.0.
I just change $the_cats to be the same in both files.but i got the error:

Warning: Unknown column 'category_desc' in 'field list' in E:\wwwroot\qelele\wwwroot\libs\db.php on line 233

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\html1.php on line 14

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\html1.php on line 174

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 73

Warning: Invalid argument supplied for foreach() in E:\wwwroot\qelele\wwwroot\libs\dbtree.php on line 194
__________________
www.qelele.com齐乐乐
Reply With Quote
  #10 (permalink)  
Old 04-09-2008, 05:04 AM
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 58
Thanks: 11
Thanked 0 Times in 0 Posts
Are you sure? yesterday I had same error and I try to check another time and upload the 2 files
__________________
---------------------------------------------------------------------------------------
Free News - Video Music - Gossip News - Viaggi e Vacanze - Cani - Gatti - Travel Rss
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Suggestions 64 11-23-2008 07:37 PM
Parent category blank page casa1964 General Help 1 05-22-2008 11:37 AM
Find parent category okgaz2 General Help 1 04-14-2008 03:27 PM


Search Engine Friendly URLs by vBSEO 3.2.0