Page 1 of 1

problem with banner mod

PostPosted: Mon May 15, 2006 10:44 am
Author: Dj-Harem
hello i have a little problem with my banner mod.
i can display banners in the viewforum
but not in the viewtopic. I searched the variables in
my theme an thy are all there.
what could that be?

thanks
Dj-Harem

Re: Error

PostPosted: Tue May 16, 2006 10:49 pm
Author: Teelk
Many have had this problem, it stems from switches being set on the banners in the tpl files but no switches in the php files. You can try removing the switches from the tpl file which I thought was a viable fix, but when tried on this site broke the layout. I personally have never had the layout break from removing the switches, however. If you want to give it a try, do the following.

Open templates/yourtheme/viewtopic_body.tpl
FIND
Code: Select all
<BEGIN>{BANNER_14_IMG}<br><END>

REPLACE WITH
Code: Select all
{BANNER_14_IMG}<br>

FIND
Code: Select all
<BEGIN><tr><td>{BANNER_15_IMG}</td></tr><END>

REPLACE WITH
Code: Select all
<tr><td>{BANNER_15_IMG}</td></tr>

PostPosted: Wed May 17, 2006 6:54 am
Author: Dj-Harem
Thanks Teelk !!!
it works fine without breaking out the layout.

greetz Dj-Harem