Quote:
Originally Posted by Crrrazzzy
what did you do to fix this as i am having hte same issue
|
fixing this is very simple. Edit the template Create Tabs at forumhome_complete and replace the second line with
$yui = new vB_YUI($vbulletin,
$vbulletin->userinfo, 'tfh');
and in class_yui.php
replace the line below (I don't remember what the original code was)
$tab['limitTo'] = explode(",", $tab['limitTo']);
with:
if (is_member_of($this->usergroup, $tab['limitTo']))
so the block becomes
PHP Code:
if($verify_usergroup)
{
if($tab['limitTo'] == 'all')
{
$this->code .= "YAHOO.plugin.Dispatcher.delegate(new YAHOO.widget.Tab({label: '" . mysql_escape_string($tab['title']) . "', " . $tab['contentT'] . ": '" . $tab['content'] . "', active: " . $tab['active'] .", cacheData: " . $tab['cacheData'] ."}), " . $this->name . ");";
}
else
{
$tab['limitTo'] = explode(",", $tab['limitTo']);
if (is_member_of($this->usergroup, $tab['limitTo']))
{
$this->code .= "YAHOO.plugin.Dispatcher.delegate(new YAHOO.widget.Tab({label: '" . mysql_escape_string($tab['title']) . "', " . $tab['contentT'] . ": '" . $tab['content'] . "', active: " . $tab['active'] .", cacheData: " . $tab['cacheData'] ."}), " . $this->name . ");";
}
}
}