1
draxan
comments hack
  • 2005/4/7 15:45

  • draxan

  • Just popping in

  • Posts: 20

  • Since: 2005/3/9 1


How to change and where link to comment in news module as in this page. I mean when U click on link Make Comment it redirect to comment editor. Now I got on my site when I click on above link I redirect to page when top is a commented news and belov I got comments nav bar, and only then I can click Make Comment button. So I leave this and after click go directly to comment editor as on this site.

Thx for help...

2
draxan
Re: comments hack
  • 2005/4/8 16:38

  • draxan

  • Just popping in

  • Posts: 20

  • Since: 2005/3/9 1


And that is reply for above problem....

THX for all
In file modules/news/class/class.newsstory.php
Quote:

if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
$ccount = $this->comments();
$morelink .= 'href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$this->storyid().'';
$morelink2 = '
'._NW_COMMENTS.'';
}

we change greenone lines
Quote:

if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
$ccount = $this->comments();
$morelink .= 'href="'.XOOPS_URL.'/modules/news/comment_new.php?com_itemid='.$this->storyid().'';
$morelink2 = '
'._NW_COMMENTS.'';
}

and that's it.

Login

Who's Online

373 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 373


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits