Back to vBulletin 4.x Template Modifications

Google Adsense After first post (with scrolling option)
Mod Version: 1.00, by xMrCanadax

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 36
Released: 11 Sep 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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>
Step 2: (centering and coloring your adsense)
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;
}
Step 3: (IF YOU WANT SCROLL ONLY)
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>
Only add this if you want your banner to scroll. This can be used for others things other then adsense also.

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

vblts.ru supports vBulletin®, 2022-2024