Adsense ads in showthread

Reply

Join Date: Aug 2004
Posts: 7
Reputation: 1EightT is an unknown quantity at this point 
Solved Threads: 0
1EightT 1EightT is offline Offline
Newbie Poster

Adsense ads in showthread

 
0
  #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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 360
Reputation: Gary King will become famous soon enough Gary King will become famous soon enough 
Solved Threads: 5
Team Colleague
Gary King's Avatar
Gary King Gary King is offline Offline
PHP/vBulletin Guru

Re: Adsense ads in showthread

 
1
  #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 Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 130
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

 
0
  #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.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 3
Reputation: dcallan is an unknown quantity at this point 
Solved Threads: 0
dcallan dcallan is offline Offline
Newbie Poster

Re: Adsense ads in showthread

 
0
  #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 Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 130
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

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

<if condition="$post[postcount]==1 || $post[postcount]==11 || $post[postcount]==21">
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 49
Reputation: ArunK is an unknown quantity at this point 
Solved Threads: 0
ArunK's Avatar
ArunK ArunK is offline Offline
Light Poster

Re: Adsense ads in showthread

 
0
  #6
Jan 21st, 2005
This is a nice hack.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,047
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 130
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Adsense ads in showthread

 
0
  #7
Jan 21st, 2005
Thank you.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 3
Reputation: dcallan is an unknown quantity at this point 
Solved Threads: 0
dcallan dcallan is offline Offline
Newbie Poster

Re: Adsense ads in showthread

 
0
  #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 Quick reply to this message  
Join Date: Jan 2005
Posts: 13
Reputation: Gandalf is an unknown quantity at this point 
Solved Threads: 0
Gandalf's Avatar
Gandalf Gandalf is offline Offline
Newbie Poster

Re: Adsense ads in showthread

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

Re: Adsense ads in showthread

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the DaniWeb Community Feedback Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC