Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Distinguish Moderator/Administrator Notes in a thread Details »»
Distinguish Moderator/Administrator Notes in a thread
Version: 1.00, by EagleNick EagleNick is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.2 Rating:
Released: 07-21-2008 Last Update: Never Installs: 23
Re-useable Code  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-22-2008, 05:46 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-22-2008, 05:54 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
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>
Reply With Quote
  #4  
Old 07-22-2008, 06:16 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I was just referring to the green border not the line border inside the green border.
Reply With Quote
  #5  
Old 07-22-2008, 06:26 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 07-22-2008, 10:22 PM
rigodiaz rigodiaz is offline
 
Join Date: Jul 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #7  
Old 07-23-2008, 10:35 AM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, How to bring the total thing in the middle?
Reply With Quote
  #8  
Old 07-23-2008, 03:56 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Forum Lover View Post
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.
Reply With Quote
  #9  
Old 07-23-2008, 05:55 PM
rigodiaz rigodiaz is offline
 
Join Date: Jul 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can i alow only one usergroup to use this. The Advanced BBCode Permissions dont work with my chatbox.
Reply With Quote
  #10  
Old 07-23-2008, 06:13 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rigodiaz View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04705 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete