Forums

Customize Read Comments link?

daobydesign 11 Nov, 2008
Is there any way to customize the text and/or style of the "Read X Comments >>" link?

If anyone knows where this link is generated, please let me know and I'll simply hack the code to add a class for now. For future versions, perhaps adding a class to the link so it can be a little more easily styled might be considered.

Regards,
DBD
Max_admin 11 Nov, 2008
Hi DBD,

its in the language file of the component and the plugin!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
daobydesign 11 Nov, 2008
Awesome Max, thanks for the super fast response, you're a rockstar. 8)

I'm guessing though that it will only allow the changing of the text, not the actual code to which a class could be attached to for styling with CSS. So perhaps that's still a suggestion for future versions.

DBD
Max_admin 11 Nov, 2008
Hi, try to add the CSS class there, put the text inside 2 span tags with some class ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 20 Nov, 2008
Hi derok,

language files for different languages are under language/ or administrator/language/ then check for files which have the text "chronocomments"

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kbrookes 06 Dec, 2008
You know what's weird? I'm trying to change this as well, I've been editing the en-GB.plg_content_chronocomments.ini file in /language/en-GB/ - it's the only file I can find the Read N Comments text in. However, even after editing, the changes don't appear on the site.

The code has DEFINITELY been changed and uploaded - all changes occurred on the livesite.

I can't find any other files that have the text string I'm after.
GreyHead 06 Dec, 2008
Hi kbrookes,

Try line 15 of language/en-GB/en-GB.com_chronocomments.ini

Bob
kbrookes 06 Dec, 2008
That file doesn't exist.

I have en-GB.plg_content_chronocomments.ini in language/en-GB, and the variable is on line 15 in this file. But I've changed it and it's made no difference.

edited - fixed it. I duplicated the above file and renamed it to the filename you gave. Thanks!
GreyHead 07 Dec, 2008
Hi kbrookes,

It sounds as though the original file was missed on the installation somehow :-(

Bob
johnny 28 Jan, 2009
does this .chronocomments like affect immediately link or do i need to put a span class and does it work in IE?

Can someone give me correct answer pls?
Max_admin 28 Jan, 2009
Hi Johnny,

I think you may need to try this using Firebug or a static HTML file until you know the exact correct syntax first then do any of the suggested methods!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
johnny 28 Jan, 2009
i will put some class in span tag and report back so everyone knows is it possible this way
AndreasV 04 Mar, 2009
Hi @ all,

thank you for your advises. I realized it by the following way:

open:
plugins/content/ChronoComments.php

go to line 142 and find:
$language = '<br /><a href="'.$page_link.'#comments">'.JText::_( 'READ N COMMENTS' )."</a>";


add the desired class:
$language = '<br /><a href="'.$page_link.'#comments" class="readon">'.JText::_( 'READ N COMMENTS' )."</a>";


Last but not least:

open:
components/com_chronocomments/style.css

insert the defined class (fx copy and paste the readon - class from your Joomla-Template)

redo it with the style-ie6.css

Now the Link to the comments looks just like the "read on"-link of your Joomla Template.

Greetings from Berlin/Germany
Andy
Max_admin 04 Mar, 2009
Thanks for posting the fix!🙂

Regards,
Max
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.