Quote:
Originally Posted by Exitilus
Well the problem is when you attempt to change the mood when your on a different directory / address it doesn't work. Just hangs at updating the mood.
On my main page, the Mood just doesn't even display.
|
I think the problem is Plugins > [Mood Manager] - Make Drop Down Menu:
Quote:
if ($vbulletin->options['moodmanageronoff'])
{
$vbulletin->templatecache['header'] .= '<script type=\"text/javascript\">
<!--
function update_mood()
{
fetch_object(\'mood_box\').innerHTML = \'G?ncelleştiriliyor...\';
if (ajax_mood.handler.readyState == 4 && ajax_mood.handler.status == 200 && ajax_mood.handler.responseText)
{
fetch_object(\'mood_box\').innerHTML = ajax_mood.handler.responseText;
}
}
function change_mood(mood)
{
ajax_mood = new vB_AJAX_Handler(true);
ajax_mood.onreadystatechange(update_mood);
ajax_mood.send(\'ajax.php\', \'do=insertmood&mood=\' + PHP.urlencode(mood));
}
//-->
</script>';
$moodslist = explode("\n", $vbulletin->options['moodmanagermoods']);
foreach ($moodslist AS $mood)
{
$mood = trim($mood);
if ($mood == $vbulletin->userinfo['mood']) { $selectedmood = ' Selected'; } else { $selectedmood = ''; }
$vbmoods['mood'] .= '<option value="' .$mood. '"' .$selectedmood. '>' .$mood. '</option>';
$vbmoods['mood'] .= "\r";
}
if ($vbulletin->options['moodmanagerglobal'])
{
$search_text = '$vbphrase[private_messages_nav]';
$vbulletin->templatecache['navbar'] = str_replace($search_text,
$search_text.fetch_template('quick_mood_change_by_ sniper'),$vbulletin->templatecache['navbar']);
}
else
{
eval('$usermoods = "' . fetch_template('quick_mood_change_by_sniper') . '";');
}
}
|
ajax.php is not in the external directory...
Quote:
On my main page, the Mood just doesn't even display.
|
Templates > quick_mood_change_by_sniper:
Quote:
<img src="images/mood/$bbuserinfo[mood].gif" border="0" />
|
replace it with:
This hack won't work (unless updated) if you have some vb integrated pages out of the forum folder...