mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Fixes #1223 - Adds the missing {ALERTS} shortcode to old themes - informing users of incorrect passwords etc. Essential for when the login menu is within the navigation bar.
Fixes #1077 - Online Menu was displaying the user as online when the username was correct, even if the password was not. Corrected styling of the online-menu.
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
|
||||
function alerts_shortcode($parm = '')
|
||||
{
|
||||
return e107::getMessage()->render();
|
||||
return e107::getMessage()->setUnique()->render();
|
||||
}
|
||||
|
@@ -762,6 +762,16 @@ if ($e107_popup != 1) {
|
||||
echo e107::getParser()->parseTemplate("{WMESSAGE}");
|
||||
}
|
||||
|
||||
if(!deftrue('e_IFRAME') && (strstr($HEADER,"{ALERTS}")===false && strstr($FOOTER,"{ALERTS}")===false)) // Old theme, missing {ALERTS}
|
||||
{
|
||||
if(deftrue('e_DEBUG'))
|
||||
{
|
||||
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
|
||||
}
|
||||
|
||||
echo e107::getParser()->parseTemplate("{ALERTS}");
|
||||
}
|
||||
|
||||
|
||||
if(defined("PREVIEWTHEME"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user