The Arcive of vBulletin Modifications Site. |
|
Google Adsense After first post (with scrolling option) Details »»
|
|||||||||||||||||||||||||||
|
Google Adsense After first post (with scrolling option)
Developer Last Online: Sep 2020
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']"> <li class="firstpost_advert_container"><div class="firstpost_advert"> Your Google Adsense code here </li> </vb:if> GoTo Styles & Templates>Search in Templates>your style then search for additional.css and anywhere add : Code:
.firstpost_advert_container {
clear: both;
display: block;
float: left;
margin-bottom: 12px;
position: relative;
width: 100%;
border: 1px solid #E5E6F4;
}
.firstpost_advert {
with: 100%;
background: #F1F1FA;
border: 1px solid #fff;
min-height: 90px;
margin: 0;
padding: 7px;
text-align: center;
vertical-align: middle;
}
Code:
<vb:if condition="$post['isfirstshown']"> <li class="firstpost_advert_container"><div class="firstpost_advert"><marquee> Your Google Adsense code here </marquee></li> </vb:if> 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 Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Works perfect. Marked as installed, nominated, and rated 5 stars.
Thank you for this nice and clean modification.
|
| 2 благодарности(ей) от: | ||
| ellinofatsa, xMrCanadax | ||
|
#3
|
|||
|
|||
|
Thank you! anything you might need let me know!
|
|
#4
|
|||
|
|||
|
works great thanks for the modification
|
|
#5
|
|||
|
|||
|
Np! Enjoy it.
|
|
#6
|
||||
|
||||
|
Works fine, how to exempt usergroup?
|
|
#7
|
|||
|
|||
|
Is that similar to what they have over at the DP forum, the AD pulls up right on the first post?
|
|
#8
|
|||
|
|||
|
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 Quote:
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
Is it possible to use this under third post?
Many thanks |
![]() |
|
|