Quote:
Originally Posted by Spyike
Can somebody tell me what is wrong with my code? I keep getting a syntax error and cannot seem to see where I made an error..
Code:
if (is_member_of($vbulletin->userinfo, 1))
{
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'spyikereg')
{
$vbulletin->options['selectednavtab']='spyreg';
$tabselected = ' class="selected"';
}
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://spyike.org/register.php">Register</a>'.$tablinks.'</li>' ;
|
You forgot the ending } to your is_member_of condition.