All vBulletin 3 code follows this standard:
ie: Newline before all braces, braces inline with loop initialisation code, with contents indented by a single tab. 'else if' rather than 'elseif'. All operators separated by spaces ($condition == 'baa' / $x = 1; $str = 'baa' . $var . 'moo'; etc.)
PHP Code:
if ($condition == 'moo')
{
// cow
}
else if ($condition == 'baa')
{
// sheep
}
else
{
// alien
}
Comment