1
JonDonnis
How to remove number of reads an article has had?
  • 2009/3/5 18:31

  • JonDonnis

  • Just popping in

  • Posts: 3

  • Since: 2009/3/5 1


Higuys
I hope you can help me.
I want to remove the small bit that says how many reads and article has had.

Can someone give me details of how i can do this please.

thanks

2
zyspec
Re: How to remove number of reads an article has had?
  • 2009/3/5 18:42

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Which module? Which version?

3
Mamba
Re: How to remove number of reads an article has had?
  • 2009/3/5 18:44

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I think, you should be able to do it by modifying the template.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

4
Anonymous
Re: How to remove number of reads an article has had?
  • 2009/3/5 19:30

  • Anonymous

  • Posts: 0

  • Since:


It depends on the module - some have admin options for not displaying various things including counts.

Quote:
Mamba wrote:

I think, you should be able to do it by modifying the template.


If no admin option then this is the way to go. Tell us which module/version and you'll get the help you need, I'm sure

5
chefry
Re: How to remove number of reads an article has had?
  • 2009/3/5 23:22

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I'm using News 1.63 and I would like to remove the number of reads, as well as the posting date. Unchecking the "Set the date/time of publish " Doesn't do anything.

Can someone advise me what to change in the templates?

TIA
Frank

6
Catzwolf
Re: How to remove number of reads an article has had?
  • 2009/3/6 7:48

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


The problem is that every module uses their own way of implementing this and do not add the option to reset reads to 0. It wouldn't take much for the developer to add this to their modules (Just a few lines of code really), but your only choice probably is to change the read counts to 0 by using myphpadmin.

7
chefry
Re: How to remove number of reads an article has had?
  • 2009/3/6 9:42

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Support for "News" seems to have disappeared.

So you suggest I change the read count using myphpadmin, every time someone reads an article?

Of course not....
The fix is in the template

But where?

8
Catzwolf
Re: How to remove number of reads an article has had?
  • 2009/3/6 11:02

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Sorry, I thought you wanted to set the reads back to zero.

Anyway, if you want to remove the read count from the template do this:
Edit root/modules/news/templates/news_item.html and around line 13, you will see the following line:

<td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}>&nbsp;<{/if}><{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}>span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}>span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}>span>) <{$news_by_the_same_author_link}>td>


Look for <{$lang_reads}> within this line and remove it, save the file, and then go into module admin and update the news module.

9
chefry
Re: How to remove number of reads an article has had?
  • 2009/3/7 9:16

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Ok, I edited the template, removing the entire line because I don't want any of that info to appear in the articles. I changed the setting in system>preferences>General Settings>Check templates for modifications ? Yes.

And nothing happened. on 2009/3/6 1:11:38 (0 reads) is still appearing in the articles

What did I do wrong?


10
Catzwolf
Re: How to remove number of reads an article has had?
  • 2009/3/7 9:35

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Did you update the news module?

Login

Who's Online

323 user(s) are online (262 user(s) are browsing Support Forums)


Members: 0


Guests: 323


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