Quote:
With this new version I can add different ads, ?how?
Example, In my forum I have a xxx zone. I want xxx advertisement on xxx forums, and normal advertisement on the other forums.
Quote:
Originally Posted by RedTyger
1) You can use template conditionals, there's a bit about what they are and how they work here. In your case, your adcode would look like this:
Code:
<if condition="in_array($forum, array(1,2,3)">
xxx adverts go here
<else />
all other ads go here
</if>
Just change 1,2,3 to the forum IDs of your xxx forums. You can add or take away as many as you like.
|
|
Hi,
I try this code today and dont work.
I use this in the Postbit adcode:
Code:
<if condition="in_array($forum, array(3,37,22,23,24,25,38,26,43,44,45,46))">
xxx add 1|
xxx add 2|
xxx add 3|
xxx add 4
<else />
normal add 1|
normal add 2|
normal add 3
</if>
And this in the Header adcode:
Code:
<if condition="in_array($forum, array(3,37,22,23,24,25,38,26,43,44,45,46))">
xxx add 1|
xxx add 2|
xxx add 3|
xxx add 4
</if>
With this 2 codes, I dont get any header add on my forum, and with the postbit only shows the normal adds (also in the xxx forums only show normal adds).
I try to change the code "$forum" to "$forumid", but still the same.
"3,37,22,23,24,25,38,26,43,44,45,46" this are the ids of my xxx forums, I want xxx adds on that forums, and in the rest normal adds...
I have 4.02 version working on 3.6.8 Level 2.