MyBB Community Forums

Full Version: [MyCode] Admin / Staff Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
MyCode Part:

Title:
Staff Message

Short Description:
Staff Message for only the Forum Staff

Regular Expression:
\[mod\](.*?)\[/mod\]

Replacement:
<p class="mod_bb"><img src="images/icons/modicon.png" alt=""/>&nbsp;$1</p>


Next Step:
  • Goto Templates & Styles
  • Edit you're template global.css

Add this at the bottom of it:
/* ADMIN / MOD NOTICE */
.mod_bb
{
        background:#F5C7CD;
        color:#8a1f11;
        padding:.8em;
        margin-bottom:1.6em;
        border:2px solid #DC364E;
}
.mod_bb img
{
        position:relative;
        top:2px;
}

Should look like;
[Image: ibZmis.png]

If you need any help just post down below!

Thanks, Justin aka Insanity
Cool, code, I will make a code just like this in one minute.
What stops a normal member using it ? lol
(2011-02-05, 12:32 AM)Janota Wrote: [ -> ]What stops a normal member using it ? lol

You can use this plugin: http://mods.mybb.com/view/advanced-mycode-permissions
i installed it but how to use them in forum!! what is the mycode to use them
(2011-06-22, 10:03 AM)Azeem Wrote: [ -> ]i installed it but how to use them in forum!! what is the mycode to use them

Quote:\[mod\](.*?)\[/mod\]

=

[mod]message[/mod]
I have tried it not working
^Then you are doing something wrong about the tutorial.
Very nice =) I'm a CSS noob though, say I wanted the image to be automatically put into the mod box. How would I do that so I don't have to use <img> each time?
(2011-06-27, 07:32 PM)Pixovee Wrote: [ -> ]Very nice =) I'm a CSS noob though, say I wanted the image to be automatically put into the mod box. How would I do that so I don't have to use <img> each time?

You should not have to.

Quote:<p class="mod_bb"><img src="images/icons/modicon.png" alt=""/>&nbsp;$1</p>

that is doing it for you so as long as your image location is correct it should display it
Pages: 1 2 3