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 |
#107
|
||||
|
||||
Update: I've changed the tested version info to v3.5.3 as it runs fine in this latest version.
|
#108
|
||||
|
||||
Quote:
You just need to do a template change, no plugin is required. |
#109
|
||||
|
||||
My thanks for taking the time to further explain. The changes worked perfectly.
|
#110
|
||||
|
||||
Excellent!
|
#111
|
|||
|
|||
I've installed this on a clean install of vbulletin 3.5.3 using iSkin form extremepixels at www.djstalk.com and it doesn't show up at all.
|
#112
|
||||
|
||||
Quote:
Which templates have you added the extra template code to and in which style? Run me though the steps you took. |
#113
|
|||
|
|||
I accessed the admin area, clicked on the plugin section and browsed for your xml file, uploaded it and made sure it was enabled. I then opened up the postbit-legacy template and edited that to include the code you supplied with my google adsense code. I added your code to the very bottom just before the very last line of code.
|
#114
|
|||
|
|||
Fantastic, Works great and much appreciated.
Clicks Install |
#115
|
||||
|
||||
Quote:
You're definitely using the legacy template not the postbit one on your forum? You're definitely looking at the forum using that style or an inherited one? |
#116
|
|||
|
|||
I definitley am using the legacy template yes, and I am definitely using the correct skin. I've even tried using the other skin (the default one) and adding the code into the standard post bit.
www.djstalk.com - if you want to take a look yourself, I'm happy to let you. |
#117
|
||||
|
||||
Are the plugins definitely enabled and the templates edit: not overridden elsewhere?
I'm happy to take a further look if you want. If you setup an account with permissions to the admincp and PM the details you can then delete/change the permissions on the account or delete it after I'm done. |
#118
|
|||
|
|||
I got everything working but for some reason my ad keeps showing Gulf Hurrican Relief ad. Is there configuring that I need to do to get my ads more targeted?
|
#119
|
||||
|
||||
Quote:
Have a look in the AdSense FAQ and this is explained there |
#120
|
|||
|
|||
Ok.. I just setup my account Early early this morning. Would that have a reason why?
|
#121
|
||||
|
||||
As per my last post:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|