![]() |
Quote:
Quote:
Until now, I have not used plugins in this manner. I've tested this in a thread, and have verified that if there were less than 3 posts only the single ad was shown. For anyone else considering making their ads work the way mine here, here's the complete code below. These are my conditions: 1) The ads will ONLY be shown to unregistered / guest users and a couple other groups - as indicated by the <vb:if condition="is_member_of($bbuserinfo,1,3,4,8) section 2) There are TWO Google AdSense ads created, "vBulletin Forum Ad after First Post" which is shown after the opening post and "vBulletin Forum Ad Before Last Post" which is shown ONLY in a thread if there are 3 posts. In postbit_legacy: HTML Code:
<vb:if condition="is_member_of($bbuserinfo,1,3,4,8) AND $post['isfirstshown']"> HTML Code:
.firstpost_advert_container { |
Good evening [mornig]
I love the mod greatly however i have a problem with it .. It dispaly the same AD after every single post. Can anybidy help with that ...THx in advance ! |
Quote:
Content > Ad units > New ad unit |
Quote:
|
Refer this post https://vborg.vbsupport.ru/showpost....8&postcount=74
ads are showed only in 1 post of a page |
Quote:
|
Just in case anyone else is having trouble like I was with this on vbulletin 4.2.2, this wasn't working for me and I spent a good while trying to figure out why. Turns out the problem was I was using the wrong template.
I was using "postbit_legacy" as all instructions said to use. but I needed to just use "postbit". After adding the code to "postbit" template, and then also changing the plugin mentioned above to reflect the same template - it now works brilliantly for me. So, if your having trouble, try using the "postbit" template instead. |
All times are GMT. The time now is 10:51 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:
|