Forums

Comments link showing up in places where it shouldn't

bruno71 12 Nov, 2008
Thanks. I searched the forums briefly for a solution before I posted, but didn't find it.

HOWEVER - it only solved no 2 in my original post. The unwanted link inside the Eventlist component page is still there. Sorry to bother you with these things, but I simply do not have enough PHP knowledge to understand how I can solve it myself... :?

/Bruno
Max_admin 12 Nov, 2008
No problems, show me the fix code you added and show me the non SEF URL to the events page!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bruno71 12 Nov, 2008
Ah! Got it. I changed line 17 in the ChronoComments.php plugin to:

if((JRequest::getVar('option') == 'com_newsfeeds')||(JRequest::getVar('option') == 'com_contact')||(JRequest::getVar('option') == 'com_eventlist'))return;


Things now work perfectly again!
Thank you so much for your help!

/B
Max_admin 13 Nov, 2008
Great, Thanks!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
warriorgov79 20 Nov, 2008
Hi Max,

Sorry to be such a pain. I have the "Read XX Comments>>" bug on pages with Section/Category lists; SEF turned on and "Add suffix to URLs" off in Joomla ( 1.5.8 ) global config.

All of the links point to: mydomain.com/submit-an-article#comments.

Can't find exactly where in the /plugins/content/ChronoComments.php file to apply the fix; nothing in my error log. Help appreciated. Thanks...

Aloha,
warriorgov79
warriorgov79 20 Nov, 2008
Got it!

After:
if((JRequest::getVar('print') == '1')&&($configs->get('disable_onprint') == '1'))return;

Added:
if(JRequest::getVar('view') == 'section')return;
if(JRequest::getVar('view') == 'category')return;
Max_admin 20 Nov, 2008
great!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.