View Full Version : Ad banners
randy.
09-17-2006, 06:29 PM
how can i add adverts to my forums??
satcruiser
09-18-2006, 03:11 PM
how can i add adverts to my forums??
Adding a banner is easy if you are running vbulletin version 3.5 or higher (with plug in capability)
acitvate the admincp control panel
click on add plug in
select hook location (forumhome_complete)
add the following PHP code in the PHP window
echo "<div align='right'>";
echo "<table border='0' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td width='100%' align='right'>";
echo "<p align='justify'>";
echo "<a href='http://www.EXMAPLE.com/index.html' target='_blank'>";
echo "<img src='http://www.EXAMPLE.com/images/bn_banner.gif' border='0' align='right' width='200' height='80'>";
echo "</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
Note***: IF a PHP line above does not start with "ECHO" then it is part of the previous line (darn wrapping) and should have a space after the last word of the previous line.
The above code will create a banner using image file bn_banner.gif and will create a new window (target _blank) when you click on the image. If you do not want to create new window then just remove (target _blank). WWW.EXAMPLE.COM is your website, you can use subdirectory if you want to point to your shopping cart for example use www.example.com/shopping/index.html
The only problem is that this code will be displayed only when you start the forum. If you want the advertisement to show in the threads or when someone reads a post, then just create two more plug ins at these hook locations using the same PHP code, the locations are (showthread_complete and forumdisplay_complete)
I do not know of a "hook location" where I would have to enter this code only once and make it appear on every page. If someone knows, any help will be appreciated.
I selected image size 200 by 80, you can use your own image size, I found it to look the best.
It took me sometime to figure this out, so I hope this will help you. Good luck
randy.
09-20-2006, 05:22 PM
i've just upgraded to ver 3.6.1 is there a advertisment plugin i can use?
jackceltic1888
09-20-2006, 05:40 PM
i've just upgraded to ver 3.6.1 is there a advertisment plugin i can use?
Just add the coding in the templates, no need for a plugin:)
PM me if you need anyhelp....;)
Ntfu2
09-20-2006, 06:13 PM
Adding a banner is easy if you are running vbulletin version 3.5 or higher (with plug in capability)
acitvate the admincp control panel
click on add plug in
select hook location (forumhome_complete)
add the following PHP code in the PHP window
echo "<div align='right'>";
echo "<table border='0' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td width='100%' align='right'>";
echo "<p align='justify'>";
echo "<a href='http://www.EXMAPLE.com/index.html' target='_blank'>";
echo "<img src='http://www.EXAMPLE.com/images/bn_banner.gif' border='0' align='right' width='200' height='80'>";
echo "</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
Note***: IF a PHP line above does not start with "ECHO" then it is part of the previous line (darn wrapping) and should have a space after the last word of the previous line.
The above code will create a banner using image file bn_banner.gif and will create a new window (target _blank) when you click on the image. If you do not want to create new window then just remove (target _blank). WWW.EXAMPLE.COM is your website, you can use subdirectory if you want to point to your shopping cart for example use www.example.com/shopping/index.html
The only problem is that this code will be displayed only when you start the forum. If you want the advertisement to show in the threads or when someone reads a post, then just create two more plug ins at these hook locations using the same PHP code, the locations are (showthread_complete and forumdisplay_complete)
I do not know of a "hook location" where I would have to enter this code only once and make it appear on every page. If someone knows, any help will be appreciated.
I selected image size 200 by 80, you can use your own image size, I found it to look the best.
It took me sometime to figure this out, so I hope this will help you. Good luck
Maybe the most complicated way i've ever seen anyone add advertisements to their forums...ever
jackceltic1888
09-20-2006, 06:20 PM
Maybe the most complicated way i've ever seen anyone add advertisements to their forums...ever
I agree,
I always use.
<td valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" class="topWrapper">
<tr><a href="URL"><img src="BANNER" border="0"></a></tr>
</table></td>
</tr>
Regards
randy.
09-28-2006, 06:47 PM
im lost
randy.
09-30-2006, 12:59 PM
I agree,
I always use.
<td valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" class="topWrapper">
<tr><a href="URL"><img src="BANNER" border="0"></a></tr>
</table></td>
</tr>
Regards
went into templates but got lost, which template do i edit and where exactly do i add the code?
Nathan2006
10-01-2006, 02:05 AM
These might help you out ;)
CFM: Google AdSense for Search Integration (https://vborg.vbsupport.ru/showthread.php?t=125721)
Adsense Banners in Your Archive (https://vborg.vbsupport.ru/showthread.php?t=125879)
Info Box - Adsense, Register, and Donations Box (Working Quick Reply) (https://vborg.vbsupport.ru/showthread.php?t=122217)
Adsense & Banner - Posbit (https://vborg.vbsupport.ru/showthread.php?t=101291) < This is really for 3.5.1 but I use it on my 3.61 and it works great 1 banner after the 1st post :)
GrendelKhan{TSU
10-01-2006, 04:37 PM
These might help you out ;)
CFM: Google AdSense for Search Integration (https://vborg.vbsupport.ru/showthread.php?t=125721)
Adsense Banners in Your Archive (https://vborg.vbsupport.ru/showthread.php?t=125879)
Info Box - Adsense, Register, and Donations Box (Working Quick Reply) (https://vborg.vbsupport.ru/showthread.php?t=122217)
Adsense & Banner - Posbit (https://vborg.vbsupport.ru/showthread.php?t=101291) < This is really for 3.5.1 but I use it on my 3.61 and it works great 1 banner after the 1st post :)
thanks!! I always forget where the adsense threads are! ;) :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.