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] The jcomments display twice!
Pages: [1]   Go Down
  Print  
Author Topic: [solved] The jcomments display twice!  (Read 1916 times)
0 Members and 1 Guest are viewing this topic.
miled
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: May 24, 2012, 21:08:10 »

In my joomla site the jcomments display duplicate, why?

Wath can i do to fix the problem?

Joomla 2.5, template Rockettheme Halycon 2.5



* jcomments-duplicate.jpg (162.22 KB, 1440x900 - viewed 241 times.)
« Last Edit: May 30, 2012, 14:33:11 by smart » Logged
bscofield
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #1 on: May 28, 2012, 20:51:33 »

Hi Miled,

Not sure if you've resolved this yet. I stumbled onto your post while searching for the answer myself. My problem was not specifically jcomments related, as it appeared on every comment extension I used. After not finding a quick solution online and seeing that you dealt with the same issue (on a Rocket Theme, just like me) I decided to check out the default.php for the rocket theme's com_content>article section. I found that they call the same line of code two times. I commented out one of these and it resolved the issue.

NOTE: I have no idea if this was intentional or not. I just implemented the solution a few hours ago and have not noticed any ill effects so far. But if you have access to the rocket theme forums you may want to go on there and ask about it to be safe.


Here was the server path to the file that I modified:

SITE ROOT/templates/rt_YOURTEMPLATE/html/com_content/article/default.php

The same code was called twice, on line's 224 and 231. I commented out the second entry that was on line 231 for me (it may be different for you). If it's not on the same line just search for the phrase "afterDisplayContent" and look for the line below. If you don't see the line in there 2 times- do not comment out! Your problem is probably something else.

It was:

Code:
<?php echo $this->item->event->afterDisplayContent?>

I changed it to:

Code:
<?php //echo $this->item->event->afterDisplayContent; ?>

That solved the issue for me. Hope this helps.
« Last Edit: May 28, 2012, 20:53:33 by bscofield » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #2 on: May 30, 2012, 14:33:56 »

It looks like this issue is related to your Joomla's template. Because on default Joomla's template this bug can not be reproduced.
Logged

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

Karma: 0
Offline Offline

Posts: 1


« Reply #3 on: July 18, 2012, 23:07:54 »

Thank you I had the same issue
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [solved] The jcomments display twice!
 
Jump to: