View Full Version : How to: Add a advertisement after first post?
ryancooper
05-16-2004, 07:11 PM
How can I do this:
http://www.techimo.com/forum/t108340.html
See the google ad after the first post?
Thanks! :rolleyes:
WebTechTalk
05-16-2004, 11:41 PM
Not sure how, but may requiring hacking and I know will require editing of the PostBit template.
Zachery
05-17-2004, 01:48 AM
No hacking what so ever just a simple template mod ;)
specificly in the postbit template
add this after $spacer_close
<if condition="$post[postcount] == 1">$spacer_open add code here
$spacer_close </if>
Now, this will only work on the first page, im working out how to fix it with a small bit of math in the phpinclude tempaltes ;)
ImportPassion
09-16-2004, 11:27 PM
did this get anywhere?
Natch
09-17-2004, 06:20 AM
Well - it works on the first post in a thread if you use the conditional Zachery posted, but if you want it on the first post in each page each thread, then it's gonna take a little longer ;)
I use the conditional Zachery posted to have a different postbit altogether for the opening post in a thread - I just added my Google AdSense script to the bottom of that postbit...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.