[MyCode] Admin / Staff Message
#1
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


Attached Files Image(s)
   
Reply
#2
Cool, code, I will make a code just like this in one minute.
http://community.mybb.com/thread-99571-p...#pid726699
I wanna a response to that thread... any help?
Reply
#3
What stops a normal member using it ? lol
Reply
#4
(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
Reply
#5
This user has been denied support. This user has been denied support.
i installed it but how to use them in forum!! what is the mycode to use them
Reply
#6
(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]
Reply
#7
This user has been denied support. This user has been denied support.
I have tried it not working
Reply
#8
^Then you are doing something wrong about the tutorial.
Reply
#9
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?
.
Reply
#10
(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
Coming soon......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)