The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ad banners
how can i add adverts to my forums??
|
#2
|
|||
|
|||
Quote:
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 |
#3
|
|||
|
|||
i've just upgraded to ver 3.6.1 is there a advertisment plugin i can use?
|
#4
|
|||
|
|||
Quote:
Just add the coding in the templates, no need for a plugin PM me if you need anyhelp.... |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
Quote:
I agree, I always use. Code:
<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 |
#7
|
|||
|
|||
im lost
|
#8
|
|||
|
|||
Quote:
went into templates but got lost, which template do i edit and where exactly do i add the code? |
#9
|
||||
|
||||
These might help you out
CFM: Google AdSense for Search Integration Adsense Banners in Your Archive Info Box - Adsense, Register, and Donations Box (Working Quick Reply) Adsense & Banner - Posbit < 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 |
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|