1
sabahan
remove 'bytes more' in news module ?
  • 2010/5/15 1:18

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


how do i remove the 'x bytes more' in news module main page ?

2
iHackCode
Re: remove 'bytes more' in news module ?

Quote:

How to replace "xx bytes more" with "xx more words"
Be careful, you must have a Php version greater than Php 4.3
First edit this file /xoops/modules/news/language/english/main.php
search this line :

define("_NW_BYTESMORE","%s bytes more");


and replace it with :

define("_NW_BYTESMORE","%s more words");


Then edit the file /xoops/module/news/class/class.newsstory.php
Search for :

$morelink .= ' | '.sprintf(_NW_BYTESMORE,$totalcount);


and replace it with :

$morelink .= ' | '.sprintf(_NW_BYTESMORE,str_word_count($this->bodytext()));



If you want to remove this information from display, remove the following line (in the same file) :


$morelink .= ' | '.sprintf(_NW_BYTESMORE,$totalcount);


CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

3
sabahan
Re: remove 'bytes more' in news module ?
  • 2010/5/15 4:03

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


thanks mrbandit

4
mariane
Re: remove 'bytes more' in news module ?
  • 2010/5/15 11:27

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


go to module/news/class
and edit the file : class.newsstory.php
look for this line
$morelink .= ' | '.sprintf(_NW_BYTESMORE,$totalcount);
then delete it and re-upload the file again to the same path
the road of success is always under construction

Login

Who's Online

261 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 261


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