Quote:
Originally Posted by SaN-DeeP
Hello,
I have following adsense codes in all entire forum
AD1
AD2
AD3
I require to display AD4 only in Forum ABC and all threads which are contained in Forum ABC
I dont want AD4 to appear anywhere else except FORUM ABC and threads which are present in FORUM ABC
Similarly,
I require to display AD5 only in Forum XYZ and all threads which are contained in Forum XYZ.
I dont want AD5 to appear anywhere else except FORUM XYZ and threads which are present in FORUM XYZ
Also,
I need to know how to display only AD6 to usergroup number 100 instead of AD2.
I dont want AD2 to appear to Usergroup 100
I want AD6 to appear only to Usergroup 100 and hide to all.
I need to know how to display only AD7 to usergroup number 200 instead of AD2.
I dont want AD2 to appear to Usergroup 200
I want AD7 to appear only to Usergroup 200 and hide to all.
Regards,
|
Hmmm... OK let me see if I follow your logic...
Code:
AD1
<if condition="is_member_of($bbuserinfo, 100)">AD6<else /><if condition="is_member_of($bbuserinfo, 200)">AD7<else />AD2</if></if>
AD3
<if condition="$GLOBALS[forumid] == A">
AD4
</if>
<if condition="$GLOBALS[forumid] == X">
AD5
</if>
Where
A is the forumid of Forum ABC and
X is the forumid of Forum XYZ.