vBulletin Mods

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

A Neater Google Adsense After First Post
by ShawneyJ
06 May 2010 07:51

1 Attachment(s)
Ok, so i haven't found any google adsence products for vb 4 yet that sit neatly under your first post only, on every page. Credits to Miko and my self for a few tiny edits.

How To Install
Step.1:
GoTo Postbit Templates>>open postbit_legacy and add at the very bottom:


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


Step.2:
GoTo CSS Templates>>open additional.css and add this code:


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

Feel free to customize to your needs, i had to mess around to suit my custom style. I changed the min-height to 90px for a neater look for 728x90 ads and changed margin-bottom: to 18px. But how the code is above is perfect for Vbulletin 4 Default.
DEMO: Teen Forums
Please Note: im not a coder, i just wanted to share this with others, its VERY easy to add to your styles and looks neat. Good Luck.
This coding is also different than Mod Version: 1.00, by Allan. You shouldn't have any problems with this and it will do you till a product version comes out.

Sotagamer 21 May 2010 00:17

Wow this is AMAZING THANK YOU SOOO MUCH!!! :D

joomla 21 May 2010 00:55

was very good. Thanks

YouTubeVZ 24 May 2010 02:42

Thanks :)

tommac3 26 May 2010 01:20

Is there a way to limit this to certain groups?

ShawneyJ 26 May 2010 06:17

Quote:

Originally Posted by tommac3 (Post 2043405)
Is there a way to limit this to certain groups?

no, sorry, not until someone releases a product which shouldnt be to far off.

YankForum 26 May 2010 18:01

what's the difference compared to other adsense after first post codes ?

Boko577 27 May 2010 05:12

Is it possible to make only guests and regular members see this ad unit?

ShawneyJ 29 May 2010 03:10

Quote:

Originally Posted by YankForum (Post 2043692)
what's the difference compared to other adsense after first post codes ?

the other adsense add it's inside the attachment div, was Kinda breaking the layout on a lot of styles, also it was joining to the post for some members.



Quote:

Originally Posted by Boko577 (Post 2043899)
Is it possible to make only guests and regular members see this ad unit?

as said above, this should be possible when the product is out, im actually surprised one is not released yet.

strudinox 02 Jun 2010 18:42

Any way to exclude a certain group? A have a certain usergroup that does not view ads. I'd use this for sure if it's possible. :)

Xencored 02 Jun 2010 21:48

Quote:

Originally Posted by strudinox (Post 2047172)
Any way to exclude a certain group? A have a certain usergroup that does not view ads. I'd use this for sure if it's possible. :)


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

1,2,3,4,5,6 = usergroups you want to see the AD

kavehch 02 Jun 2010 23:13

hi

a want google ads add after first post and 5 10 15 20 and ...... post what this ?

thanks

AURFSCAN 03 Jun 2010 01:08

thx jaycob, I'll use your code (modded a bit) to display random linkable banners


Add multiple Images (banners) with links corresponding to Image and display them randomly after first post on every page



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


red - usergroups you want to show
green - image/banner link
blue - location of Image

add more arrays for more Images

AURFSCAN 03 Jun 2010 02:28

geez, after looking around here for conditionals theres a million of these ad placement threads.
have to say yours is the neatest jaycob due to the css thx :)

and sorry also for going nuts with the code in your thread

kavehch 04 Jun 2010 00:40

hi

a want google ads add after first post and 5 10 15 20 and ...... post what this ?

thanks


All times are GMT. The time now is 09:37.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, 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.