2011-08-18, 05:55 PM
http://community.mybb.com/post-743063.html
can some 1 tell me what part of this code is preventing me from being able to minimize maximize board stats and forums check the post above for more info
can some 1 tell me what part of this code is preventing me from being able to minimize maximize board stats and forums check the post above for more info
// 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>';
}
}
}
}