1
justtupeu
Question about the News module
  • 2005/8/30 16:51

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


I've got some ideas on how to modify the News module but i can't quite figure out how to make the work.
First i would like to remove the "10764353 bytes more" text. I think it's useless. Second, next to the number of the comments , I would want to place a link to directly comment that news item.
Again, i've tryed to modify the news_item.html template, but without any luck..
Here's the file:
<div class="item">
  <
div class="itemHead"><span class="itemTitle"><{$story.title}></span></div>
  <
div class="itemInfo">
    <
span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>)
  </
div>
  <
div class="itemBody">
    <{
$story.imglink}>
    <
class="itemText"><{$story.text}></p>
  </
div>
  <
div class="itemFoot">
    <
span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span>
  </
div>
</
div>

Any help would be welcome, as I'm sure other people would want to want to know how to do this.
Vineri triskaideka - contest for Vineri triskaideka phrase

2
justtupeu
Re: Question about the News module
  • 2005/9/3 17:40

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


Can nobody help me on this ?
Vineri triskaideka - contest for Vineri triskaideka phrase

3
kaper
Re: Question about the News module
  • 2005/9/3 20:01

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


<span class="itemPermaLink"><{$story.morelink}></span>

In /modules/news/language/yourlanguage/main.php
find
define("_NW_BYTESMORE","%s bytes more");
and replace "%s bytes more" with whatever you want. %s represents byte count, you may remove this symbol.

For reference make a commented copy of original line.

Kaper

4
justtupeu
Re: Question about the News module
  • 2005/9/4 23:06

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


Sorry, but i don't think you understood what i was trying to say
Basicaly, i want the bottom of each news item to look like the one on the main page of xoops.org :
Quote:
Read more... | 7 comments | write comment

Something like this.. Any ideas ?
Vineri triskaideka - contest for Vineri triskaideka phrase

5
kaper
Re: Question about the News module
  • 2005/9/5 18:00

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


I think you don't understand what I wrote. I mentioned replacing the "12345 bytes more" message with whatever you want, especially with an empty string. In this case you would have
Read more... | | 7 comments write comment

There is an additional "pipe" character. If you want to remove it as well, then find a part of script where the constant _NW_BYTESMORE appears (grep is a good tool) - this shoul be a fragment where the $story.morelink variable is composed - and change it as you like.

6
zeroram
Re: Question about the News module
  • 2005/11/1 22:29

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


does anyone know where is the | so i can remove it..

i keep getting || were it use to be the bytes text

7
red_Slider
Re: Question about the News module

Here it is:
/xoops/module/news/class/class.newsstory.php

chech also:
10 hacks 4 news module by Herve

Login

Who's Online

231 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits