Quote:
Originally Posted by Jason92s
I created a PHP file with nothing in it but the following:
PHP Code:
<?php define('THIS_SCRIPT', 'locallinks'); ?>
|
According to your code, your page is located at
http://yoursite.com/index.php?pageid=locallinks Yet, I'm guessing that is not the link to your actual php page you created above? You you get sent to index.php which is probably forwarded to your forum.php page (check the script) and thus the Forum tab gets highlighted.
Quote:
Originally Posted by vglobal
Thanks, but that is cover for usergroup.
I create new NavTab as follow, and I want only me to see the Chat Admin. Please help.
Code:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'chat')
{
$vbulletin->options['selectednavtab']='chat';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="chat/admin.php" target="_blank">Chat Admin</a></li></ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="chat.php">Chat</a>'.$tablinks.'</li>' ;
|
Instead of this sort of condition:
PHP Code:
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
You would use this sort of condition:
PHP Code:
if ($vbulletin->userinfo['userid'] == 1)
You probably want to wrap that condition around the full contents of the plugin if it is only to show for that userid.