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: links in mod_jomments
Pages: [1]   Go Down
  Print  
Author Topic: links in mod_jomments  (Read 1632 times)
0 Members and 1 Guest are viewing this topic.
CreMaster
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: February 18, 2010, 19:17:01 »

Hi
I have problem with links in mod_jomments. The articles open on my main webpage (in the place of the module) not on the content page:( In URL there are always “Itemid=1#comment-XXX” and this Itemid=1 cause the problem Embarrassed  I can not change it and it always directs to main page…:(
Could you help me?
Best regards!
Logged
smor
Newbie
*

Karma: 0
Offline Offline

Posts: 11


WWW
« Reply #1 on: February 22, 2010, 03:59:25 »

What component are you using to generate the pages? This code change in compenents/com_jcomments/tpl/default/tpl_comment.php may help you.

Change:
Code:
$thisurl = str_replace( 'amp;', '', $this->getVar( 'thisurl', '' ));
            
To:
Code:
$thisurl = $this->item->link;

I'm not sure why jcomments tries to generate the page URL for you, I guess it's nice, but it's very broken it seems.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: links in mod_jomments
 
Jump to: