• Welcome to Simple Machines Community Forum. Please login or sign up.
October 22, 2021, 10:59:28 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Modbreak tag

Started by Aaron, January 10, 2007, 12:43:06 PM

Previous topic - Next topic

Aaron

Link to Mod

This mod adds a modbreak-tag to your forum. A modbreak is basically a tool for your moderators to make a clear statement in a topic, using a fieldset with a legend.

Possible usage:
[modbreak]
You aren't allowed to swear on this forum!
[/modbreak]

Will return (HTML):
<fieldset class="modbreak">
<legend>Modbreak</legend>
You aren't allowed to swear on this forum!
</fieldset>

Another possible use is:
[modbreak=Edit by Aaron]
I removed the link to a warez site!
[/modbreak]

Will return (HTML):
<fieldset class="modbreak">
<legend>Edit by Aaron</legend>
I removed the link to a warez site!
</fieldset>

Should you wish to style the modbreak (which isn't done by default), you can add the following lines to your theme's style.css:


.modbreak
{
border: 1px solid #000000;
}

.modbreak legend
{
color: #DD0000;
font-weight: bold;
}


I hope you find this mod useful. ;)

apollonios

Very nice and usefull mod!
I like it!  :) :) :)

Demeandor

Simple and efficient. I like it as welll :)
Elizabeth Swann: Ahoy mateys!
Capt. Jack Sparrow: Ridiculous imitation, but... I'm flattered.

Skipdawg

This looks like it could be very useful thanks.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

Skipdawg

OK were do you activate this? Installed fine but see no place to make use of it anywhere!  :o :( ::) ???
Skipdawg's Community

Powered by SMF 1.1.3

jasuk70

Found it useful. Makes it much easier to see that a mod had changed something. Cheers.

Greek

Thanks!

What about if there is a modbreak button, visible only to admin?  ;)

Aaron

Quote from: Skipdawg on January 10, 2007, 10:15:54 PM
OK were do you activate this? Installed fine but see no place to make use of it anywhere!  :o :( ::) ???

You don't have to configure or activate it anywhere - you can just use the BBC-code in the post screen. :)

Quote from: Greek on January 11, 2007, 06:39:59 AM
What about if there is a modbreak button, visible only to admin?  ;)

I might add that in a newer version.

Skipdawg

Well I am not seeing anything from this Mod. Must be conflicting with something else. If you update it for the next version I may take a look at it then. Just don't have the spare time to trouble shoot and figure out what is going on with it. Sounds good though.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

Aaron

Could you try installing it, and then post a message (or preview one) in a random topic, containing:


[modbreak]
You aren't allowed to swear on this forum!
[/modbreak]


Then you *should* see it parsed as a fieldset. :)

cave

Quote from: Aäron on January 11, 2007, 09:05:34 AM
Quote from: Greek on January 11, 2007, 06:39:59 AM
What about if there is a modbreak button, visible only to admin?  ;)

I might add that in a newer version.

I think it would be better if we could set the permissons for this bbc-code :)

aperseghin

Can i change the word "ModBreak" anywhere??

bigmohi

very nice mod, thank you
if you can update it with permission and button, would be a perfect one!!

Aaron

Quote from: cave on January 11, 2007, 02:03:34 PM
I think it would be better if we could set the permissons for this bbc-code :)

I thought about that, but then a user wouldn't be able to quote a modbreak properly, if you get what I mean. :-\

Quote from: aperseghin on January 11, 2007, 02:28:00 PM
Can i change the word "ModBreak" anywhere??

You'd have to manually edit it in Subs.php.

Kris

but it means any user can use this tag?
or only moderators?

Aaron

Quote from: Kris on January 12, 2007, 05:16:12 PM
but it means any user can use this tag?
or only moderators?

Any user. :)

Tanks

Just only tell your moderators about the mod. Any user dont have to know  :D

Thanks for this - i am using it and its really good.

Here is the CSS i use for this mod

.modbreak
{
   border: 1px solid #000000;
background-color: #FFFBEF;
   border-top: 1px solid #333;
   border-left: 1px solid #333;
   border-right: 1px solid #ccc;
   border-bottom: 1px solid #ccc;
   margin: 1px 11px 11px 11px;
   padding: 8px;
   font-weight: bold;
}

.modbreak legend
{
   color: #DD0000;
   font-weight: bold;
}

Mr. Jinx

Quote from: Knat on January 13, 2007, 05:38:16 AM
Just only tell your moderators about the mod. Any user dont have to know  :D

Very usefull mod, however my users will find out about this tag anyway.
If they just quote a topic, they will see the tags and abuse them.

Tanks

So make it in your rules that this tag is only to be used by mods and that mods will take actions against any abuse.  ;)

Or just dont use it  :D

THE BRA1N

Very nice. Would be great if the use of it could be restricted in the future though.

Advertisement: