The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Please take a second and help me with this if conditional
Why Wont this work?
PHP Code:
How about this ?? PHP Code:
|
#2
|
|||
|
|||
Maybe this?
PHP Code:
No maybe this... PHP Code:
|
#3
|
||||
|
||||
Neither worked
|
#4
|
|||
|
|||
What if you got rid of the THIS_SCRIPT?
PHP Code:
|
#5
|
||||
|
||||
whole thing goes away , and yes i have field15 set to yes on my profile
|
#6
|
||||
|
||||
Check the field15 and see if yes is set as all caps. It needs to be EXACTLY as you entered it in the profile field setup.
|
#7
|
||||
|
||||
I went and toggled profile field 15 to no , then yes and it appears to be working with
<if condition="$bbuserinfo[field15] == 'Yes'"> <if condition="is_member_of($vbulletin->userinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)"> <!-- CometChat Footer Code Start --> <link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" /> <script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script> <!-- CometChat Footer Code End --> </if></if> But why did i have to toggle it? --------------- Added [DATE]1277255751[/DATE] at [TIME]1277255751[/TIME] --------------- even tho its Yes at default you have to go to edit options and hit save for it to show how can i fix that? |
#8
|
|||
|
|||
Did you create the custom field in the acp? If so, you are looking for an integer, not text.
|
#9
|
||||
|
||||
Yes i created the profile field in the admin cp , what do i need to do to get this on track , i got it working but you have to go to edit options and hit save for it to take , and still cant figure out how to keep it off chat.php
|
#10
|
|||
|
|||
Well I had that in my first ones...and he said it didn't work. Maybe if he tries one of the first ones I said and took out THIS_SCRIPT part?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|