Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
A Neater Google Adsense After First Post Details »
A Neater Google Adsense After First Post
Mod Version: 1.00, by ShawneyJ (Coder/Designer) ShawneyJ is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.5 Rating: (25 votes - 4.92 average) Installs: 190
Released: 06 May 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Neater Google Adsense After First Post.jpg
Views:	5331
Size:	83.6 KB
ID:	116754  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Google Adsense after first post (or other advertisements) Allan vBulletin 4.x Add-ons 97 23 Aug 2018 23:00
Mini Mods Google Adsense (or other) in a Block like an Individual Post Leo Brazil vBulletin 4.x Template Modifications 15 25 Sep 2013 17:17
Forum Display Enhancements Google AdSense (or other) after post... goranbaxy vBulletin 3.6 Template Modifications 46 10 Sep 2010 04:04

  #16  
Old 23 Jul 2010, 21:32
rmani84 rmani84 is offline
 
Join Date: Jul 2010
perfect ... exactly what i was looking for ... Thanks a ton
Reply With Quote
  #17  
Old 26 Jul 2010, 23:16
Numenorean7 Numenorean7 is offline
 
Join Date: May 2009
This mod owns!
Reply With Quote
  #18  
Old 29 Jul 2010, 05:01
dzinerfusion dzinerfusion is offline
 
Join Date: Jul 2010
Hi, would there be a way to exclude this ad for certain boards?
Reply With Quote
  #19  
Old 02 Aug 2010, 12:27
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Real name: Shawn
thanks guys, works for vB Version: 4.0.5.
__________________
Sorry Guys, just a little busy lately.
Reply With Quote
  #20  
Old 05 Aug 2010, 23:07
Seb@'s Avatar
Seb@ Seb@ is offline
 
Join Date: Aug 2005
thanks

Last edited by Seb@; 07 Aug 2010 at 20:57.
Reply With Quote
  #21  
Old 06 Aug 2010, 02:14
ifitsmedia ifitsmedia is offline
 
Join Date: Jul 2010
Brilliant, thank you.
Reply With Quote
  #22  
Old 06 Jan 2011, 09:50
spinnaker's Avatar
spinnaker spinnaker is offline
 
Join Date: Apr 2010
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).


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


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


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


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)


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


and change in Postbit Legacy this green text:


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


DEMO here.

Happy New Year
Attached Images
File Type: jpg advertisement-last-post.jpg (103.9 KB, 171 views)

Last edited by spinnaker; 06 Jan 2011 at 09:56.
Reply With Quote
  #23  
Old 06 Jan 2011, 11:20
rtyagis rtyagis is offline
 
Join Date: Feb 2009
Thumbs up

Tagged this. For ad in the last post.
__________________
PolicyWala | Forum
Reply With Quote
  #24  
Old 10 Jan 2011, 22:07
4x4Ham 4x4Ham is offline
 
Join Date: Jan 2010
Thank you. Added with edits for groups in post #11. Works great.
Reply With Quote
  #25  
Old 17 Jan 2011, 23:48
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
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

{vb:raw template_hook.postbit_end}

<vb:if condition="$post['isfirstshown']">
<li class="firstpost_advert_container"><div class="firstpost_advert">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-753992401340nnnn";
/* slim long one, created 10/18/10 */
google_ad_slot = "444781nnnn";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</li>
</vb:if>
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!

Last edited by jnrdavo; 21 Jan 2011 at 20:59.
Reply With Quote
  #26  
Old 19 Jan 2011, 03:47
caciocode caciocode is offline
 
Join Date: Apr 2010
Tagged. Might come useful
__________________
Mathematics forum
Reply With Quote
  #27  
Old 30 Jan 2011, 19:20
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Originally Posted by jnrdavo View Post
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

{vb:raw template_hook.postbit_end}

<vb:if condition="$post['isfirstshown']">
<li class="firstpost_advert_container"><div class="firstpost_advert">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-753992401340nnnn";
/* slim long one, created 10/18/10 */
google_ad_slot = "444781nnnn";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</li>
</vb:if>
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!
bump... Still looking for help on this one :-)

I would say something to do with permissioning, but can't find out where :-)
Reply With Quote
  #28  
Old 04 Mar 2011, 04:54
webmastersitesi webmastersitesi is offline
 
Join Date: Oct 2007
very nice share thank you
__________________
webmaster forum |webmaster forum
seo
Reply With Quote
  #29  
Old 05 Mar 2011, 01:23
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Very good one, tagged.
Reply With Quote
  #30  
Old 07 Mar 2011, 23:36
cpvrx's Avatar
cpvrx cpvrx is offline
 
Join Date: Jul 2009
It displays the adsense on the first post, of each page correct? Like, if the thread has multiple pages, does it still show up?
__________________
Owner of the Virtual pets community and sell/buy art in our art marketplace
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:20.

Layout Options | Width: Wide Color: