The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Randomly positioned ad in between postbits in showthread Details »» | |||||||||||||||||||||||||||
Randomly positioned ad in between postbits in showthread
Developer Last Online: Mar 2013
Inspired by this hack.
The ad is positioned randomly after one of the postbits. We use this for positioning adsense ads on visordown.com. Install the attached plugin then add the following code to your postbit or postbit_legacy template: HTML Code:
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <!-- ad code goes here --> </td> </tr> </table> </div> $spacer_close </if> Changelog v1.01 Bug fix: The ad code shouldn't appear on PMs any more (template change) Donations Hopefully this plugin will earn you provide you with some good revenue. If you'd like to show your appreciation please donate as little or as much as you like. Supporters / CoAuthors Show Your Support
|
Comments |
#212
|
|||
|
|||
just re-installed under 3.6, using the tips from above..good work. click *install*
Is it possible to have the ads displayed when viewing the forum index, or when viewing the thread topics within a group as opposed to having the ads displayed when one views the messages within a thread as this does now? Would also like to know if I could have two rows of ads appear instead of one.. |
#213
|
|||
|
|||
Quote:
Any new of the new version? works in 3.6.0 but the table with the ads is not squeared with the post tables anymore. |
#214
|
|||
|
|||
Quote:
Use this: HTML Code:
<div style="padding:6px 0px 0px 0px">
|
#215
|
|||
|
|||
Quote:
should I add that code or replace the spacer_closed and space_open with the code? |
#216
|
|||
|
|||
Quote:
HTML Code:
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0"> <div style="padding:6px 0px 0px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <!-- ad code goes here --> </td> </tr> </table> </div> </if> |
#217
|
|||
|
|||
Please read my previous post a page ago.
|
#218
|
||||
|
||||
can some one help me fix my code I keep geting No post after i add this
if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0"> <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <!-- BEGIN ADVERTPRO CODE BLOCK --> <SCRIPT language="JavaScript" type="text/javascript"> document.write('<SCR'+'IPT src="http://216.27.135.253:8080/advertpro/servlet/view/banner/javascript/zone?zid=7&pid=4&random='+Math.floor(89999999*Math .random()+10000000)+'&millis=' +new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); </SCRIPT> <NOSCRIPT> <A href="http://216.27.135.253:8080/advertpro/servlet/click/zone?zid=7&pid=4&lookup=true&position=1" target="_top"> <IMG src="http://216.27.135.253:8080/advertpro/servlet/view/banner/image/zone?zid=7&pid=4&position=1" height="60" width="468" hspace="0" vspace="0" border="0" alt="Click Here!"> </A> </NOSCRIPT> <!-- END ADVERTPRO CODE BLOCK --> </td> </tr> </table> </div> </if> |
#219
|
|||
|
|||
Installed and working on 3.6.2! I made one small change, being that it only shows the random ads for guests.
|
#220
|
|||
|
|||
works great, thanks
just had to remove the spacer stuff for 3.6 and add the new div tag. thanks again... *installed* |
#221
|
|||
|
|||
Removing spacer_closed and space_open and changing the div to <div style="padding:$stylevar[cellpadding]px 0px 0px 0px"> or <div style="padding:6px 0px 0px 0px"> doesn't work for me.
See -> http://www.webhostingtalk.nl/webhost...ders-bots.html Any ideas? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|