2012-10-08, 03:43 PM
Well I want to show more than one MP warning that just below the header .. As I leave this guide.
But it appears more of a bar if more MP.
I leave also modify the code in the file global.php still not working.
What can I do?
But it appears more of a bar if more MP.
I leave also modify the code in the file global.php still not working.
$query = $db->query("
SELECT pm.subject, pm.pmid, fu.username AS fromusername, fu.uid AS fromuid
FROM ".TABLE_PREFIX."privatemessages pm
LEFT JOIN ".TABLE_PREFIX."users fu ON (fu.uid=pm.fromid)
WHERE pm.folder='1' AND pm.uid='{$mybb->user['uid']}' AND pm.status='0'
ORDER BY pm.dateline DESC
LIMIT 0,5
");
while($pm = $db->fetch_array($query))
{
$pm['subject'] = $parser->parse_badwords($pm['subject']);
if($pm['fromuid'] == 0)
{
$pm['fromusername'] = $lang->mybb_engine;
$user_text = $pm['fromusername'];
}
else
{
$user_text = build_profile_link($pm['fromusername'], $pm['fromuid']);
}
if($mybb->user['pms_unread'] == 1)
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
else
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
eval("\$pm_notice = \"".$templates->get("global_pm_alert")."\";");
}
What can I do?