MyBB Community Forums

Full Version: Tinymce For Admin only help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
any php coder can help me on this
i just got an idea for doing this and i think this would work if i put correct code
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">

if ($usergroups == 4) ie Administrators then Tiny Mce editor script
}
tinyMCE.init({
// General options
{
Else
{$mycode} mybb orignal Editor

its too much plz help me if any one can
What page are you trying to do this on? The viewing of a thread, quick reply, etc.??

Also, you're trying to do this:
  • If the user is an administrator - show Tinymce editor
  • If the user isn't an administrator - show the normal editor
correct?
(2009-04-15, 06:53 AM)Tom Loveric Wrote: [ -> ]What page are you trying to do this on? The viewing of a thread, quick reply, etc.??

Also, you're trying to do this:
  • If the user is an administrator - show Tinymce editor
  • If the user isn't an administrator - show the normal editor
correct?

yes i m using plugin that will allow html to Admin only
so in Edit post or New thread i want to show TinyMCE editor
can u help me out ?

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="jscripts/post.js?ver=1212"></script>

i will use both Java scripts but in textarea there will be if condition

if ($post['usergroup'] != '4') then show Tinymice
else
{$codebuttons}

Just i cant not get the exact code i will be thankfull i u can make it
yes that's exactly what i want
Tom Loveric
Please help me if u can or delete this topic please
Please do not report threads to get an answer. That is not what the report feature is for.