![]() |
Google Adsense After first post (with scrolling option)
1 Attachment(s)
How To Install
Step.1: GoTo Styles & Templates>Search in Templates>your style then search for "postbit_legacy" without quotations. at the very bottom before "{vb:raw template_hook.postbit_end}" add : Code:
<vb:if condition="$post['isfirstshown']"> GoTo Styles & Templates>Search in Templates>your style then search for additional.css and anywhere add : Code:
.firstpost_advert_container { Code:
<vb:if condition="$post['isfirstshown']"> You are finished! you can see a Demo Here Customize the CSS as you wish. Hope this helped. To exempt usergroups : To exempt usergroups just do this Replace : <vb:if condition="$post['isfirstshown'] With : <vb:if condition="$post['isfirstshown'] AND !in_array($bbuserinfo[usergroupid], array(X,Y,A))"> X,Y,A Being Usergroup ID's |
Works perfect. Marked as installed, nominated, and rated 5 stars.
Thank you for this nice and clean modification. :) |
Quote:
|
works great thanks for the modification
|
Np! Enjoy it.
|
Works fine, how to exempt usergroup?
|
Is that similar to what they have over at the DP forum, the AD pulls up right on the first post?
|
Quote:
X,Y,A being usergroup ID's Quote:
|
To exempt usergroups just do this
Replace : <vb:if condition="$post['isfirstshown'] With : <vb:if condition="$post['isfirstshown'] AND !in_array($bbuserinfo[usergroupid], array(X,Y,A))"> X,Y,A Being Usergroup ID's |
Is it possible to use this under third post?
Many thanks |
Quote:
|
thank you, you're a star!
|
Mine is showing up on the right side of the first post. Any ideas why? Did I miss something?
Great addon, thanks! |
This looks pretty sweet
|
Thank you guys, and flip, what vbulletin version are you running?
|
I use it for showing the ads after each 3th post
<vb:if condition="(THIS_SCRIPT == showthread) AND (($post[postcount] % 3) == 0)"> <li class="firstpost_advert_container"><div class="firstpost_advert"> YOUR AD CODE </li> </vb:if> |
Awesome thank you very much
|
Thanks for the awesome feedback guys. need any other mods pm me details and I will try at it.
|
Quote:
|
Works juts great, my only problem is that adsense is showing after second post
Probably it is cause I use mod "first post on every page" https://vborg.vbsupport.ru/showthrea...=239282&page=9 Any ideas, for now I left it under second post but I would like it under first as it is better like that I think. Maybe to put it above "first post" in my case, lol ? (how to do that) Thanks |
Quote:
|
Quote:
But my users already got use to this option (first post on every page), even I did...its kinda natural to have first one.... specially on forums where you have 100-200... pages Not a coder just dont know how to fix this :( Thanks |
I cannot see adsense ad. I have vb 4.1.8. Where's the problem?
|
Can you show me what you see @datoneer?
|
Working fine with upgrade.
G! |
I'm going to mark this as installed. I am pretty sure I used your post to help me configure my pages.
I really hate the sites where it looks like they had some postbot insert the ads btw. This is the code I inserted in my forum just in case people want to do something similar. Quote:
So after the first post it gives guests and registered members 3 ads. Two adsense and one eBay. For supporting members, it gives them two adsense by default. If they go into their profile and turn off the in post ads (field13), it will remove them. By turning ads back on for my supporting members be default, I have received no complaints, yet have increased my ad revenue. Yes I used depreciated <center> tags. One day when I'm not lazy or this becomes a real issue, I'll put it all in a div. |
Hi,
I'm trying to get this to work and it just doesn't seem to do anything at all with the newer versions of vBulletin. Any help? |
Quote:
What am I doing wrong? |
thanks alot its working fine on my Forum http://www.naijafinder.com/forum.php
|
All times are GMT. The time now is 07:14 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:
|