![]() |
Randomly positioned ad in between postbits in showthread
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"> 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. https://vborg.vbsupport.ru/external/2010/02/12.gif |
I'll give this one a try, because the "Adsense after first post" did not work with Firefox at "Quick Reply". Thanks for releasing this one.
edit: works perfect. |
I had the same problem with the adsense code affecting the functionality of AJAX. Quick reply would work ONLY if you did not have to click to activate it. One thing you may want to test is to attempt to click quick reply in a post AFTER the display of the adsense and see if it works.
The code I have now will allow you to click quick reply in a post above the adsense, however, not in a post below it. If this works I will be using it :) |
I've installed the plugging and the code and this is not working, What am I doing wrong? Thanks.
It just doesn't show up. |
nice one! just wish we could add/edit the ads without going into the template.
|
can you select certain usergroups not to see this?
|
yea i got the same question, id prefer only guests see the ads, not logged in members, i get more guests than anything
|
mandatory "is there a screen shot?" request. ;) :p
|
To make only guest see the ads take this code and add it at the end of the postbit (_legacy) template.
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))"> |
Thanks for posting the usergroup variation Doc Great. I've got no issues with you re-posting the code elsewhere as long as it's not being sold!
|
All times are GMT. The time now is 03:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|