View Full Version : How to use <if conditions> only in specific forum pages and speicif usergroups.
SaN-DeeP
10-07-2011, 06:26 AM
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,
BirdOPrey5
10-07-2011, 09:51 AM
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...
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.
SaN-DeeP
10-07-2011, 10:10 AM
Dear Sir,
Thank for your quick reply.
I accidentally deleted a template which had all the settings done by my coder.
I just want to re-confirm again, if your code will work like I request.
Please also give solution to this as well.
How to do only this
************************
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
************************
How to do only this :
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.
************************
If YES,
I appreciate your time and once again thank you very much.
Regards,
Max Taxable
10-07-2011, 10:13 AM
I just want to re-confirm again, if your code will work like I request.
If YES,
I appreciate your time and once again thank you very much.
Regards,If it doesn't, you're not any worse off I would say. You can always remove the code.I accidentally deleted a template which had all the settings done by my coder. You don't have a backup copy of the template?
BirdOPrey5
10-07-2011, 10:39 AM
Dear Sir,
Thank for your quick reply.
I accidentally deleted a template which had all the settings done by my coder.
I just want to re-confirm again, if your code will work like I request.
Please also give solution to this as well.
How to do only this
************************
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
************************
How to do only this :
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.
************************
If YES,
I appreciate your time and once again thank you very much.
Regards,
I assume by Forum ABC you mean 1 single forum called "ABC" and NOT 3 forums called Forum A, Forum B, and Form C.
If Forum ABC is one forum then yes, it should work- but try and test it of course.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.