Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Westin] Is there away to turn OFF the basic editor from all users except for administrators and moderators?

Quote Reply
Re: [Westin] Is there away to turn OFF the basic editor from all users except for administrators and moderators? In reply to
The easiest way, would be to make it so "moderators" can only access both forms. In post_write.html, find:

Code:
<%if ie_version >= 5.5 or mozilla_version >= 1.4%>
<%if advanced_editor%>
<%include include_post_html_common_write.html%>
<%elsif current_user_advanced_editor and not basic_editor%>
<%include include_post_html_common_write.html%>
<%else%>
<%include include_post_common_write.html%>
<%endif%>
<%else%>
<%include include_post_common_write.html%>
<%endif%>
..and change to:


Code:
<%if current_user_forum_permission == 4%>

<%if ie_version >= 5.5 or mozilla_version >= 1.4%>
<%if advanced_editor%>
<%include include_post_html_common_write.html%>
<%elsif current_user_advanced_editor and not basic_editor%>
<%include include_post_html_common_write.html%>
<%else%>
<%include include_post_common_write.html%>
<%endif%>
<%else%>
<%include include_post_common_write.html%>
<%endif%>

<%else%>
<%include include_post_html_common_write.html%>
<%endif%>

Untested, but should work.

NB: current_user_forum_permission == 4 is the "user group" of your moderator - its "4" by standard, so should work fine for ya.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Is there away to turn OFF the basic editor from all users except for administrators and moderators? Westin 2694 May 19, 2009, 1:07 AM
Post Re: [Westin] Is there away to turn OFF the basic editor from all users except for administrators and moderators?
Andy 2610 May 19, 2009, 2:12 AM
Post Re: [Westin] Is there away to turn OFF the basic editor from all users except for administrators and moderators?
Andy 2596 May 19, 2009, 2:13 AM