diff --git a/e107_admin/wmessage.php b/e107_admin/wmessage.php index d775eb4b9..0fd7312f2 100644 --- a/e107_admin/wmessage.php +++ b/e107_admin/wmessage.php @@ -236,15 +236,21 @@ if ($action == "opt") { ".WMLAN_05." ".$frm->checkbox('wm_enclose', 1, varset($pref['wm_enclose'],0))."".WMLAN_06." - + "; + + /* DEPRECATED - see header_default.php {WMESSAGE} + $text .= " ".WMLAN_07." ".$frm->checkbox('wmessage_sc', 1, varset($pref['wmessage_sc'],0))." - + "; + */ + + $text .= "
- ".$text .= $frm->admin_button('updateoptions', LAN_SAVE)." + ". $frm->admin_button('updateoptions', LAN_SAVE)."
diff --git a/e107_core/shortcodes/single/wmessage.php b/e107_core/shortcodes/single/wmessage.php index 77a196693..19c6fba3e 100644 --- a/e107_core/shortcodes/single/wmessage.php +++ b/e107_core/shortcodes/single/wmessage.php @@ -8,12 +8,13 @@ function wmessage_shortcode($parm) $e107cache = e107::getCache(); $pref = e107::getPref(); + /* DEPRECATED - see auto-detect in header_default.php $prefwmsc = varset($pref['wmessage_sc'], FALSE); if (($prefwmsc && $parm == 'header') || (!$prefwmsc && ($parm !='header')) ) { // Two places it might be invoked - allow one or the other - return; + // return; } - + */ if ($parm != 'force') { diff --git a/e107_core/templates/footer_default.php b/e107_core/templates/footer_default.php index 403c0e3c0..b055f4093 100644 --- a/e107_core/templates/footer_default.php +++ b/e107_core/templates/footer_default.php @@ -318,11 +318,10 @@ echo "\n\n"; unset($uclist, $bcache); -if(!deftrue('e_POWEREDBY_DISABLE')) -{ - // No IDs or Classes - hinder js disable. - echo "
Proudly powered by e107
"; -} +$show = deftrue('e_POWEREDBY_DISABLE') ? "none" : "block"; // Let search engines find us to increase e107.org ranking - even if hidden. +//XXX Must not contain IDs or Classes +echo "
Proudly powered by e107
"; +unset($show); echo "\n\n"; // diff --git a/e107_core/templates/header_default.php b/e107_core/templates/header_default.php index 4f8db5004..56efe5a08 100644 --- a/e107_core/templates/header_default.php +++ b/e107_core/templates/header_default.php @@ -622,10 +622,11 @@ if ($e107_popup != 1) { if(file_exists(e_BASE.'install.php')){ echo "

*** ".CORE_LAN4." ***
".CORE_LAN5."


"; } } -// Display Welcome Message when old method activated. - - echo $e107->tp->parseTemplate("{WMESSAGE=header}"); - + // Display Welcome Message when old method activated. + if(!strstr($HEADER,"{WMESSAGE")===false && !strstr($FOOTER,"{WMESSAGE")===false) // Auto-detection to override old pref. + { + echo e107::getParser()->parseTemplate("{WMESSAGE}"); + } if(defined("PREVIEWTHEME"))