Macindy
07-04-2010, 07:06 AM
Hi forum!
After updating to 4.0.4 the following plugin doesn't work anymore.
It seems to be the is_member_of clause - but I can't see why.
global $template_hook;
$template_hook['memberaction_dropdown_items'] = "";
$show['test'] = false;
if (is_member_of($vbulletin->userinfo, 5,6))
{
$show['test'] = true;
$templater = vB_Template::create('xxx');
$templater->register('userinfo', $userinfo);
$template_hook['memberaction_dropdown_items'] .= $templater->render();
}
--------------- Added 1278231072 at 1278231072 ---------------
ok nice - this works:
global $template_hook;
$template_hook['memberaction_dropdown_items'] = "";
$show['xxx'] = false;
if (is_member_of(vB::$vbulletin->userinfo, 5,6) AND $post[usergroupid]==1)
{
$show['xxx'] = true;
$templater = vB_Template::create('xxx');
$templater->register('post', $post);
$template_hook['memberaction_dropdown_items'] .= $templater->render();
}
Any optimizing advices?
After updating to 4.0.4 the following plugin doesn't work anymore.
It seems to be the is_member_of clause - but I can't see why.
global $template_hook;
$template_hook['memberaction_dropdown_items'] = "";
$show['test'] = false;
if (is_member_of($vbulletin->userinfo, 5,6))
{
$show['test'] = true;
$templater = vB_Template::create('xxx');
$templater->register('userinfo', $userinfo);
$template_hook['memberaction_dropdown_items'] .= $templater->render();
}
--------------- Added 1278231072 at 1278231072 ---------------
ok nice - this works:
global $template_hook;
$template_hook['memberaction_dropdown_items'] = "";
$show['xxx'] = false;
if (is_member_of(vB::$vbulletin->userinfo, 5,6) AND $post[usergroupid]==1)
{
$show['xxx'] = true;
$templater = vB_Template::create('xxx');
$templater->register('post', $post);
$template_hook['memberaction_dropdown_items'] .= $templater->render();
}
Any optimizing advices?