1
limecity
Remove READS in news
  • 2003/12/11 7:38

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


I made the news my startup module..
how do I remove the (x reads) on the news header?
Thanks

I won't mind edititng the script. Just tell me how..~

2
Bassman
Re: Remove READS in news
  • 2003/12/11 10:22

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


You'll have to edit the news_item.html template. You'll have to clone the default set first of course, and set the cloned set as the default.

The following is the code from the news_items.html template. I wanted to do the same thing as you, except I only wanted the news item name and topic name showing. so I just commented out the lines where those items are called.


<{$story.title}>



<{$story.imglink}>

<{$story.text}>






If you comment out or remove the "<{$lang_reads}>" it should do what you want.

3
Freetime
Re: Remove READS in news
  • 2003/12/11 10:44

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


to remove "hits numder":

<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>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>


it means, cut this:

(<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>)


<{$story.hits}> (number of story hits)
<{$lang_reads}> ( .. "reads" word)

4
limecity
Re: Remove READS in news
  • 2003/12/11 11:40

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


I already removed that line READ.
I upload into the server and still I can see READ.

I think i am having trouble trying to update the template.

I download the template news_item.html from modules/news/templates/

after editing..i reupload and overwrite the old one..
why doesn't it overwrites it?

5
thans
Re: Remove READS in news
  • 2003/12/11 11:54

  • thans

  • Just popping in

  • Posts: 10

  • Since: 2003/8/29


hi!

you shouldnt edit the html file... but if you do so, you have to update the module. (Administration->System->Modules)

the right way to do this is:

Go to Administration->System->Templates->Clone and save it under a new name.

Then go to System->Preferences and change the default template set. Now you can change the templates online. (System->Templates->yourTemplateSet)

Greetings
Thomas

Login

Who's Online

242 user(s) are online (197 user(s) are browsing Support Forums)


Members: 0


Guests: 242


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