1
samo
how do i add a IF statement when for showing the XOOPS_BANNEr
  • 2005/5/7 16:43

  • samo

  • Just popping in

  • Posts: 16

  • Since: 2002/10/14


My banner is shown in a div with background and a box telling people who disabled the banner (for example with ad-block) there is supposed to be an advertisement here.
But when I disable banners in my prefs, i still see the block.

So I tried:
<{if $xoops_banner}>
 <
div class="header_banner">
  <{
$xoops_banner}>
 </
div>
<{/if}>


but it still shows the banner....

Does anyone know what I should do? I checked some other themes what they did but it didnt get clear to me....

(example:http://test.wayiri.org)

2
xpider
Re: how do i add a IF statement when for showing the XOOPS_BANNEr
  • 2005/5/7 16:51

  • xpider

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/9 2


If your just wanting to get rid of the banner go to your theme directory open the theme.html file and remove

<{if $xoops_banner}>
<div class="header_banner">
<{$xoops_banner}>
</div>
<{/if}>

3
samo
Re: how do i add a IF statement when for showing the XOOPS_BANNEr
  • 2005/5/7 17:02

  • samo

  • Just popping in

  • Posts: 16

  • Since: 2002/10/14


Quote:

xpider wrote:
If your just wanting to get rid of the banner go to your theme directory open the theme.html file and remove

<{if $xoops_banner}>
<div class="header_banner">
<{$xoops_banner}>
</div>
<{/if}>

Yes that makes sense, but i want to enable/disable it in the prefs, not in the theme file.

4
xpider
Re: how do i add a IF statement when for showing the XOOPS_BANNEr
  • 2005/5/7 17:55

  • xpider

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/9 2


I don't understand why it is not working for you if that's all that you have in the theme.html file to call on the banner.

I myself don't use the if statments i just put

<{$xoops_banner}>

where i want the banner to be and turning it off and on within preferences is no problem.

Sorry I couldn't help =(

Login

Who's Online

219 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 219


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