PDA

View Full Version : BB Code Enhancements - Distinguish Moderator/Administrator Notes in a thread


EagleNick
07-21-2008, 10:00 PM
On my forum, it is my belief that users need to be notified when moderator actions have been applied in a thread.
I.e. certain posts were edited, deleted, moved, or if the thread was moved, etc.

Usually I just type in blue font to distinguish such notes. However, anybody can use blue text so it was nothing special.

Well I created a fairly simple BB Code with CSS Table formatting.

It allows you to use a BB Code tag to distinguish the notes. For example, I could enter "This thread has been moved to the Chit-Chat section" and the outcome is displayed at the bottom of this post (Attechment: Screen1.jpg)

The horizontal rule ( <hr> ) is included.

You can customize the CSS to have the dashed border display in a different color, as well as change text size, font, color, etc.

To create this BB Code:

AdminCP -> BB Code Manager -> Add New BB Code

Title: Moderator NotesBB Code Tag Name: moderationReplacement: <hr><br>
<style type="text/css">
table.sample {
border-width: 3px 3px 3px 3px;
border-spacing: 2px;
border-style: dashed dashed dashed dashed;
border-color: green green green green;
border-collapse: separate;
background-color: white;
}
table.sample th {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: inset inset inset inset;
border-color: gray gray gray gray;
background-color: white;
-moz-border-radius: 0px 0px 0px 0px;
}
table.sample td {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: inset inset inset inset;
border-color: gray gray gray gray;
background-color: white;
-moz-border-radius: 0px 0px 0px 0px;
}
</style>

<table class="sample">
<tr>
<td><fieldset><legend>Important Moderator or Administrator Note</legend><font size=3><font color=blue>{param}</font></fieldset></td>
</tr>
</table>Example: important note hereUse Option: NoRemove Tag if Empty: Yes--
All other settings are optional. I have also uploaded an basic letter "M" for "Moderation" to use as a button for this code. It is already resized to 21x20.

--

Finally, to prevent regular users from using this BB Code, install Abe1's Advanced BBCode Permissions Modification (https://vborg.vbsupport.ru/showthread.php?t=122942).

Hopefully I've covered everything ;)

Charlie98902
07-22-2008, 05:46 PM
So just remove this :

table.sample {
border-width: 3px 3px 3px 3px;
border-spacing: 2px;
border-style: dashed dashed dashed dashed;
border-color: green green green green;
border-collapse: separate;
background-color: white;
}

To not have any border there right?

EagleNick
07-22-2008, 05:54 PM
So just remove this :

table.sample {
border-width: 3px 3px 3px 3px;
border-spacing: 2px;
border-style: dashed dashed dashed dashed;
border-color: green green green green;
border-collapse: separate;
background-color: white;
}

To not have any border there right?
No, you have to remove all of this:


<style type="text/css">
table.sample {
border-width: 3px 3px 3px 3px;
border-spacing: 2px;
border-style: dashed dashed dashed dashed;
border-color: green green green green;
border-collapse: separate;
background-color: white;
}
table.sample th {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: inset inset inset inset;
border-color: gray gray gray gray;
background-color: white;
-moz-border-radius: 0px 0px 0px 0px;
}
table.sample td {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: inset inset inset inset;
border-color: gray gray gray gray;
background-color: white;
-moz-border-radius: 0px 0px 0px 0px;
}
</style>

Charlie98902
07-22-2008, 06:16 PM
Sorry I was just referring to the green border not the line border inside the green border.

EagleNick
07-22-2008, 06:26 PM
I have attached a screenshot of the outcome if you remove the code I said to remove.

Also when you remove the code, replace it with this:
<table>

rigodiaz
07-22-2008, 10:22 PM
Thank you!

Forum Lover
07-23-2008, 10:35 AM
Nice idea, How to bring the total thing in the middle?

EagleNick
07-23-2008, 03:56 PM
Nice idea, How to bring the total thing in the middle?
Just add <center> to the very beginning of the code and </center> to the very end. ;)

rigodiaz
07-23-2008, 05:55 PM
How can i alow only one usergroup to use this. The Advanced BBCode Permissions dont work with my chatbox.

EagleNick
07-23-2008, 06:13 PM
How can i alow only one usergroup to use this. The Advanced BBCode Permissions dont work with my chatbox.
Sorry, I can't help you there. You would have to contact the author of that modification (Abe1) and ask why it doesn't work with your Chatbox.

Sorry :(

rigodiaz
07-23-2008, 06:41 PM
Thank you, i will do that :)

Dingo14
07-26-2008, 12:20 AM
thanks nice little mod

sgrisole
01-18-2009, 04:07 PM
I just installed the mod and it works fine, but I was wondering if there's any way to display the name of the moderator that wrote the comment. This would be useful especially when adding notes to posts written by other users.

Nightmare-GameZ
01-27-2009, 04:38 AM
This is great! i customized everything. Made it bold and changed font size to 1 and color to red. Cool!

Installed.

sgrisole
01-28-2009, 02:07 PM
@Nightmare-Gamez: would you mind to share your replacement code? :)

ravenscape
02-03-2009, 02:19 AM
I tweaked it a bit, too, until everyone was happy.

Our staff team loves it. Thanks!

P.Cahill
02-11-2009, 11:13 AM
gonna tag this and come back to it later. looks like a very usefull addon to install, thanks!

EagleNick
02-11-2009, 10:09 PM
I tweaked it a bit, too, until everyone was happy.

Our staff team loves it. Thanks!
I am glad you like it :D Please mark as installed if you are using this.

Best regards,
Nick

Keesa
08-19-2009, 06:59 PM
Um.

Why does "important note" here appear in the moderation message instead of what I type?