1
defwind77
removing date from smartsection recent items?
  • 2005/12/22 10:52

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Hi,

I'm fumbling through the templates trying to remove the date that's automatically added to each item in the recent news block - can anyone tell me what I need to remove?

I removed a date tag in the recent news block, but it doesn't appear to work?

Any ideas?

2
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/26 22:09

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


does nobody have a clue about this? I've done it fairly simply with news 1.44 as I can just remove the template date entry, but I can't see anything here...

3
Shine
Re: removing date from smartsection recent items?
  • 2005/12/26 23:27

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Recent news block and smartsections? There isn't any recent news block within smartsection as far as I know of. Unlees you mean the items_recent block within smartsection.
Templates/blocks/smartsection_items_recent.html, prox line 15., have you uncomment this line out?
After upload upgraded (within admin) the smartsection module again? PLease make sure you have html settings (main settins) on if you upgrade.

Another work around is to adjust the file: items_recent.php
prox line 53. Uncomment $block['lang_date'] = blabla
Same procedure with upgrade smartsection module after upload.

Grtz., Shine

4
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/27 10:10

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


well this is what I tried originally - and I've removed the date references entirely.

I presume your next steps mean:

1) Update module template .html files from themes/your theme/templates directory? set to YES

2) Update the smartsection module from the module admin settings?

I've done all that and nothing works - I've also tried removing the entry in the actual file as you suggested and it STILL appears?! Is there something I'm missing?

5
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/27 11:45

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Here's the 'smartsection_items_recent.html' template I've got - as you can see I've removed every single mention of 'date' etc and it STILL is showing the wretched date!?

Can anyone see any other clues in the text below as to where it's getting this date from?


<table class="outer" cellspacing="1">

<tr>
<td class="head"><{$block.lang_title}></td>
<td class="head" align="left"><{$block.lang_category}></td>
<td class="head" align="center" width="100px"><{$block.lang_poster}></td>
<td class="head" align="right" width="120"></td>
</tr>

<{foreach item=item from=$block.items}>
<tr class="<{cycle values="even,odd"}>">
<td><{$item.itemlink}></td>
<td align="left"><{$item.categorylink}></td>
<td align="center"><{$item.poster}></td>
<td align="right"></td>
</tr>
<{/foreach}>

</table>

<div style="text-align:right; padding: 5px;">
<a href="<{$xoops_url}>/modules/smartsection/"><{$block.lang_visititem}></a>
</div>

6
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/28 0:51

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Has anyone actually managed to remove the date from the recent items in Smartsection? I don't even know if this is possible - though I can't see why not?!

7
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/28 10:12

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


<table class="outer" cellspacing="1">

<tr>
<td class="head"><{$block.lang_title}></td>
<td class="head" align="left"><{$block.lang_category}></td>
<td class="head" align="center" width="100px"><{$block.lang_poster}></td>
<td class="head" align="right" width="120"><{$block.lang_date}></td>
</tr>

<{foreach item=item from=$block.items}>
<tr class="<{cycle values="even,odd"}>">
<td><{$item.itemlink}></td>
<td align="left"><{$item.categorylink}></td>
<td align="center"><{$item.poster}></td>
<td align="right"><{$item.date}></td>
</tr>
<{/foreach}>

</table>

<div style="text-align:right; padding: 5px;">
<a href="<{$xoops_url}>/modules/smartsection/"><{$block.lang_visititem}></a>
</div>

Ok here's the template for the recent items before editing - Am I write to simply delete the stuff in bold and can anyone tell me exactly what the code in bold does - I guess this must be loading the date - however I can't see how it can continue to load the date after it's taken out?!

8
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/28 10:14

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


and this should clear up the silly topic header that was messed up by the code!

9
defwind77
Re: removing date from smartsection recent items?
  • 2005/12/30 14:58

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


nobody know even this?

10
Shine
Re: removing date from smartsection recent items?
  • 2005/12/30 17:05

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


To be honest, I don't understand it either. It shouldn't show up anymore!
Have you cleaned up your cache and template_c ? Perhaps it takes it from there?

Login

Who's Online

244 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

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

Latest GitHub Commits