Quote:
Originally Posted by BirdOPrey5
That's because you're using template code in a plugin (plugins are php code.)
It would be:
Code:
global $vbulletin;
if (is_member_of($vbulletin->userinfo, array(5,6,7))
{
$is_livetopic = true;
$livetopichook = 'ajax_start';
include 'includes/livetopic_hooks.php';
}
also you need to use $vbulletin->userinfo instead of $bbuserinfo in php/plugins.
|
Live topic stopped working for all users when I used that code.
I also tried using this, which I borrowed from a plugin for hiding links from guests but it didn't work either.
Code:
if ((!$this->registry->userinfo[userid]) OR (is_member_of($this->registry->userinfo, 5, 2, 6, 7)))
{
$is_livetopic = true;
$livetopichook = 'ajax_start';
include 'includes/livetopic_hooks.php';
}