Quote:
Originally Posted by MicroHellas
That reply was for the bug of html emails. As for the double menu, could you please post me the code that vmood is using in the plugin?
Maria
|
lol ok sorry about that
the plugin code for vmoods is the one called Plugin vb4 - show the mood menu in all pages ?
is so this is it
Code:
if ($vbulletin->options['vmoods_active']){
if ($vbulletin->userinfo['userid'] > 0 && in_array($vbulletin->userinfo['usergroupid'], explode(",", $vbulletin->options['vmoods_usergroups'])) == false){
if (empty($vbulletin->userinfo['vmood']) == true){
$vbulletin->userinfo['vmood'] = 'none';
}
$vmoods_list = explode("\n", $vbulletin->options['vmoods_list']);
$vmoods_list = array_map('trim', $vmoods_list);
$vmoods_list = array_merge(array('none'), $vmoods_list);
$vmoods_templater = vB_Template::create('vmoods');
$vmoods_templater->register('vmoods_list', $vmoods_list);
$vmoods_templater_render = $vmoods_templater->render();
if ($vbulletin->options['vmoods_auto_navbar']){
if (defined('VB_PRODUCT')){
switch((string) VB_PRODUCT){
case 'vbcms':
$template_hook['vbcms_navbar_end'] .= $vmoods_templater_render;
break;
case 'vbblog':
$template_hook['blog_navbar_end'] .= $vmoods_templater_render;
break;
}
} else {
$template_hook['navbar_end'] .= $vmoods_templater_render;
}
} else {
$vmoods_variables = array('vmoods_list' => $vmoods_templater_render);
vB_Template::preRegister('navbar', $vmoods_variables);
vB_Template::preRegister('header', $vmoods_variables);
}
}
}