![]() |
Conditional Statement Question
if ($vbulletin->options['fireworks_enabled'] && $vbulletin->userinfo['$vbulletin->options[\'fireworks_field\']'])
How can I make that so my if my field = yes it displays the code and if it = no it doesn't. Would this be correct? if ($vbulletin->options['fireworks_enabled'] && $vbulletin->userinfo['$vbulletin->options[\'fireworks_field\']'] = Yes) BTW $vbulletin->options[\'fireworks_field\'] is linked to my vbulletin profile field which is 142. |
PHP Code:
|
Quote:
--------------- Added [DATE]1246769635[/DATE] at [TIME]1246769635[/TIME] --------------- Hey what about this one? It's for a template, but Im having issues: a href="$post[$vboptions[rapidsharethanks_field]]" This will be in the postbit and fireworks field is in my options which I have as field81. I tried it that way but I get: WHITESPACE, expecting T_STRING |
Code:
$post[{$vboptions[rapidsharethanks_field]}] |
Quote:
Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING |
Sorry, put the curly braces in the wrong place. :p (Me being lazy and not really paying attention...)
Code:
{$post[$vboptions[rapidsharethanks_field]]} |
Still errors out
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Code:
"http://www.rapidshare.com/{$post[$vboptions[rapidsharethanks_field]]}" Code:
"'http://www.rapidshare.com/' . {$post[$vboptions[rapidsharethanks_field]]}" |
O it has nothing to do with the link because it will work if I just change it to:
http://www.rapidshare.com/$post[fieldw/e] So how can I get it to work with $vboptions in it? I've tried everything except for the right away apparently. I tried {$post[$vboptions[rapidsharethanks_field]]} like you said, but with no luck. :( |
I still need help with this issue!
|
Someone!
|
All times are GMT. The time now is 11:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|