|
Google Adsense After first post (with scrolling option)
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 http://legionrs.com/forums/showthread.php?5-Welcome-to-LegionRS&p=10&viewfull=1#post10 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 Download No files for download. |
|||||||||
Similar Mods
| Show Thread Enhancements Google Adsense after first post (or other advertisements) | vBulletin 4.x Add-ons |
| Mini Mods A Neater Google Adsense After First Post | vBulletin 4.x Template Modifications |
| Forum Display Enhancements Google AdSense (or other) after post... | vBulletin 3.6 Template Modifications |