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()
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'] = "";