From ee3735bfaad2b30dd50c16f2b74a731087bc080b Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 10 Nov 2016 20:51:24 +0000 Subject: [PATCH 1/2] Viewable_by shortcode wrapper enabled Viewable_by shortcode wrapper enabled --- .../forum/shortcodes/batch/viewforum_shortcodes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 1aae23cef..74b60dd9f 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -225,7 +225,11 @@ if(!empty($viewable)) //else //{ //-- Possible candidate for wrapper???? - return empty($viewable)?'':"
".LAN_FORUM_8012."
".$viewable."
"; +/* WORKING WRAPPER + $SC_WRAPPER['VIEWABLE_BY'] = "
".LAN_FORUM_8012."
{---}
"; + +*/ + return empty($viewable)?'':$viewable; } function sc_search() From 739b84d6c26df6d5316c9ceeca3eb228086923ed Mon Sep 17 00:00:00 2001 From: rica-carv Date: Thu, 10 Nov 2016 20:56:06 +0000 Subject: [PATCH 2/2] Update forum_viewforum_template.php --- e107_plugins/forum/templates/forum_viewforum_template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e107_plugins/forum/templates/forum_viewforum_template.php b/e107_plugins/forum/templates/forum_viewforum_template.php index ea7f1c5a9..42ba5ced9 100644 --- a/e107_plugins/forum/templates/forum_viewforum_template.php +++ b/e107_plugins/forum/templates/forum_viewforum_template.php @@ -343,6 +343,8 @@ $FORUM_VIEWFORUM_TEMPLATE['sub-footer'] = ""; $FORUM_VIEWFORUM_TEMPLATE['divider-important'] = "".LAN_FORUM_1006."".LAN_FORUM_0003."".LAN_FORUM_1005."".LAN_FORUM_0004.""; $FORUM_VIEWFORUM_TEMPLATE['divider-normal'] = "".LAN_FORUM_1007."".LAN_FORUM_0003."".LAN_FORUM_1005."".LAN_FORUM_0004.""; +$SC_WRAPPER['VIEWABLE_BY'] = "
".LAN_FORUM_8012."
{---}
"; + $FORUM_VIEWFORUM_TEMPLATE['footer'] = "