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
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
Hi DBD,
its in the language file of the component and the plugin!
Regards
Max
its in the language file of the component and the plugin!
Regards
Max
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
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
Hi, try to add the CSS class there, put the text inside 2 span tags with some class ?
Regards
Max
Regards
Max
Span with class trick doesn't work in IE, I believe.
Correct me if I'm wrong daobydesign...
So read this:
http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=16&t=11489#p16632
Don't add the css from the post to the css-files but just
Correct me if I'm wrong daobydesign...
So read this:
http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=16&t=11489#p16632
Don't add the css from the post to the css-files but just
a.chronocommentslink {
[your css link-visited-active style]
}
a.chronocommentslink:hover {
[your css hover-style]
}
Hi derok,
language files for different languages are under language/ or administrator/language/ then check for files which have the text "chronocomments"
Regards
Max
language files for different languages are under language/ or administrator/language/ then check for files which have the text "chronocomments"
Regards
Max
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.
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.
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!
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!
Hi kbrookes,
It sounds as though the original file was missed on the installation somehow :-(
Bob
It sounds as though the original file was missed on the installation somehow :-(
Bob
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?
Can someone give me correct answer pls?
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
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
i will put some class in span tag and report back so everyone knows is it possible this way
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:
add the desired class:
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
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
Thanks for posting the fix!🙂
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.