can some on get me this code plz for vb.org

cowboy36

New Member
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

"[moderation]This thread has been moved to the Chit-Chat section[/moderation]"

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:
Code:
Moderator Notes
BB Code Tag Name:
Code:
moderation
Replacement:
Code:
<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:
Code:
[moderation]important note here[/moderation]
Use Option:
Code:
No
Remove Tag if Empty:
Code:
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.
Look at Next reply
 

cowboy36

New Member
Advanced BBCode Permissions 3.0


Click here to Nominate this Mod for Mod the Month

About this hack:
This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code!

Installation information on hack:

* Files edited: 0
* Templates edited: 0
* Files to upload: 0
* Time to install: 10 seconds max

Updates:

Version 3.0 (08/03/06):

* Initial release of this hack for vb 3.6
* [CHANGED] Re-did the way the permissions are stored to fix a lot of bugs.
 
Top