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


All times are GMT. The time now is 05:25 AM.

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.01154 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete