User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the DaniWeb Community Feedback section within the Coffee House category of DaniWeb, a massive community of 455,970 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,773 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our DaniWeb Community Feedback advertiser: Programming Forums
Views: 5126 | Replies: 14
Reply
Join Date: Aug 2004
Posts: 7
Reputation: 1EightT is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
1EightT 1EightT is offline Offline
Newbie Poster

Adsense ads in showthread

  #1  
Aug 24th, 2004
I was noticing your use of adsense ads in the showthread template. That has to be one of the best locations I have seen. Where and how did you place it so it only shows up once after the first post? I would love to use this if you don't mind sharing.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2003
Location: Toronto, Canada
Posts: 354
Reputation: Gary King will become famous soon enough Gary King will become famous soon enough 
Rep Power: 6
Solved Threads: 5
Colleague
Gary King's Avatar
Gary King Gary King is offline Offline
PHP/vBulletin Guru

Re: Adsense ads in showthread

  #2  
Aug 24th, 2004
The founder of this site made it herself; you should just go to www.vbulletin.org and request for it there.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

  #3  
Aug 24th, 2004
If you're using vBulletin 3, go into the Style Manager for the style you wish to edit. The change will be made in either the postbit or postbit_legacy template, depending upon which one you use. (User info on top vs. user info on left).

The very bottom of the template should say:
[php]<if condition="$show['spacer']"><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->[/php]
Directly above this, add:
[php]<if condition="$post[postcount]==1">
<!-- text advertising -->
Google AdSense here
<!-- / text advertising -->
</if>[/php]
Of course, it can be customized via HTML and CSS as I have done to have a background, etc.
Reply With Quote  
Join Date: Jan 2005
Posts: 3
Reputation: dcallan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dcallan dcallan is offline Offline
Newbie Poster

Re: Adsense ads in showthread

  #4  
Jan 16th, 2005
Originally Posted by cscgal
If you're using vBulletin 3, go into the Style Manager for the style you wish to edit. The change will be made in either the postbit or postbit_legacy template, depending upon which one you use. (User info on top vs. user info on left).

The very bottom of the template should say:
[php]<if condition="$show['spacer']"><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->[/php]
Directly above this, add:
[php]<if condition="$post[postcount]==1">
<!-- text advertising -->
Google AdSense here
<!-- / text advertising -->
</if>[/php]
Of course, it can be customized via HTML and CSS as I have done to have a background, etc.

What about doing this on the second or susequent pages of a thread, would it be something like this (assuming I have 10 post a page) :

<if condition="$post[postcount]==1 || 11 || 21">
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

  #5  
Jan 17th, 2005
No. It would be

<if condition="$post[postcount]==1 || $post[postcount]==11 || $post[postcount]==21">
Reply With Quote  
Join Date: Jun 2004
Location: Secret Underground Layer In Kreplakistan
Posts: 49
Reputation: ArunK is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
ArunK's Avatar
ArunK ArunK is offline Offline
Light Poster

Re: Adsense ads in showthread

  #6  
Jan 21st, 2005
This is a nice hack.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

  #7  
Jan 21st, 2005
Thank you.
Reply With Quote  
Join Date: Jan 2005
Posts: 3
Reputation: dcallan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dcallan dcallan is offline Offline
Newbie Poster

Re: Adsense ads in showthread

  #8  
Jan 22nd, 2005
are you getting a respectable ctr from it, keep in mind that specifics are not allowed and I know this.
Reply With Quote  
Join Date: Jan 2005
Posts: 12
Reputation: Gandalf is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Gandalf's Avatar
Gandalf Gandalf is offline Offline
Newbie Poster

Re: Adsense ads in showthread

  #9  
Jan 25th, 2005
great hack, i love vBulletin more and more
Reply With Quote  
Join Date: Feb 2005
Posts: 8
Reputation: 007 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
007 007 is offline Offline
Newbie Poster

Re: Adsense ads in showthread

  #10  
Feb 5th, 2005
Originally Posted by cscgal

<if condition="$post[postcount]==1 || $post[postcount]==11 || $post[postcount]==21">

This code as is will work for upto page 2? Or for upto any page number?

Instead of using adsense, how do you code it for banners?

thanks,
007

p.s. which link in this vbulletin control panel allows me add my signature?
i tried all of them but can't find it.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb DaniWeb Community Feedback Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the DaniWeb Community Feedback Forum

All times are GMT -4. The time now is 9:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC