1
JamesSAEP
I can't get rid of the date on "Recent News" block - Please Help
  • 2005/4/21 16:46

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I have changed to file "news_block_top.html" to the code below, which previews correctly. I set the "Update module template .html files from themes/your theme/templates directory?" to YES, deleted temporary_c files but it still is displaying the date infront of the title. What have I missed? Thanks.

Quote:

<{if $block.displayview==2}>





<{if $block.current_is_spotlight}>
<{$block.spotlight.author}> <{$block.lang_on}> <{if $block.use_rating}> - <{$block.spotlight.rating}>/10 (<{$block.spotlight.number_votes}>)<{/if}>, <{$block.spotlight.hits}> <{$block.lang_reads}>

<{else}>

<{foreach item=onesummary from=$block.smallheader}>
<{$onesummary}> 
<{/foreach}>


<{/if}>


<{if $block.current_is_spotlight && $block.tabs.id==0}>







  • <{$block.spotlight.title_with_link}>
<{$block.spotlight.image}> 

<{$block.spotlight.text}>






    <{foreach item=onenews from=$block.spotlight.news}>
  • <{$onenews.title_with_link}>

  • <{/foreach}>

<{else}>
<{foreach item=onenews from=$block.news}>
  • <{$onenews.title}>
  <{$onenews.author}> <{$block.lang_on}> - <{if $block.use_rating}> <{$onenews.rating}>/10 (<{$onenews.number_votes}>)<{/if}>, <{$onenews.hits}> <{$block.lang_reads}>

<{$onenews.text}>


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

<{else}>

<{if $block.spotlight}>



<{/if}>














<{$block.spotlight.title}> <{$block.spotlight.author}>
<{if $block.sort=='counter'}>
(<{$block.spotlight.hits}>)
<{elseif $block.sort=='published'}>
<{else}>
(<{$block.spotlight.rating}>)
<{/if}>
<{$block.spotlight.image}><{$block.spotlight.text}>




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

  • <{if $block.sort=='counter'}>
    [<{$news.hits}>]
    <{elseif $block.sort=='published'}>
    <{else}>
    [<{$news.rating}>]
    <{/if}>
    ><{$news.title}>
    <{$news.teaser}>

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


<{/if}>

2
hervet
Re: I can't get rid of the date on "Recent News" block - Please Help
  • 2005/4/23 7:09

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


hi,

It depends of the kind of view you are using.
The date is located in the block's code,not in the template.
Try, in the file /xoops/modules/news/blocks/news_top.php to replace
Quote:

$spotlight['date'] = formatTimestamp($tmpstory->published(), $dateformat);

with :
Quote:

$spotlight['date'] = '';


and idem for :
Quote:

$news['date'] = formatTimestamp($story->published(), $dateformat);


with :
Quote:

$news['date'] = '';


For all the occurences

bye,
Hervé

3
JamesSAEP
Re: I can't get rid of the date on "Recent News" block - Please Help
  • 2005/4/26 15:40

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


hervet -

That worked great, thanks. By chance do you know what file and code needs to be changed in the AMS 2.41 module for the same results? I'd like to get rid of the date there also.

Jim

Login

Who's Online

243 user(s) are online (198 user(s) are browsing Support Forums)


Members: 0


Guests: 243


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