PDA

View Full Version : vbulletin option in a condition


Scanu
09-08-2011, 10:15 PM
Hi ebery one i have some problem with a code

if ($show['OPTION'])

OPTION is the option that the user select by the admincp..
now i have create the option and here we have

. $vbulletin->options['var_field'] .

Now I put into the code and will be this

if ($show['' . $vbulletin->options['var_field']. ''])

The problem: doesn't work D:
Where i'm wrong?

kh99
09-09-2011, 01:49 PM
Sorry, I don't understand exactly what you're trying to do. The $show[] array is used to set "flags" to be checked in template conditionals, but there isn't necessarily one for each vbulletin option.

Scanu
09-09-2011, 03:13 PM
sorry the $show was an example i mean $bbuserinfo['field5'] but it wasn't the problem the problem is in the condition look here (https://vborg.vbsupport.ru/showthread.php?p=2243954#post2243954) please

Zachery
09-09-2011, 04:46 PM
What are you trying to check?