View Full Version : How do I insert an ad after the first post in a thread?
Let's say I want to insert an ad or somesuch in after the first post of every thread. How would you go about doing that?
You would stick it at the bottom of the while loop in showthread that displays the posts.
I've taken a look through the code, and frankly it's beyond me how to do this. I think this is very useful for ad driven sites and was wondering if you could give me more guidance? Or should I ask in hacks?
Wayne Luke
05 Apr 2001, 05:57
This example uses PHPAds.....
In showthread look for:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
If you only want one ad after the first post put:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
If you want more than one ad say one every 5 posts use this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Freddie Bingham
05 Apr 2001, 06:04
change the require to include as require can do funny things like, oh always require the file even if the code block doesn't execute.
kontrabass
07 May 2001, 16:05
Can I expand this question?: Can the same thing be done in the thread list (ie, insert an ad after the 1st thread in a forum)?
Thanks!
does this code still work?
I tried it on RC2 and it didn't:
thats what I get.
Fatal error: Call to undefined function: get_view()
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.