OH! Sorry!
If this code mean
Quote:
condition3 = true
=>
if (condition1 OR condition2)
condition3 = false
=>
if (condition1)
|
Is perfect thanks paul and thanks Mooff i will try it
--------------- Added [DATE]1315829552[/DATE] at [TIME]1315829552[/TIME] ---------------
so this code would be right?
PHP Code:
if ($vbulletin->userinfo['field'.$field1.''] OR ($vbulletin->userinfo['field'.$field2.''] AND $field2) OR ($vbulletin->userinfo['field'.$field3.''] AND $field3) OR ($vbulletin->userinfo['field'.$field4.''] AND $field4))
{
}
$field1 = $vbulletin->options['var_field1'];
$field2 = $vbulletin->options['var_field2'];
$field3 = $vbulletin->options['var_field3'];
$field4 = $vbulletin->options['var_field4'];
Is very hard to understand if you aren't in my mind
--------------- Added [DATE]1315851019[/DATE] at [TIME]1315851019[/TIME] ---------------
I've tried this code
PHP Code:
if ($vbulletin->userinfo['field'.$field1.''] OR ($vbulletin->userinfo['field'.$field2.''] AND $field2) OR ($vbulletin->userinfo['field'.$field3.''] AND $field3) OR ($vbulletin->userinfo['field'.$field4.''] AND $field4))
{}
else{
$template_hook['header_userinfo'] .= 'test';}
$field1 = $vbulletin->options['var_field1'];
$field2 = $vbulletin->options['var_field2'];
$field3 = $vbulletin->options['var_field3'];
$field4 = $vbulletin->options['var_field4'];
but it seems don't work bu the options i have put
1 as var_field1
2 as var_field2
3 as var_field3
4 as var_field4
All fields that i've fill but still seeing "test"