1
Per4orm
Comments in news_article
  • 2003/11/14 23:39

  • Per4orm

  • Documentation Writer

  • Posts: 145

  • Since: 2003/11/14


I have disabled user comments on my site, and have discovered that the news_article.html file still shows the word "comments?" after the "read more... [xxx bytes more]" at the bottom.

It appears that the "Comments?" string is an extension of the $story.readmore array and I wondered if there was any way to seperate it so that ONLY "Read more..." was displayed in a news artlicle summary.

Cheers!

2
ackbarr
Re: Comments in news_article

well - the simpliest way to deal with this is to modify the language files for the news module

in /modules/news/languages/english/main.php ~line 7:
define("_NW_COMMENTS","Comments?");
define("_NW_ONECOMMENT","1 comment");
define("_NW_BYTESMORE","%s bytes more");
define("_NW_NUMCOMMENTS","%s comments");


replace with:
define("_NW_COMMENTS","");
define("_NW_ONECOMMENT","");
define("_NW_BYTESMORE","%s bytes more");
define("_NW_NUMCOMMENTS","");


No Text = No Link Displayed

3
Per4orm
Re: Comments in news_article
  • 2003/11/15 5:05

  • Per4orm

  • Documentation Writer

  • Posts: 145

  • Since: 2003/11/14


The only problem with doing it that way is I want to offer the site in multiple languages eventually... that would mean making the same changes for every language I add. Not a total nightmare I know, but still...

Plus, you still get an unwanted '||' where the 'xxx bytes more' used to be...

Anyway, I managed to break down the array in index.php in the modules/news/ directory and got everything looking the way I wanted.

Login

Who's Online

391 user(s) are online (240 user(s) are browsing Support Forums)


Members: 0


Guests: 391


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