The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Combine UserCP and AdminCP vBulletin options?
Ok, after I started doing this...I wasn't sure if I could do this. haha. So, does anybody know how I can combine
HTML Code:
<if condition="$bbuserinfo['fieldx'] != 'Yes'"><td width="20%" align="center">$vbphrase[phrase]</td></if> HTML Code:
$vboptions['usml_profilefields1'] Anyway, basically I have it set as such: 1.) UserCP has an on/off option for fieldx 2.) I made settings in the AdminCP so users can enter the profile field number in the setting "usml_profilefields1" via the admincp instead of going to the template and changing every occurence of "fieldx" Any ideas? Haha. I think its because I'm tired again |
#2
|
|||
|
|||
You can try:
<if condition="$bbuserinfo['field$vboptions['usml_profilefields1']'] != 'Yes'"> |
#3
|
||||
|
||||
Didn't work
|
#4
|
||||
|
||||
Anybody know how to accomplish this?
|
#5
|
|||
|
|||
What about putting them as an AND. This may not work since I am using the Java format but you get my idea.
PHP Code:
Again I don't think it will work but it may ispire you lmao. |
#6
|
||||
|
||||
Thanks, but I can tell that won't work how I need it to. Thanks again
|
#7
|
|||
|
|||
Did you ever get this working?
I wonder if this would work: <if condition="$some_field = 'field' + $vboptions[usm1_profilefields1]"></if> <if condition="$bbuserinfo[$some_field] == "yes"> ...</if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|