vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=270066

Google Adsense After first post (with scrolling option)
by xMrCanadax
11 Sep 2011 09:13

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 :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 2: (centering and coloring your adsense)
GoTo Styles & Templates>Search in Templates>your style then search for additional.css and anywhere add :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 3: (IF YOU WANT SCROLL ONLY)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 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

AttalaEA 11 Sep 2011 17:01

Works perfect. Marked as installed, nominated, and rated 5 stars.
Thank you for this nice and clean modification. :)

xMrCanadax 11 Sep 2011 17:22

Quote:

Originally Posted by AttalaEA (Post 2244617)
Works perfect. Marked as installed, nominated, and rated 5 stars.
Thank you for this nice and clean modification. :)

Thank you! anything you might need let me know!

[email protected] 12 Sep 2011 11:56

works great thanks for the modification

xMrCanadax 12 Sep 2011 23:51

Np! Enjoy it.

BlueCheri 13 Sep 2011 17:40

Works fine, how to exempt usergroup?

fionix 26 Sep 2011 15:28

Is that similar to what they have over at the DP forum, the AD pulls up right on the first post?

xMrCanadax 11 Oct 2011 06:31

Quote:

Originally Posted by BlueCheri (Post 2245437)
Works fine, how to exempt usergroup?

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:

Originally Posted by fionix (Post 2250217)
Is that similar to what they have over at the DP forum, the AD pulls up right on the first post?

yes it does :)

xMrCanadax 11 Oct 2011 06:33

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

shoppingtelly 15 Oct 2011 14:52

Is it possible to use this under third post?

Many thanks

xMrCanadax 18 Oct 2011 19:43

Quote:

Originally Posted by shoppingtelly (Post 2257475)
Is it possible to use this under third post?

Many thanks

yeah for sure, in a hurry to go to work right now will post the tutorial when I get home.

shoppingtelly 18 Oct 2011 20:36

thank you, you're a star!

flipture 19 Oct 2011 03:17

Mine is showing up on the right side of the first post. Any ideas why? Did I miss something?

Great addon, thanks!

COL NIL SATIS 19 Oct 2011 14:37

This looks pretty sweet

xMrCanadax 19 Oct 2011 21:25

Thank you guys, and flip, what vbulletin version are you running?


All times are GMT. The time now is 18:28.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.