First off, this is probably the most useful vB hack I have installed. It helps me run my ad campaigns efficiently and with the minimum of fuss. This is how I have set up the hack:
1. In your global.php file for vBulletin, search for:
Code:
// templates to be included in every single page...
$globaltemplates = array_merge($globaltemplates, array(
// the really important ones
In the list add:
Code:
// ADSERVER TEMPLATE ADDITION
'adserver',
2. Create a new template called 'adserver' in your VB styles and templates area. This is the code I use:
Code:
<div style="position: absolute; top: 10px; right: 80px; padding: 1px; border: 2px #C0C0C0 solid;">
<if condition="$foruminfo['forumid']==24"><ad what="zone:3" /><else />
<if condition="$foruminfo['forumid']==105"><ad what="zone:3" /><else />
<if condition="$foruminfo['forumid']==106"><ad what="zone:3" /><else />
<if condition="$foruminfo['forumid']==11"><ad what="zone:4" /><else />
<if condition="$foruminfo['forumid']==18"><ad what="zone:5" /><else />
<if condition="$foruminfo['forumid']==14"><ad what="zone:7" /><else />
<if condition="$foruminfo['forumid']==16"><ad what="zone:8" /><else />
<if condition="$foruminfo['forumid']==69"><ad what="zone:9" /><else />
<ad what="zone:6" />
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</div>
What is basically does is some CSS positioning to put the ad at the top right of the screen and then it assigns different forum ids to different ad zones within phpadsnew.
Finally, in your NAVBAR template in vb, add the following to the top of your template:
And thats it - that should position your banner at the top right of your forum pages and should display the correct banner relating to your phpadsnew zone set up. It defaults in my case to showing 'zone:6' ads if no other forum is selected.
I hope this helps someone - made it very easy for me when I update my vbulletin versions.