Beta 9.9.5- Bug in Categories & Latest comments sidebar modules

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2008, 05:53 PM
New Pligger
Pligg Version: 9.8
Pligg Template: unknown
 
Join Date: Dec 2007
Posts: 10
Hi,

While building a template for the Beta 9.9.5 that I recently downloaded,
I noticed that the Categories and Latest comments sidebar modules were throwing a Javascript error on clicking the button that collapses (or expands) them.

Looking at the problem a little closer, I noticed that the
onclick="new Effect.toggle('panelID','blind', ....
handler for both of these modules was not set properly.

While the panelID for Latest comments was empty, that of the categories was set to "sl" instead of the required "cats".

To fix the Latest Comments, I had to add this line of code to sidebar_comments.php-
$main_smarty->assign('ss_toggle_id', 'latcomments');

To fix categories, I had to amend sidebar_modules/categories.tpl, so that the line
new Effect.toggle('sl','blind',
now became
new Effect.toggle('cats','blind',

Hope this helps someone.

Regards
KK
Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 06:30 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Thanks Kallu
Noted and added to the SVN.
Reply With Quote
  #3 (permalink)  
Old 08-06-2008, 06:45 PM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 399
works great thank you very much
Reply With Quote
  #4 (permalink)  
Old 08-07-2008, 08:28 AM
New Pligger
 
Join Date: Jul 2008
Posts: 12
Quote:
Originally Posted by kallu View Post
Hi,

While building a template for the Beta 9.9.5 that I recently downloaded,
I noticed that the Categories and Latest comments sidebar modules were throwing a Javascript error on clicking the button that collapses (or expands) them.

Looking at the problem a little closer, I noticed that the
onclick="new Effect.toggle('panelID','blind', ....
handler for both of these modules was not set properly.

While the panelID for Latest comments was empty, that of the categories was set to "sl" instead of the required "cats".

To fix the Latest Comments, I had to add this line of code to sidebar_comments.php-
$main_smarty->assign('ss_toggle_id', 'latcomments');

To fix categories, I had to amend sidebar_modules/categories.tpl, so that the line
new Effect.toggle('sl','blind',
now became
new Effect.toggle('cats','blind',

Hope this helps someone.

Regards
KK

When I enable google adsense revenue module, all my side bar desapear. any help?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Comments in Sidebar revolver Questions and Comments 23 12-01-2009 02:55 AM
[SOLVED] Beta 9.9.5 Bug- Cannot create new categories kallu Questions and Comments 10 01-31-2009 08:55 PM
9.9.5 yget Categories sidebar display bug bobjuch Questions and Comments 0 10-25-2008 02:08 AM
latest comments sidebar doesn't show. How? hillord Questions and Comments 1 05-28-2007 08:03 AM
Installing all the modules in Pligg 9.0 Beta...and then where is the categories menu? leoperez Questions and Comments 2 01-16-2007 08:47 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