2010/5/15 1:18
sabahan
Quite a regular
Posts: 317
Since: 2006/3/4 5
2010/5/15 2:41
iHackCode
Module Developer
Posts: 1038
Since: 2004/6/29
How to replace "xx bytes more" with "xx more words"Be careful, you must have a Php version greater than Php 4.3First edit this file /xoops/modules/news/language/english/main.phpsearch 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.phpSearch 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);
2010/5/15 4:03
2010/5/15 11:27
mariane
Theme Designer
Posts: 649
Since: 2008/1/11
$morelink .= ' | '.sprintf(_NW_BYTESMORE,$totalcount);
Advanced Search
177 user(s) are online (86 user(s) are browsing Support Forums)
Members: 0
Guests: 177