Re: [Westin] Is there away to turn OFF the basic editor from all users except for administrators and moderators?
The easiest way, would be to make it so "moderators" can only access both forms. In post_write.html, find:
<%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:
<%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!
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%>
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!