Buy Now
Sign in

Customize Read Comments link?

daobydesign , November 11 2008, 09:46
D
daobydesign 2
November 11 2008, 09:46 #16838
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
admin 28
November 11 2008, 10:55 #16851
Hi DBD,

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

Regards
Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
daobydesign 2
November 11 2008, 11:10 #16855
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
admin 28
November 11 2008, 21:43 #16895
Hi, try to add the CSS class there, put the text inside 2 span tags with some class ?

Regards
Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
S
Sadowskin 14
November 14 2008, 15:13 #17130
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
a.chronocommentslink {  
[your css link-visited-active style]
}
a.chronocommentslink:hover {  
[your css hover-style]
}
?
Guest
November 20 2008, 23:08 #17703
I'm having trouble finding the language file. Can you please tell me what the path to the file is?
admin 28
November 20 2008, 23:21 #17707
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
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
K
kbrookes 13
December 06 2008, 23:07 #18759
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 64
December 06 2008, 23:37 #18761
Hi kbrookes,

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

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
K
kbrookes 13
December 06 2008, 23:45 #18762
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 64
December 07 2008, 07:21 #18769
Hi kbrookes,

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

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
J
johnny 24
January 28 2009, 18:22 #22101
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?
admin 28
January 28 2009, 20:07 #22115
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
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
J
johnny 24
January 28 2009, 23:10 #22135
i will put some class in span tag and report back so everyone knows is it possible this way
A
AndreasV 1
March 04 2009, 17:51 #25395
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
admin 28
March 04 2009, 18:24 #25401
Thanks for posting the fix!

Regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!