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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [solved] link #addcomment
Pages: [1]   Go Down
  Print  
Author Topic: [solved] link #addcomment  (Read 3149 times)
0 Members and 1 Guest are viewing this topic.
est123
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: February 21, 2012, 22:18:46 »

Hi,

Thank you for the release. The component is the best !!!
 
I have a problem with the link : "#addcomment". The link shows "#addcomment" instead of "#addcomments". The bug notes "Firefox" and "Internet Explorer 7/8/9".

Code:
<div class="jcomments-links"><a title="------" href="/---/index.php?option=com_content&amp;view=article&amp;id=------&amp;catid=---&amp;Itemid=---" class="readmore-link">Lire la suite...</a> <a title="Ajouter un commentaire" href="/---/index.php?option=com_content&amp;view=article&amp;id=---&amp;catid=---&amp;Itemid=114#addcomment" class="comments-link">Ajouter un commentaire</a> </div>

thanks for answer.

« Last Edit: February 22, 2012, 01:27:46 by est123 » Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 406



WWW
« Reply #1 on: February 21, 2012, 23:03:03 »

What's wrong with #addcomment rather than #addcomments ?
Why is it a bug?
Logged

No personal messages unless you are a friend or you have money for me.
Lou92
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #2 on: February 21, 2012, 23:28:42 »

@ABTOP : When you click on "Add comments" it opens the article page but it doesn't display the comment form right away, you have to scroll to get it. If you replace "#addcomment" with "#addcomments", it displays immediately the comment form.

@Est123 : To solve the problem, edit the jcomments.php file that is in plugins>content>jcomments

Replace this :

Code:
$tmpl->addVar('tpl_links', 'comments-count', $count);
$anchor = $count == 0 ? '#addcomment' : '#comments';

With this :

Code:
$tmpl->addVar('tpl_links', 'comments-count', $count);
$anchor = $count == 0 ? '#addcomments' : '#comments';

Save et replace the old jcomments.php with the edited one on your server !

I just did it and it works perfectly :-)

Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 406



WWW
« Reply #3 on: February 21, 2012, 23:39:35 »

@ABTOP : When you click on "Add comments" it opens the article page but it doesn't display the comment form right away, you have to scroll to get it. If you replace "#addcomment" with "#addcomments", it displays immediately the comment form.
What if you set the Comment form -> Position of the form -> Before Comment List ?
Logged

No personal messages unless you are a friend or you have money for me.
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #4 on: February 22, 2012, 00:21:05 »

Thank you very much! I will include this fix in next update.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 406



WWW
« Reply #5 on: February 22, 2012, 00:33:11 »

Oh, I see what you mean. You want to jump straight to the form no matter where the form is. Makes sense.
Logged

No personal messages unless you are a friend or you have money for me.
est123
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #6 on: February 22, 2012, 01:26:51 »

Yes, it's perfect !

I searched to the component since 3 hours before post here... I did not think the solution was in the plugin Smiley

Sorry but my english isn't my native language and for me it's difficult to explain a problem...

Thank you very much !!!

« Last Edit: February 22, 2012, 13:58:34 by smart » Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [solved] link #addcomment
 
Jump to: