MyBB Community Forums

Full Version: Make editor.js MyCodes parse for certain user groups?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using this mycode:
Regular expression:
\[mod\](.*?)\[/mod\]

Replacement:
<p style="background:#e2001a url('jscripts/editor_themes/default/images/mod_notice.gif') no-repeat; border-top: 2px solid #e2001a; border-radius: 1em; border-bottom: 2px solid #e2001a; padding: 5px 20px 5px 45px;">$1</p>
Looks like this (don't use the url string I put in sandbox, won't work):
[attachment=26336]

I made appended this to editor.js around line 214:
{type: 'button', name: 'mod', insert: 'mod', image: 'mod_notice.gif', title: 'Mod Notice'}

Now my question is, what do I add to the above code (I entered in editor.js) so that only displays for certain user groups? or if only a php change can make that happen what/where do I append those changes to? Thanks in advanced!