PDA

View Full Version : Ads in sidebar on index page


powerful_rogue
09-17-2008, 04:33 PM
Im currently using a mod which allows me to place banners on the lefthand side of the index page.

Now ive got GABS, id like to be able to use the GAB system so if someone decides they dont want them and turns them off, the index page will revert back to normal size.

This is my current index page - http://www.thefreebiefinder.co.uk/forum.php

Does anyone know how I can acheive the same using GABS?

Morgan
09-17-2008, 04:49 PM
Untested but one idea would be to use the following template conditional to only show the sidebar when there is an ad to be shown:

<if condition="$GAB_ads[X]">
sidebar stuff here
</if>

powerful_rogue
09-17-2008, 05:21 PM
thanks Morgan. The mod im using creates a template called "forumhome_sidecolumn_left" - would I add the condition to the top of that?

I also have these two edits in forumhome

FIND

$navbar

ADD BELOW

<!-- peterska2 side column -->
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" width="160px">
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
$forumhome_sidecolumn_left
</table>
</td>
<td width="10px"></td>
<td valign="top">

<!-- / peterska2 side column -->

#########################

Edit Two

FIND

$footer

ABOVE ADD

<!-- peterska2 side column -->
</td>
</tr>
</table>
<!-- / peterska2 side column -->

Morgan
09-18-2008, 01:50 PM
Not familiar with that add-on, but my suggestion would be to surround each template addition you made for that add-on with the template conditional in post two and see if it works.