1
zippylad
How to remove hits/date from Top News Block
  • 2009/10/28 19:09

  • zippylad

  • Just popping in

  • Posts: 14

  • Since: 2005/10/16


After spending a couple hours on this, I figured it is best to ask. I am using News 1.63 and want to remove the number of hits from the Top News block.

I took out what I thought were the correct lines, re-uploaded the news_block_top.html, and updated the module. Unfortunately, the counters are still showing.

Any help would be appreciated...

Here is the code I have right now:

<{else}> <{* ************************************** Classical view ************************************** *}>

<{if $block.spotlight}>



<{/if}>
















<{$block.spotlight.topic_description}>

<{$block.spotlight.title}> <{$block.spotlight.author}>

<{$block.spotlight.image}><{$block.spotlight.text}>

<{if $block.spotlight.read_more}>





<{/if}>


    <{foreach item=news from=$block.stories}>
    <{if $news.id != $block.spotlight.id}>


  • ><{$news.title}>
    <{$news.teaser}>

  • <{/if}>
    <{/foreach}>


<{/if}>

2
ghia
Re: How to remove hits/date from Top News Block
  • 2009/10/28 19:27

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do an update of the News module in admin module manager or change the system preference temporarly for checking changes on templates.

3
deka87
Re: How to remove hits/date from Top News Block
  • 2009/10/28 19:28

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


it's not about the code really. it's just that you cant see the changes. as i know, there are two ways to edit templates. my fav one is:

1. clone your template set.
2. set is as default via site prefs
3. edit the template via your admin/templates panel.
4. clear the cache in the xoops_data folder

4
zippylad
Re: How to remove hits/date from Top News Block
  • 2009/10/28 19:33

  • zippylad

  • Just popping in

  • Posts: 14

  • Since: 2005/10/16


I did the update of the News module in Administration... which is why I was confused.

However, changing the system preferences to check for template changes did the trick. Thanks!

@deka87 - just FYI, I cloned the default templates and made the changes in the needed files... but every time I tried to change the new set to be the default template - I would get an error related to a different module (one that I didn't modify)... This is why I modified the default entries...


Login

Who's Online

354 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 354


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