Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Ban via Post Details »»
Ban via Post
Version: 1.7, by FullyTested FullyTested is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.8 Rating:
Released: 11-05-2007 Last Update: 03-21-2008 Installs: 63
DB Changes Uses Plugins Template Edits
Re-useable Code Code Changes Additional Files Translations  
No support by the author.

Ban via Post
by FullyTested

This mod allows your moderators to do the following:
  1. Ban a user from the site and/or a thread via the username drop down menu in a post (as well as the admin/mod cp).
    All moderators with banning/unbanning permissions for the forum can use this feature.
    This opens a page which allows you to select a ban period, whether or not to allow the user to view the thread (for thread bans), and provide a text message which the user will see when trying to enter the site or view / reply to the thread.
  2. Once you ban the user you are returned to the same post from which you banned the user.
    You will now notice a small icon besides the ip icon.
    Clicking on that will open a page that will display the current ban information and in the case of a thread ban, also a list of other threads from which this user is banned.
    You will also have the option to edit or lift the ban from here.
    You may now also unban the user from the username drop down menu.
  3. From the admin cp vbulletin settings you can set whether you wish to have a Private Message sent to the user whenever they are banned/unbanned from a thread.
  4. You may also view, edit, or lift bans from the admin/mod control panel. Just click on the ?view banned users? or 'view banned from thread users' link. If you turned on the feature to moderate permanent bans, this is where you will see a list of bans awaiting approval. You may approve, reject (lift), or edit (modify) moderated bans.

Available Options:
  • Limit bans to only Thread, only Site, or both Thread and Site bans via the postbit
    Banning permissions are set on a per moderator basis.
  • Send PM to User:
    You may choose whether you wish to send a private message to the user whenever they are thread banned/unbanned
  • Moderate Permanent Bans:
    Whether to moderate (approve, edit, reject) permanent site and/or thread bans.
    If this feature is turned on, all permanent site and/or thread bans are entered into a moderation queue requiring admin attention within 7 days of ban date. If no action is taken (approve, edit, reject), the ban reverts to a 7 day ban.
    You may also provide an email address to be used for notification that a permanent ban awaits approval.

For those of you who are only interested in Thread Bans, please see this mod:
https://vborg.vbsupport.ru/showthread.php?t=158445

To Intall:
Please see the 'readme' text file for installation instructions.
Installing this mod will take you approximatly 20 minutes, however, I do believe you will find it to be well worth the time and effort.


Revisions:

version 1.7
New 'includes/cron/remove_managed_bans.php'.
All you need to do is FTP this file to your server.
.

Show Your Support

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

Comments
  #12  
Old 11-06-2007, 08:03 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot
Reply With Quote
  #13  
Old 11-07-2007, 06:58 AM
elrafei elrafei is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot
Reply With Quote
  #14  
Old 11-07-2007, 09:42 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is also a mistake in the modcp/banning.php instructions.

you said:
Quote:
4). FIND (~ line 339)

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
));

REPLACE with


// start code 'ban via post'
// added 'threadid' => TYPE_INT,
// end code 'ban via post'

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
));
and it should say:

Quote:
4). FIND (~ line 339)

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
));

REPLACE with

// start code 'ban via post'
// added 'threadid' => TYPE_INT,
$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
));
// end code 'ban via post'
Reply With Quote
  #15  
Old 11-07-2007, 05:48 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yoyoyoyo,

Once again you are correct.
Reply With Quote
  #16  
Old 11-07-2007, 09:21 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are there usergroup permissions? I want admins and supermods to be able to ban from site and thread, but moderators to only be able to ban from thread.

Here is a TMS (template modification system) XML file, for those that have TMS installed.
Reply With Quote
  #17  
Old 11-07-2007, 11:05 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
are there usergroup permissions? I want admins and supermods to be able to ban from site and thread, but moderators to only be able to ban from thread.
I could change it to do that but that would mean re-applying code changes to the PHP files
Reply With Quote
  #18  
Old 11-07-2007, 11:08 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
I could change it to do that but that would mean re-applying code changes to the PHP files
it would be worth it
Reply With Quote
  #19  
Old 11-08-2007, 08:27 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instead of usergroups, I'm thinking it makes more sense to add individual moderator thread banning permission on top of the default (site) banning permission.
Reply With Quote
  #20  
Old 11-08-2007, 09:29 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
Instead of usergroups, I'm thinking it makes more sense to add individual moderator thread banning permission on top of the default (site) banning permission.
do you mean the ability to assign individual moderators the ability to either ban from thread or ban from site? that would work, too. Have the default set at no for both, and then an option in the user options to assign one or the other.
Reply With Quote
  #21  
Old 11-08-2007, 05:18 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!

[high]* projectego clicks install[/high]
Reply With Quote
Reply

Thread Tools

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:59 AM.


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.04872 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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