943,373 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Aug 24th, 2004
0

Adsense ads in showthread

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
1EightT is offline Offline
7 posts
since Aug 2004
Aug 24th, 2004
1

Re: Adsense ads in showthread

The founder of this site made it herself; you should just go to www.vbulletin.org and request for it there.
Team Colleague
Reputation Points: 53
Solved Threads: 5
PHP/vBulletin Guru
Gary King is offline Offline
360 posts
since Nov 2003
Aug 24th, 2004
0

Re: Adsense ads in showthread

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jan 16th, 2005
0

Re: Adsense ads in showthread

Quote 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">
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dcallan is offline Offline
3 posts
since Jan 2005
Jan 17th, 2005
0

Re: Adsense ads in showthread

No. It would be

<if condition="$post[postcount]==1 || $post[postcount]==11 || $post[postcount]==21">
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jan 21st, 2005
0

Re: Adsense ads in showthread

This is a nice hack.
Reputation Points: 11
Solved Threads: 0
Light Poster
ArunK is offline Offline
49 posts
since Jun 2004
Jan 21st, 2005
0

Re: Adsense ads in showthread

Thank you.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jan 22nd, 2005
0

Re: Adsense ads in showthread

are you getting a respectable ctr from it, keep in mind that specifics are not allowed and I know this.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dcallan is offline Offline
3 posts
since Jan 2005
Jan 25th, 2005
0

Re: Adsense ads in showthread

great hack, i love vBulletin more and more
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Gandalf is offline Offline
13 posts
since Jan 2005
Feb 5th, 2005
0

Re: Adsense ads in showthread

Quote 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.
007
Reputation Points: 10
Solved Threads: 1
Newbie Poster
007 is offline Offline
8 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in DaniWeb Community Feedback Forum Timeline: Highlighting search term puts HTML markup in code snippets
Next Thread in DaniWeb Community Feedback Forum Timeline: Test thread :) Please ignore





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC