HitCounter Link leads to Comments

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

HitCounter Link leads to Comments

Postby ranchox » Sun Feb 06, 2011 5:59 pm

Hi,

the HitCounter Extension on my website generates links to the comments area of the entries.
The links are generated that way: http://www.mysite.com/link-to-the-entry#comm

Is this working as designed or can I change that behaviour so that only the entry-url is generated (without the #comm)?

Thanks in advance
ranchox
 
Posts: 24
Joined: Mon Jan 24, 2011 4:42 pm

Re: HitCounter Link leads to Comments

Postby marcelfw » Mon Feb 07, 2011 3:04 pm

Hi,

It's a PivotX thing. By default when there is link create internally it always adds the #comm. You can override it, but that hasn't been done in this case.
If you're not scared to change the code by yourself, you could change on line 315 in hook_hitcounter.php:

$rec['link'] = makeFileLink($rec);

to

$rec['link'] = makeFileLink($rec,'','');

It will be updated in a next release, but at the moment it seems to small to make a new release.
I can also send you the new file if you'd rather not change it yourself. Private message me your e-mail address.

Cheers,
Marcel
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: HitCounter Link leads to Comments

Postby ranchox » Mon Feb 07, 2011 4:24 pm

Hi Marcel,

thanks for your fast help. You don't need to send me the file. I have changed it myself.
And the change works perfectly :-)

Many thanks!
ranchox
 
Posts: 24
Joined: Mon Jan 24, 2011 4:42 pm


Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 3 guests

cron