![]() |
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? |
This example uses PHPAds.....
In showthread look for: Code:
eval("\$postbits .= \"".gettemplate("postbit")."\";"); Code:
if ($counter==1) { Code:
|
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.
|
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() |
All times are GMT. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|