The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to use <if conditions> only in specific forum pages and speicif usergroups.
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, |
#2
|
||||
|
||||
Quote:
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> |
#3
|
||||
|
||||
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, |
#4
|
||||
|
||||
Quote:
Quote:
|
#5
|
||||
|
||||
Quote:
If Forum ABC is one forum then yes, it should work- but try and test it of course. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|