1
Ro5SM
Getting rid of 'bytes more' in news
  • 2004/8/12 13:32

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


What piece of code do I need to edit in order to lose the 'bytes more' text at the bottom of news items?

2
jlm69
Re: Getting rid of 'bytes more' in news
  • 2004/8/12 15:20

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


In XOOPS 2.07 news ver. 1.1 go to index.php look at about line 93 and delete this line:

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

then look a little below that for:

'._NW_READMORE.' | '

just remove the |

so it looks like this:

_NW_READMORE.''


In news version 1.2 the file is

news/class/class.newsstory.php

look for the same lines as above

That should do it.

3
theprof
Re: Getting rid of 'bytes more' in news
  • 2004/8/12 16:39

  • theprof

  • Quite a regular

  • Posts: 225

  • Since: 2004/7/14


good stuff I been wondering how was this done also

..well..I check my index.php

all I have is..

* redirects to installation, if XOOPS is not installed yet
**/
include "mainfile.php";

//check if start page is defined
if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {
header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');
exit();
} else {
$xoopsOption['show_cblock'] =1;
include "header.php";
include "footer.php";
}
?>


----

I have 2.06 I believe...where do I find it in 2.06?

prof!

4
jlm69
Re: Getting rid of 'bytes more' in news
  • 2004/8/12 17:16

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Sorry I wasn't clearer the index.php in the news module.

news/index.php

I had to download 2.06 to see if it was the same, and it is.

5
Ro5SM
Re: Getting rid of 'bytes more' in news
  • 2004/8/12 18:34

  • Ro5SM

  • Just popping in

  • Posts: 38

  • Since: 2003/12/14


Thanks.

Login

Who's Online

523 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 523


more...

Donat-O-Meter

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

Latest GitHub Commits