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 |
#152
|
||||
|
||||
Quote:
The threads are all public. (no registration necessary to read) And its been like this for weeks. :/ (eg: here's one with a ton of text about the superbowl and ward winning MVP...but again, the ads are still "free forum software etc." http://www.naestar.net/forums/showthread.php?t=19196 ) |
#153
|
||||
|
||||
Quote:
Animaged images for ?150 All Steelers games on DVD were the ads I got. Looks like it's working. |
#154
|
||||
|
||||
Quote:
is some kinda of geo-location in effect? where are you located? I get 4 forum software or other related ads. (ie: pretty useless) (see image). can you check some other threads and see if you get related ads? I'd appreciated it greatly. I want to see if its just feeding me those ads. |
#155
|
||||
|
||||
Works very well. Thank you.
Clancy |
#156
|
||||
|
||||
Quote:
Steelers pendants Pittsburg Steelers Pittsburg Steelers Seoul Hotels --- Thanks UK Jimbo, I'll give it a go |
#157
|
|||
|
|||
Quote:
Cheers. |
#158
|
|||
|
|||
Quote:
I?ve installed your code and modified it, so that certain usergroups see/don?t see ads, and to create different ad-channels to have a better overview (targeting). The code seemed to work fine, but in the last days I had to notice that ads also appeared under the last post. Dunno why, but that?s the situation by now. |
#159
|
||||
|
||||
Hi guys - I'm really tied up at the moment. Will take a look ASAP but that might be in a few days time.
James |
#160
|
||||
|
||||
I know this is a bit basic, but I missed it on about 20 ocassions during my installation on this plugin.
Make sure you have the plugin/hook system enabled on your board, I was doing a test install on my other vB setup (small site - new install) and could not get this to work at all, until I read the text that vB had been almost shouting at me since the start "the plugin/hook system is currently disabled..." Enabled it and worked first time. I know you've probably just wasted 30 seconds of your life reading this, but I've just read every post here before reading the error message so just hoping to save someone 10 minutes. Great plugin, easy install (especially if you're not as dopy as me) [cleeeck]INSTALL[/cleeeck] |
#161
|
|||
|
|||
installed, works like charm... only concern is if I can set it to display at the end of the last post only? or after the first post only? cause I believe this kind of random placing isn't efficient in my case... thank you!
|
#162
|
||||
|
||||
This stretches my page
|
#163
|
||||
|
||||
Now that I have this up and running, can anyone tell me how to modify the first line condition to check for user rank, ie I would also like my Junior members to be able to see the ads. I already have it checking for forums and usergroups. Junior members (less than 30 posts) dont contribute as much content to the site as more senior members so they may as well see the ads.
Thanks in advance for any help. |
#164
|
||||
|
||||
Does this work on postbit template, doesn't seem to work on mine, it creates the first post normal, then every post after that just decreases in size, lol..
the last post is super small..?? |
#165
|
||||
|
||||
Sweet! I've been looking for this! Thanks a lot!
I had some troubles, but once I put the code in both postbit and legacy, then the ads started showing up! Brilliant mod! Thanks very much! |
#166
|
||||
|
||||
Quote:
You probably need to change the HTML accordingly |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|