•
•
•
•
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
![]() |
•
•
Join Date: Nov 2003
Location: Toronto, Canada
Posts: 354
Reputation:
Rep Power: 6
Solved Threads: 5
The founder of this site made it herself; you should just go to www.vbulletin.org and request for it there.
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation:
Rep Power: 33
Solved Threads: 116
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.
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
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Jan 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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">
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation:
Rep Power: 33
Solved Threads: 116
No. It would be
<if condition="$post[postcount]==1 || $post[postcount]==11 || $post[postcount]==21">
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Jun 2004
Location: Secret Underground Layer In Kreplakistan
Posts: 49
Reputation:
Rep Power: 5
Solved Threads: 0
This is a nice hack.
YourWirelesssHQ - Free Cell Phones+Free Shipping.
TV+Movie+Sports Bloggers Wanted - Email For More Info.
TV+Movie+Sports Bloggers Wanted - Email For More Info.
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation:
Rep Power: 33
Solved Threads: 116
Thank you.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Feb 2005
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 1
•
•
•
•
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb DaniWeb Community Feedback Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ads adsense advertising afghanistan backup badge biometrics blog blogger blogging blogs building business code community competition dani daniweb database development events google hate iraq itv jbennet link mail marketing member networks news photo php qmail revenue search serunson server smtp social survey tags terrorist text unit virtual web week
- What are the factors that influence adsense ads? (Pay-Per-Click Advertising)
- Change AdSense ads (Advertising Sales Strategies)
Other Threads in the DaniWeb Community Feedback Forum
- Previous Thread: DaniWeb Poll: Should member locations be displayed in the threads?
- Next Thread: good



Linear Mode