1
rh94040
News module: display of the Comments link in News Index page
  • 2004/5/25 0:13

  • rh94040

  • Just popping in

  • Posts: 51

  • Since: 2004/4/13


xoops 2.0.6.

From News admin I turned off user comments on news, and
I disallowed comments by anonymous users. Basically I
wanted to totally disable comment posting to news items
(which are posted by the a special group of users of my
site).

However, after doing this, on the News index page, below each listed news item, there is still a link called
"Comments". Clicking on it however only displays the body
of the news item. So at least the functionality is removed
which is good. But I thought the link should be removed
as well. If I'd like to do it myself what should I modify?

Thanks much,
Ray

2
tl
Re: News module: display of the Comments link in News Index page
  • 2004/5/25 0:29

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


You would have to tinker with index.php file. The following section is what you need to make change with. Back up your index.php file before you start changing. Happy hacking.

(you probably can safely comment out the following section)
Quote:


$ccount = $sarray[$i]->comments();
$morelink .= ' if ( $ccount == 0 ) {
$morelink .= '">'._NW_COMMENTS.'
';
} else {
if ( $fullcount < 1 ) {
if ( $ccount == 1 ) {
$morelink .= '">'._NW_READMORE.' | '.$morelink2.'">'._NW_ONECOMMENT.'';
} else {
$morelink .= '">'._NW_READMORE.' | '.$morelink2.'">';
$morelink .= sprintf(_NW_NUMCOMMENTS, $ccount);
$morelink .= '';
}
} else {
if ( $ccount == 1 ) {
$morelink .= '">'._NW_ONECOMMENT.'';
} else {
$morelink .= '">';
$morelink .= sprintf(_NW_NUMCOMMENTS, $ccount);
$morelink .= '';
}
}
}



Login

Who's Online

939 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 939


more...

Donat-O-Meter

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

Latest GitHub Commits