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
![]() 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 |
#182
|
||||
|
||||
![]()
If you're running in "legacy postbit" mode (user info goes at the left hand side of posts) then you need to edit the template postbit_legacy instead of postbit.
You also haven't clicked install for this mod ![]() |
#183
|
|||
|
|||
![]()
Hello again,
i have just restore the "postbit" template and have add the code to the postbit_lecacy template. But it don't run ![]() Whats the problem ![]() ![]() I will click on install, if it runs ![]() |
#184
|
|||
|
|||
![]()
Just wanted to say that this was an excellent hack. Clicked Install. Now, if it generates some cash I'd be happy to donate a little
![]() One newbie type question that has me stumped. I want to make the ads visible to non-registered guests, Users awaiting EMail confirmation and to those who have a post total of less than 50. I know this really goes beyond the realm of this hack, but if anyone can clarify this I would be grateful. For some reason I can't grasp this and I'm sure it super-simple. Here are my default usergroups and their Usergroup I.D.s: (COPPA)-4 Administrators-6 Moderators-7 Registered-2 Super Moderators-5 Unregistered-1 Users Awaiting EMail Confirmation-3 Now here are my Usergroup Titles/Minimum Posts/I.D. # New Member/0/1 Junior Member/20/2 Member/50/3 Senior Member/100/4 How can I edit the hack so that after a minimum post requirement a user can be "ad-free"? Thanks! |
#185
|
|||
|
|||
![]()
Great hack & works fine.
Thanks Jimbo |
#186
|
|||
|
|||
![]() Quote:
![]() |
#187
|
|||
|
|||
![]()
Thanks T.S., I would ideally like to keep my usergroups/usertitles and have this handled by a conditional if possible..but if that can't de done, I'll try anything.
|
#188
|
|||
|
|||
![]() Quote:
Code:
<if condition="$post[posts] >=50"> Jimbo's code </if> |
#189
|
|||
|
|||
![]()
Thanks T.S.!
The first "if" line would go before Jimbo's first line of code in his hack and the last would go after his last line correct? |
#190
|
|||
|
|||
![]() Quote:
|
#191
|
|||
|
|||
![]()
Thanks again..I'll give it a go tomorrow after I get home from my real job
![]() |
#192
|
|||
|
|||
![]() Quote:
Thanks |
#193
|
||||
|
||||
![]()
Works perfect! Thanks.
|
#194
|
|||
|
|||
![]()
Doesn't work. Thanks anyways...
Quote:
|
#195
|
|||
|
|||
![]() Quote:
|
#196
|
|||
|
|||
![]()
Hi, so is the ad displayed right after the 1st post on the page? I would like it to do the following.. is this possible:
a page has 2 posts the ad appears after post one, the page has 4 posts the ad appears after post2, page with 10 posts on it the ad appears after post5. This way the ad is always kept in the center of the postings. Thanks for any info! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|