1
acegamer
News IMU Banner afther 3th news item
  • 2011/2/16 11:19

  • acegamer

  • Not too shy to talk

  • Posts: 162

  • Since: 2005/7/11


Hi Everyone,

I'm using the news module and i try to get two banner formats of 300x250px side by side.

Ather a 3th our 4th news item.

For example:

News 1
News 2
News 3
BANNER 1 - BANNER 2
News 4
News 5
News 6
News 7

...


I was looking in the template files of this module and i find this where the module calles all the news items.

<{section name=i loop=$columns}>
<td width="<{$columnwidth}>%"><{foreach item=story
from=$columns[i]}><{include file="db:fun_item.html"
story=$story}><{/foreach}></td>
<{/section}>

Does anyone know what i have to do to get this?

Kind regards,
Kevin

2
acegamer
Re: News IMU Banner afther 3th news item
  • 2011/2/17 13:44

  • acegamer

  • Not too shy to talk

  • Posts: 162

  • Since: 2005/7/11


If it's not clear what i mean, please let me know!

3
acegamer
Re: News IMU Banner afther 3th news item
  • 2011/3/8 18:40

  • acegamer

  • Not too shy to talk

  • Posts: 162

  • Since: 2005/7/11


Thx to mamba it works now!

for the peeps who wanna know how.

edit the news_index.html template!

<div class="pages_nav"><{$pagenav|replace:"(":''|replace:")":""}></div>
<{xthemes_process action="run_method" method="format_news"}>
<{assign var="i" value=0}>
<{foreach item=story from=$wox_posts}>
<{include file="db:news_item.html" story=$story}>
<{if $i==2 || $i==9}>
<div class="wox_news_banner"><{$xoops_banner}></div>
<{/if}>
<{assign var="i" value=$i+1}>
<{/foreach}>

4
Mamba
Re: News IMU Banner afther 3th news item
  • 2011/3/8 20:16

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


The credit for the code goes to BitC3R0.

I only emailed it to acegamer
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
acegamer
Re: News IMU Banner afther 3th news item
  • 2011/3/9 10:53

  • acegamer

  • Not too shy to talk

  • Posts: 162

  • Since: 2005/7/11


I'm sorry I didn't know that :) So special thx to BitC3R0 !!

Login

Who's Online

158 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

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

Latest GitHub Commits