Log in

View Full Version : How to add an add to all pages of vbulletin board


kobescoresagain
03-18-2005, 04:19 PM
I would like to insert a google adsense add into the bottom of every page of my vbulletin board. Can this easily be done?

bvtonedog
03-18-2005, 05:29 PM
add it to the footer template

Revan
03-18-2005, 06:47 PM
or the header template ;)

bvtonedog
03-19-2005, 06:53 AM
or the header template ;)


he said bottom though ;)

Revan
03-19-2005, 05:23 PM
I knew that! I was just...erm.. checking if you were paying attention! :nervous:
*whistles*
*goes away*

Deaths
03-19-2005, 05:26 PM
he said bottom though ;)
You can easily modify the templates to display the header at the bottom! HAH!

cgjackson2001
04-19-2005, 11:15 PM
Hi,

If i would want to add the adsense banner to my header where would i add it in the header template, this is my header template:

<a name="top"></a>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="tborder2">
<tr>
<td width="100%"> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF0F5">
<tr>
<td height="64" class="top_bg1"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="64" width="317"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="100%"><img src="$stylevar[imgdir_misc]/top_bg1.gif" width="12" height="64" alt="" /></td>
<td width="412" align="right"><img src="$stylevar[imgdir_misc]/top_slogan.gif" width="371" height="64" alt="" /></td>
</tr>
</table></td>
</tr>
<tr align="left" >
<td height="22"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left" >
<td width="39" height="22"><a href="$vboptions[homeurl]"><img src="$stylevar[imgdir_misc]/top_home.gif" width="39" height="22" border="0" alt="$vboptions[hometitle]" /></a></td>
<td width="48" height="22"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_forums.gif" width="48" height="22" border="0" alt="" /></a></td>
<if condition="$show['registerbutton']">
<td width="98" height="22"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_register.gif" alt="$vbphrase[register]" width="98" height="22" border="0" /></a></td>
</if>
<td width="70" height="22"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_memberlist.gif" alt="$vbphrase[members_list]" width="70" height="22" border="0" /></a></td>
<td width="60" height="22"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_calendar.gif" alt="$vbphrase[calendar]" width="60" height="22" border="0" /></a></td>
<if condition="$show['popups']">
<td id="navbar_search" width="48" height="22"><a href="search.php?$session[sessionurl]" accesskey="4"><img src="$stylevar[imgdir_misc]/top_search.gif" alt="$vbphrase[search]" width="48" height="22" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<td width="30" height="22"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_faq.gif" alt="$vbphrase[faq]" width="30" height="22" border="0" /></a></td>
<if condition="$bbuserinfo['userid']"><td width="52" class="top_bg" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/top_links.gif" alt="Quick Links" width="52" height="22" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools"); </script></td></if><if condition="$show['member']">
<td width="52" height="22" class="top_bg"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/top_usercp.gif" alt="$vbphrase[user_cp]" width="52" height="22" border="0"></a></td>

</if>
<td width="100%" height="22"class="top_bg"><img src="$stylevar[imgdir_misc]/menu_open.gif" alt="" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="42" class="top_bottom_bg"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="18" height="42"><img src="$stylevar[imgdir_misc]/top_left_vent.gif" width="18" height="42" alt="" /></td>
<td width="100%" align="center" valign="top"><img src="$stylevar[imgdir_misc]/top_bottom_bg.gif" height="42" alt="" /></td>
<td width="57" align="right"><img src="$stylevar[imgdir_misc]/top_right_vent.gif" width="18" height="42" alt="" /></td>
</tr>
</table></td>
</tr>
</table>
<table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="#EEF0F5">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#FFFFFF">
<tr>
<td width="50%">
<img border="0" src="$stylevar[imgdir_misc]/topleft_c.gif" width="11" height="9" alt="" /></td>
<td width="50%" align="right">
<img border="0" src="$stylevar[imgdir_misc]/topright_c.gif" width="11" height="9" alt="" /></td>
</tr>
<tr>
<td width="100%" colspan="2">
<if condition="$show['quickchooser']">
<form action="$vboptions[forumhome].php" method="get">
<center>
<select name="styleid" id="ressel" onchange="switch_styleid(this)">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</center>
</form>
</if>

<!-- content table -->
$spacer_open

$_phpinclude_output

Thanks if anyone can help me with this.

Cheers,
Chris