From 16267c1e8cbc6641ad4ab617fa17ba92b6c0db5f Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sat, 11 Jan 2025 20:51:36 +0000 Subject: [PATCH 1/2] Add files via upload --- .../forum/shortcodes/batch/viewforum_shortcodes.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 7a663efaa4..7db733ae91 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -323,7 +323,7 @@ function sc_search($parm=null) } - function sc_perms() + function sc_perms($parm=null) { global $forum, $forumId; @@ -347,9 +347,14 @@ function sc_perms() $permDisplay['edit'] = LAN_FORUM_0048; } --*/ + if(!empty($parm['type'])) + { + return 'alert alert-'.($forum->checkPerm($forumId, 'post')?'info':'danger'); + } - return implode("", $permDisplay); - + global $FORUM_VIEWFORUM_TEMPLATE; +// return implode("", $permDisplay); + return implode($FORUM_VIEWFORUM_TEMPLATE['perms_separator']?:"", $permDisplay); } function sc_forumjump() From a50469c0e4eefd2a2076fed276f3cd136840cbed Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sat, 11 Jan 2025 20:52:10 +0000 Subject: [PATCH 2/2] Add files via upload --- e107_plugins/forum/templates/forum_viewforum_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/forum/templates/forum_viewforum_template.php b/e107_plugins/forum/templates/forum_viewforum_template.php index 19260917db..28d09e07f2 100644 --- a/e107_plugins/forum/templates/forum_viewforum_template.php +++ b/e107_plugins/forum/templates/forum_viewforum_template.php @@ -390,7 +390,7 @@ // $FORUM_VIEWFORUM_WRAPPER['THREADNAME'] = "{---}"; - +$FORUM_VIEWFORUM_TEMPLATE['perms_separator'] = "";