Advertisement:

Author Topic: Modbreak tag  (Read 49110 times)

Offline Aaron

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,711
  • Gender: Male
    • Aaronweb.net
Modbreak tag
« on: January 10, 2007, 12:43:06 PM »
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:

Code: [Select]
.modbreak
{
border: 1px solid #000000;
}

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

I hope you find this mod useful. ;)

Offline apollonios

  • Semi-Newbie
  • *
  • Posts: 40
  • Gender: Male
    • Aparadektoi
Re: Modbreak tag
« Reply #1 on: January 10, 2007, 03:55:02 PM »
Very nice and usefull mod!
I like it!  :) :) :)

Offline Demeandor

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
    • Tijdverdrijver
Re: Modbreak tag
« Reply #2 on: January 10, 2007, 04:33:28 PM »
Simple and efficient. I like it as welll :)
Elizabeth Swann: Ahoy mateys!
Capt. Jack Sparrow: Ridiculous imitation, but... I'm flattered.

Offline Skipdawg

  • Sr. Member
  • ****
  • Posts: 895
  • Gender: Male
  • SMF Über Fan!
    • Skipdawg Central
Re: Modbreak tag
« Reply #3 on: January 10, 2007, 09:46:01 PM »
This looks like it could be very useful thanks.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

Offline Skipdawg

  • Sr. Member
  • ****
  • Posts: 895
  • Gender: Male
  • SMF Über Fan!
    • Skipdawg Central
Re: Modbreak tag
« Reply #4 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 :( ::) ???
Skipdawg's Community

Powered by SMF 1.1.3

Offline jasuk70

  • Semi-Newbie
  • *
  • Posts: 50
Re: Modbreak tag
« Reply #5 on: January 11, 2007, 05:36:10 AM »
Found it useful. Makes it much easier to see that a mod had changed something. Cheers.

Offline Greek

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
    • Πάρε-Δώσε - Αντικαρκινικό Forum
Re: Modbreak tag
« Reply #6 on: January 11, 2007, 06:39:59 AM »
Thanks!

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

Offline Aaron

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,711
  • Gender: Male
    • Aaronweb.net
Re: Modbreak tag
« Reply #7 on: January 11, 2007, 09:05:34 AM »
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. :)

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

I might add that in a newer version.

Offline Skipdawg

  • Sr. Member
  • ****
  • Posts: 895
  • Gender: Male
  • SMF Über Fan!
    • Skipdawg Central
Re: Modbreak tag
« Reply #8 on: January 11, 2007, 01:00:19 PM »
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

Offline Aaron

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,711
  • Gender: Male
    • Aaronweb.net
Re: Modbreak tag
« Reply #9 on: January 11, 2007, 01:27:20 PM »
Could you try installing it, and then post a message (or preview one) in a random topic, containing:

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

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

cave

  • Guest
Re: Modbreak tag
« Reply #10 on: January 11, 2007, 02:03:34 PM »
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 :)

Offline aperseghin

  • Semi-Newbie
  • *
  • Posts: 65
Re: Modbreak tag
« Reply #11 on: January 11, 2007, 02:28:00 PM »
Can i change the word "ModBreak" anywhere??

Offline bigmohi

  • Semi-Newbie
  • *
  • Posts: 35
Re: Modbreak tag
« Reply #12 on: January 11, 2007, 02:41:43 PM »
very nice mod, thank you
if you can update it with permission and button, would be a perfect one!!

Offline Aaron

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,711
  • Gender: Male
    • Aaronweb.net
Re: Modbreak tag
« Reply #13 on: January 11, 2007, 03:22:54 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. :-\

Can i change the word "ModBreak" anywhere??

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

Offline Kris

  • Full Member
  • ***
  • Posts: 685
  • Gender: Male
  • So what?
Re: Modbreak tag
« Reply #14 on: January 12, 2007, 05:16:12 PM »
but it means any user can use this tag?
or only moderators?

Offline Aaron

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,711
  • Gender: Male
    • Aaronweb.net
Re: Modbreak tag
« Reply #15 on: January 12, 2007, 05:30:18 PM »
but it means any user can use this tag?
or only moderators?

Any user. :)

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: Modbreak tag
« Reply #16 on: January 13, 2007, 05:38:16 AM »
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;
}

Offline Mr. Jinx

  • Full Member
  • ***
  • Posts: 475
  • Gender: Male
    • Ziggo Forum Chelloo
Re: Modbreak tag
« Reply #17 on: January 13, 2007, 06:10:43 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.

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: Modbreak tag
« Reply #18 on: January 13, 2007, 06:54:38 AM »
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

Offline THE BRA1N

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Male
    • The Third Rail Forum
Re: Modbreak tag
« Reply #19 on: January 13, 2007, 09:08:14 PM »
Very nice. Would be great if the use of it could be restricted in the future though.