PDA

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


EagleNick
22 Jul 2008, 18:15
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 (http://www.vbulletin.org/forum/showthread.php?t=122942).

Hopefully I've covered everything ;)

Charlie98902
22 Jul 2008, 18:46
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
22 Jul 2008, 18:54
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
22 Jul 2008, 19:16
Sorry I was just referring to the green border not the line border inside the green border.

EagleNick
22 Jul 2008, 19:26
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
22 Jul 2008, 23:22
Thank you!

Forum Lover
23 Jul 2008, 11:35
Nice idea, How to bring the total thing in the middle?

EagleNick
23 Jul 2008, 16:56
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
23 Jul 2008, 18:55
How can i alow only one usergroup to use this. The Advanced BBCode Permissions dont work with my chatbox.

EagleNick
23 Jul 2008, 19:13
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
23 Jul 2008, 19:41
Thank you, i will do that :)

Dingo14
26 Jul 2008, 01:20
thanks nice little mod

sgrisole
18 Jan 2009, 17:07
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
27 Jan 2009, 05:38
This is great! i customized everything. Made it bold and changed font size to 1 and color to red. Cool!

Installed.

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

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

Our staff team loves it. Thanks!

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

EagleNick
11 Feb 2009, 23:09
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
19 Aug 2009, 19:59
Um.

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