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 ************************************** *}>
<table>
<{if $block.spotlight}>
<tr>
<td><table>
<tr>
<td colspan='2'>
<table border='0'>
<tr><td><img src='<{$block.spotlight.topic_image}>' border='0' alt=''></td><td align='left'><{$block.spotlight.topic_description}></td></tr>
</table>
<font color="#FF6600"><b><{$block.spotlight.title}></b></font> <{$block.spotlight.author}>

</td>
</tr>
<tr>
<td><{$block.spotlight.image}></td><td><{$block.spotlight.text}></td>
</tr>
<tr>
<td colspan='2'>
<{if $block.spotlight.read_more}>
<hr width='98%' />
<div align='right'><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>"><{$block.lang_read_more}></a> &nbsp;&nbsp;&nbsp;</div>
<hr width='98%' />
<{/if}>
</td>
</tr>
</table></td>
</tr>
<{/if}>
<tr>
<td>
<ul>
<{foreach item=news from=$block.stories}>
<{if $news.id != $block.spotlight.id}>
<li>

<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><{$news.title}></a> <br /><{$news.teaser}></li>
<{/if}>
<{/foreach}>
</ul>
</td>
</tr>
</table>
<{/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

161 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

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

Latest GitHub Commits