Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: [Solved] "Read more" and "Comment" style
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] "Read more" and "Comment" style  (Read 32512 times)
0 Members and 1 Guest are viewing this topic.
pisolino
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« on: October 02, 2009, 18:43:24 »

(...sorry for my no good english...)

This is my first post.

Your extension is fantastic. It is a pity that it is not in JED.

Can you help me to change "Read more" and "Comment" Style?
I'd like Jcomment button have the same style of my template. I use "Pinboard Template" (Yootheme) http://www.yootheme.com/blog/category/root/3

I think it is enough change default css jcomment style, but I do not know CSS, PHP, etc ...

Can you help me Cry?
« Last Edit: June 29, 2010, 21:03:02 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #1 on: October 02, 2009, 18:53:49 »

Search the forum, I'll post info about your question some days ago. Try to use word 'jcomments-links' in search box.

Quote
Your extension is fantastic. It is a pity that it is not in JED.
last 3 weeks it waiting in approving queue in JED.
« Last Edit: October 02, 2009, 18:56:05 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
pisolino
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #2 on: October 02, 2009, 19:01:14 »

You are referring to this?
http://www.joomlatune.com/forum/index.php/topic,288.0.html
.....or http://www.joomlatune.com/forum/index.php/topic,616.0.html
« Last Edit: October 02, 2009, 19:05:00 by pisolino » Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #3 on: October 02, 2009, 19:09:33 »

No, see here: Re: Readmore link
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
pisolino
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #4 on: October 02, 2009, 19:15:45 »

I try to contact YOOtheme support to understand what is the reference class.
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #5 on: October 02, 2009, 19:18:14 »

I think that you can disable using JComments' readmore style in JComments content plugin. It is simple...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
pisolino
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #6 on: October 02, 2009, 19:38:46 »

I attach the result. Now i have my template "read more" button and a simple "comment" button style.

I'd like "read more" and "comment" button as my tamplate style. How can i do?


* Jcomment.jpg (55.54 KB, 1024x560 - viewed 2377 times.)
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #7 on: October 02, 2009, 19:51:11 »

In this case you must revert settings (enable using JComments style) and then in /components/com_jcomments/tpl/default/style.css setup styles for these links.

There are 3 CSS classes for it:
Code: (css)
.jcomments-links {margin-top: 10px; clear:both; text-align: left}
.comment-link, .readmore-link{padding: 0 5px 5px 14px;background-image: url(images/jc_blog.gif);background-repeat: no-repeat}
.comment-link {background-position: 0 -27px}
.readmore-link {background-position: 0 2px}

The 'jcomments-links' sets params for links container (such as margin and align) you can stay it without any changes.

All you need - replace lines:
Code: (css)
.comment-link, .readmore-link{padding: 0 5px 5px 14px;background-image: url(images/jc_blog.gif);background-repeat: no-repeat}
.comment-link {background-position: 0 -27px}
.readmore-link {background-position: 0 2px}
with
Code: (css)
.comment-link {/* put here style definition for comment link */}
.readmore-link {/*copy here style definition for readmore link from your template */}

Or you can go by another way and remove lines:
Code: (css)
.comment-link, .readmore-link{padding: 0 5px 5px 14px;background-image: url(images/jc_blog.gif);background-repeat: no-repeat}
.comment-link {background-position: 0 -27px}
.readmore-link {background-position: 0 2px}
from JComments styles file and then change your template by adding '.comment-link' and '.readmore-link' to Readmore class definition in your template. For example search:
Code:
a.readmore {
and replace with
Code:
a.readmore, .comment-link, .readmore-link {

Or... last way.. you can edit /components/com_jcomments/tpl/default/tpl_links.php and replace class="readmore-link" with class="readmore"...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
pisolino
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #8 on: October 02, 2009, 23:37:28 »

Ok stop now!

I test all suggestions and test some other solution!   ......soon
Logged
1001notte
Newbie
*

Karma: 0
Offline Offline

Gender: Male
Posts: 6


WWW Email
« Reply #9 on: June 29, 2010, 18:48:51 »

Or... last way.. you can edit /components/com_jcomments/tpl/default/tpl_links.php and replace class="readmore-link" with class="readmore"...

I've same problem using Vox template by YooTheme.

The "readmore" is not the one used by my template.

YooTheme team confirmed me I have to do some change in JComment files, but it's hard to understand the right one.

I would like to do suggested modification to tpl_links.php file, but the file doesn't contain the class mentioned.

Can you help me?

Thanks
« Last Edit: June 29, 2010, 18:50:23 by 1001notte » Logged

Joomla + JomSocial + Jcomment
www.1001notte.com
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #10 on: June 29, 2010, 19:22:44 »

The "readmore" is not the one used by my template.
You could edit Content - JComments plugin parameters and set your own CSS class name for both links (Readmore and Comments). The default Joomla's readmore class is 'readon'.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
1001notte
Newbie
*

Karma: 0
Offline Offline

Gender: Male
Posts: 6


WWW Email
« Reply #11 on: June 29, 2010, 20:43:15 »

Thanks! I didn't know about "Content JComments Plugin" parameters.
Solved my problem. Thanks.
Logged

Joomla + JomSocial + Jcomment
www.1001notte.com
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: [Solved] "Read more" and "Comment" style
 
Jump to: