From 5690e901db345ff1bcb58dcc5f01cd92697e312e Mon Sep 17 00:00:00 2001 From: rica-carv Date: Fri, 25 Nov 2016 21:42:29 +0000 Subject: [PATCH 1/2] Forum userlist shortcode wrapping Removed hardcoded html and use wrapping instead, for userlist shortcode... --- .../forum/shortcodes/batch/forum_shortcodes.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php index 9c4b560d5c..c94e23b416 100644 --- a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php @@ -138,11 +138,10 @@ function sc_userinfox() function sc_userlist() { - if(!defined('e_TRACKING_DISABLED')) + if(defined('e_TRACKING_DISABLED')) { - // String candidate for USERLIST wrapper - $text = LAN_FORUM_0036.": "; - + return; + } global $listuserson; $c = 0; if(is_array($listuserson)) @@ -157,9 +156,6 @@ function sc_userlist() } } - // String candidate for USERLIST wrapper - $text .= "
".LAN_FORUM_0037." ".LAN_FORUM_0038; - } return $text; } From 86a6496852dbb43fe23b00f6c72c1af5892a30d4 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Fri, 25 Nov 2016 21:45:47 +0000 Subject: [PATCH 2/2] Update forum_template.php --- e107_plugins/forum/templates/forum_template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/e107_plugins/forum/templates/forum_template.php b/e107_plugins/forum/templates/forum_template.php index bd640724a2..cf3125d580 100644 --- a/e107_plugins/forum/templates/forum_template.php +++ b/e107_plugins/forum/templates/forum_template.php @@ -34,6 +34,7 @@ $FORUM_MAIN_END = "\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
".LAN_FORUM_0009."
{LOGO}{USERINFO}
{INFO}
{FORUMINFO}
{USERLIST}
{STATLINK}
\n
\n
\n\n\n\n\n\n\n
{ICONKEY}{SEARCH}{PERMS}\n
\n
\n"; */ // LEGACY definition with LAN Shortcodes ({INFOTITLE})..... +$SC_WRAPPER['USERLIST'] = LAN_FORUM_0036.": {---}
".LAN_FORUM_0037." ".LAN_FORUM_0038; $FORUM_MAIN_END = "\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{INFOTITLE}
{LOGO}{USERINFO}
{INFO}
{FORUMINFO}
{USERLIST}
{STATLINK}
\n
\n
\n\n\n\n\n\n\n
{ICONKEY}{SEARCH}{PERMS}\n
\n
\n"; }