So am trying to replace the Google banner that I have right after the first post in any thread by a banner.
I want this in only one specific forum
So I tried this code
Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<if condition="$forumid == 29">
Banner Code Here
<else />
Google Code Here
</if>
</if>
But it's not working, any other ideas!
--------------- Added [DATE]1308492613[/DATE] at [TIME]1308492613[/TIME] ---------------
OK I found the solution in this thread
https://www.vbulletin.com/forum/show...t-In-A-Thread?
The code that worked for me is this
Code:
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(29))">
Banner Code here
</if>
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(1,2,3,4,..etc))">
Google Code here
</if>