![]() |
Help with hack of a hack
I'm trying to put an adsense ad after post 1 in the thread and after every 9th post afterward, which is working, but I am also trying to use a revenue sharing hack with those ads.
The 1st ad in the thread is working great but when I get to the ad after each 9th post, the $post[ad_client_id] (which is field6 in vb_userfield) ends up being null. I would like the ad to be that of the thread starter (same as ad that is working) . Any suggestions or recommendations would be appreciated. Thanks. Code:
I guess the best question to ask is: How, once the ad is placed well into the thread, can I reference the thread starter to give him/her credit for the ad. I was told this line might do that... Code:
<if condition="$post[userid] == $thread[postuserid]"> |
... OK, since no one apparently knows, let me ask this...
What variable should I be looking at if I am trying to reference the 1st post in a thread, and the author of the 1st post in a thread? Thanks. |
its either $threadinfo or $thread. they would be an array. check the showthread template and showthread.php for reference
|
Thank you! I'll check it out.
|
All times are GMT. The time now is 02:35 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:
|