oldgoat
07-07-2006, 10:48 PM
I have a banner ad in the top left corner that is to be on every page in the forum.
The forum page mod, places a banner on the vbulletin forum page (renamed the index file to forum due to vbadvanced)
The index page mod, places a banner on the vbadvanced page (renamed the cpms_index file to index)
The forum id pages are getting a specific banner based on conditional if statements.
I want the following functionality:
forum banner in the top left corner - always there
A specific ad for the forum page in the top right corner
A specific ad for the index page in the top right corner
A general ad in the top right corner in all the forum pages (user cp,faq, member list, etc..)
I have 97 forum id pages,
a general ad in the top right corner in all the forum id pages
i want to be able to group certain forum ids so as to place specific ads per batch of forumids, but also be able to exclude any specific forumid.
If there is no specific ad, the general ad will be shown.
the problem i am having is i can place the ad in all the forum pages, but cant exclude it from the forum and index pages, the images are overlapping.
tahnks in advance for all your help
all the mods are in the header template.
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<!-- BANNER AD MOD -->
<td align="left">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/BANNER.jpg" WIDTH="410" HEIGHT="100" alt="BANNER" border="1"></a></a></td>
<!-- BANNER AD MOD -->
<!-- FORUM PAGE AD MOD ON VBULLETIN-->
<if condition="THIS_SCRIPT == 'index'">
<td align="left">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/FORUM.jpg" WIDTH="570" HEIGHT="100" alt="FORUM" border="1"></a></a></td>
</if>
<!-- FORUM PAGE AD MOD ON VBULLETIN-->
<!-- INDEX PAGE AD MOD ON VBADVANCED -->
<if condition="THIS_SCRIPT == 'adv_index'">
<td align="left">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/INDEX.jpg" WIDTH="570" HEIGHT="100" alt="index" border="1"></a></a></td>
</if>
<!-- INDEX PAGE AD MOD ON VBADVANCED -->
<!-- GENERAL PAGE AD MOD - INCLUDE ALL FORUMID PAGES-->
<if condition="$GLOBALS['forumid'] >= 1 AND $GLOBALS['forumid'] <= 93 AND !in_array($GLOBALS['forumid'], array(18,19,20,21,22,7,28,25,26))">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/GENERAL.jpg" WIDTH="570" HEIGHT="100" alt="AD" border="1"></a></a></td>
</td>
<!-- GENERAL PAGE AD MOD - INCLUDE ALL FORUMID PAGES-->
<!-- SPECIFIC PAGE AD MOD -->
<if condition="in_array($GLOBALS['forumid'], array(25))">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/AD.jpg" WIDTH="570" HEIGHT="100" alt="AD" border="1"></a></a></td>
</td>
</if>
<!-- SPECIFIC PAGE AD MOD -->
<!-- SPECIFIC PAGE RANGE AD2 MOD -->
<if condition="$GLOBALS['forumid'] >= 26 AND $GLOBALS['forumid'] <= 34">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/AD 3.jpg" WIDTH="570" HEIGHT="100" alt="AD 3" border="1"></a></a></td>
</td>
</if>
<!-- SPECIFIC PAGE RANGE AD2 MOD -->
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
The forum page mod, places a banner on the vbulletin forum page (renamed the index file to forum due to vbadvanced)
The index page mod, places a banner on the vbadvanced page (renamed the cpms_index file to index)
The forum id pages are getting a specific banner based on conditional if statements.
I want the following functionality:
forum banner in the top left corner - always there
A specific ad for the forum page in the top right corner
A specific ad for the index page in the top right corner
A general ad in the top right corner in all the forum pages (user cp,faq, member list, etc..)
I have 97 forum id pages,
a general ad in the top right corner in all the forum id pages
i want to be able to group certain forum ids so as to place specific ads per batch of forumids, but also be able to exclude any specific forumid.
If there is no specific ad, the general ad will be shown.
the problem i am having is i can place the ad in all the forum pages, but cant exclude it from the forum and index pages, the images are overlapping.
tahnks in advance for all your help
all the mods are in the header template.
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<!-- BANNER AD MOD -->
<td align="left">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/BANNER.jpg" WIDTH="410" HEIGHT="100" alt="BANNER" border="1"></a></a></td>
<!-- BANNER AD MOD -->
<!-- FORUM PAGE AD MOD ON VBULLETIN-->
<if condition="THIS_SCRIPT == 'index'">
<td align="left">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/FORUM.jpg" WIDTH="570" HEIGHT="100" alt="FORUM" border="1"></a></a></td>
</if>
<!-- FORUM PAGE AD MOD ON VBULLETIN-->
<!-- INDEX PAGE AD MOD ON VBADVANCED -->
<if condition="THIS_SCRIPT == 'adv_index'">
<td align="left">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/INDEX.jpg" WIDTH="570" HEIGHT="100" alt="index" border="1"></a></a></td>
</if>
<!-- INDEX PAGE AD MOD ON VBADVANCED -->
<!-- GENERAL PAGE AD MOD - INCLUDE ALL FORUMID PAGES-->
<if condition="$GLOBALS['forumid'] >= 1 AND $GLOBALS['forumid'] <= 93 AND !in_array($GLOBALS['forumid'], array(18,19,20,21,22,7,28,25,26))">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/GENERAL.jpg" WIDTH="570" HEIGHT="100" alt="AD" border="1"></a></a></td>
</td>
<!-- GENERAL PAGE AD MOD - INCLUDE ALL FORUMID PAGES-->
<!-- SPECIFIC PAGE AD MOD -->
<if condition="in_array($GLOBALS['forumid'], array(25))">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/AD.jpg" WIDTH="570" HEIGHT="100" alt="AD" border="1"></a></a></td>
</td>
</if>
<!-- SPECIFIC PAGE AD MOD -->
<!-- SPECIFIC PAGE RANGE AD2 MOD -->
<if condition="$GLOBALS['forumid'] >= 26 AND $GLOBALS['forumid'] <= 34">
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<a href="http://www.website.com">
<img src="$stylevar[imgdir_misc]/AD 3.jpg" WIDTH="570" HEIGHT="100" alt="AD 3" border="1"></a></a></td>
</td>
</if>
<!-- SPECIFIC PAGE RANGE AD2 MOD -->
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output