MyBB Community Forums

Full Version: jQuery Twice mymood plugin problem please fix for me :D
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
site: http://dev.965mods.co.uk:8080/forum.php
problem basically is the fact that the minimize and maximize buttons dont work on the forum page i dont think this is a theme problem as i have tried other themes including the default 1 and it still does it could you please tell me how to fix this hopefully relatively easy problem also i am stuck with a maximized board stats but my fellow admin is stuck with it minimized at the fairly least how can i make it maximized for all thanks

here is a screenshot from my point of veiw
[Image: Crnyd.png]

here is a screenshot from my friends point of view
[Image: zTxTY.png]
You're loading jQuery twice.
(2011-08-18, 03:31 PM)faviouz Wrote: [ -> ]You're loading jQuery twice.

how can i fix this then?

can you fix it if i give u acp access?
would it be a plugin?
ok fixed it i think i disabled plugins 1 by 1 to find problem and it turns out to be Mymood question is how can i fix it ?
ok tis sumthing to do with this function of code


// Run plugin
function my_mood_run($post)
{
	global $db, $mybb, $usergroup, $groupscache, $templates;
	
    $templates->cache['index'] = str_replace('{$headerinclude}', '{$headerinclude}<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
',$templates->cache['index']);
	
	$enable = $mybb->settings['my_mood_1'];
	$mymusergroup = $mybb->user['usergroup'];
	$xmymusergroup = explode(",",$mybb->settings['my_mood_2']);
	$mymuser = $post['uid'];
	$xmymuser = explode(",",$mybb->settings['my_mood_3']);

	if ($enable != '0')
	{
		if (!in_array($mymusergroup,$xmymusergroup) && (!in_array($mymuser,$xmymuser)))
		{
			$query = $db->query("select * FROM ".TABLE_PREFIX."profilefields WHERE name='My Mood'");
			$get = $db->fetch_array($query);
			$fid = $get['fid'];
			$return = "fid".$fid;
			if ($post[$return] != '') 
			{
				$post['my_mood'] = '<a href="'.$mybb->settings['bburl'].'/usercp.php?action=profile"><img src="'.$mybb->settings['bburl'].'/images/moods/'.$post[$return].'.gif" title="'.$post[$return].'" align="center" style="vertical-align: middle;"></a>';
			}
		}
	}
}
Yeah, remove this line:

$templates->cache['index'] = str_replace('{$headerinclude}', '{$headerinclude}<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
',$templates->cache['index']);
wow faviouz your actually amazing Big Grin it worked