![]() |
A Neater Google Adsense After First Post
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: Code:
<vb:if condition="$post['isfirstshown']"> Step.2: GoTo CSS Templates>>open additional.css and add this code: Code:
.firstpost_advert_container { 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. |
Wow this is AMAZING THANK YOU SOOO MUCH!!! :D
|
was very good. Thanks
|
Thanks :)
|
Is there a way to limit this to certain groups?
|
Quote:
|
what's the difference compared to other adsense after first post codes ?
|
Is it possible to make only guests and regular members see this ad unit?
|
Quote:
Quote:
|
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. :)
|
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,5,6) AND $post['isfirstshown']" > |
hi
a want google ads add after first post and 5 10 15 20 and ...... post what this ? thanks |
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 Code:
red - usergroups you want to show green - image/banner link blue - location of Image add more arrays for more Images |
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 |
hi
a want google ads add after first post and 5 10 15 20 and ...... post what this ? thanks |
perfect ... exactly what i was looking for ... Thanks a ton
|
This mod owns! :)
|
Hi, would there be a way to exclude this ad for certain boards?
|
thanks guys, works for vB Version: 4.0.5.
|
thanks
|
Brilliant, thank you.
|
1 Attachment(s)
How to add advertisement after last post on the page? It's simple :)
DEMO here. You have to make a small change in the pasted code in Postbit Legacy Template (postbit_legacy) (on the color green). Code:
<vb:if condition="$post['islastshown']"> If you want to have two advertisements simultaneously, the advertisement after the first post and the one after the last, paste this into the previous one. Postbit Legacy Template (postbit_legacy) should look like this (paste this code at the end): Code:
<vb:if condition="$post['isfirstshown']"> When using this code, advertisement after the last post using the same code CSS Template (additional.css) for the first advertisement. Don't change anything in CSS Template. But when changing CSS Template for second advertisement (after last post) must add this code to CSS Template (paste at the end in additional.css) Code:
.lastpost_advert_container { and change in Postbit Legacy this green text: Code:
<vb:if condition="$post['isfirstshown']"> DEMO here. Happy New Year :) |
Tagged this. For ad in the last post.:up:
|
Thank you. Added with edits for groups in post #11. Works great.
|
Hi Guys, not sure what I'm doing wrong, but can't get anything to display (in either first post or last post)..
This is the bottom of my postbit_legacy template Am I missing something? I've also modded the additional.css templates... I'm using 4.1.0 Patch Level 2, any help appreciated. UPDATE: Ok, so I have this running ok one on board, but the other it only shows if I'm logged out... Obviously something to do with permissiong... Any help still appreciated! |
Tagged. Might come useful
|
Quote:
I would say something to do with permissioning, but can't find out where :-) |
very nice share thank you
|
Very good one, tagged.
|
It displays the adsense on the first post, of each page correct? Like, if the thread has multiple pages, does it still show up?
|
thanks
|
Thanks, one of the most useful codes, I have found on this site other than vbulletin itself ;)
|
Thanks..
|
works just fine
|
Does this work on 4.1.4?
I only get colored boxes |
nm,
works great in 4.1.4 |
Thanks for sharing! I really like it :)
|
Working well on (vBulletin 4.1.5 Patch Level 1)
Can someone please be so kind as to tell me how to get mine aligned in the centre? It is over to the left right now:( |
1 Attachment(s)
Hi jaycob:
Thanks for the mode. It works great for me. I saw a few thing that I like on your attachment, as shown below. Please share the code for that mod? greatly appreciated. Attachment 132879 Vic |
Q: Are you allowed to have the Google AdSense for Search field after first post in this mod?
Think that is a great place to earn som extra... they read first post and might get the idea to search... |
All times are GMT. The time now is 02:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|