vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - Distinguish Moderator/Administrator Notes in a thread (https://vborg.vbsupport.ru/showthread.php?t=186045)

EagleNick 07-21-2008 10:00 PM

Distinguish Moderator/Administrator Notes in a thread
 
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
Quote:

"[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.

Hopefully I've covered everything ;)

Charlie98902 07-22-2008 05:46 PM

So just remove this :
Code:

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

Quote:

Originally Posted by Charlie98902 (Post 1581598)
So just remove this :
Code:

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:

Code:

<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:
Code:

<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

Quote:

Originally Posted by Forum Lover (Post 1582174)
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

Quote:

Originally Posted by rigodiaz (Post 1582443)
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

Quote:

Originally Posted by ravenscape (Post 1732606)
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?


All times are GMT. The time now is 07:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03482 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete