Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 11-08-2007, 09:08 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
i become an error if the Cronjob works.

Quote:
Invalid SQL:

SELECT user.*,
userban.usergroupid AS banusergroupid, userban.displaygroupid AS bandisplaygroupid, userban.customtitle AS bancustomtitle, userban.usertitle AS banusertitle
FROM userban AS userban
LEFT JOIN userban_manage AS userban_manage ON(userban_manage.userid = userban.userid)
INNER JOIN user AS user USING(userid)
WHERE userban.bandate < 1193958065;

MySQL Error : Column 'userid' in from clause is ambiguous Error Number : 1052
Date : Friday, November 9th 2007 @ 12:01:05 AM
Any Ideas what the error is?
Reply With Quote
  #23  
Old 11-08-2007, 09:44 PM
Audentio's Avatar
Audentio Audentio is offline
 
Join Date: Mar 2007
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It took me forever to install, but it looks like it is working and man oh man is this a cool mod. Installed. Please let us know if there are any errors since thats a lot to edit and seemingly a lot of chances for error. But great work, you have me impressed.

The site ban option is a bit confusing for me...can we make them jump to the banned usergroup? Or is that what it does? My banned usergroup is 15. Will that matter?
Reply With Quote
  #24  
Old 11-08-2007, 11:48 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MrD,
Thanks for reporting.
It is now fixed in version 1.2
If you do not wish to upgrade to this version, just FTP 'includes/cron/remove_managed_bans.php' and overwrite the old file with the new one.

Audentio,
When you site ban a user you get the option as to which banned usergroup you wish to insert them into. The drop down menu.
Reply With Quote
  #25  
Old 11-09-2007, 05:26 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo View Post
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.
Is that template edit the complete xml for this mod so we don't have to do the edits manually?
Reply With Quote
  #26  
Old 11-09-2007, 05:27 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack..

My regular mods cant use the tools at all though.. Is that by design?

Any plans for regular mods to be able to thread ban or site ban from their respective moderated forums?
Reply With Quote
  #27  
Old 11-09-2007, 06:49 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
My regular mods cant use the tools
In the admin control panel select the moderator you wish to edit for a desired forum, then under 'User Permissions' select 'Can Thread Ban Users' and/or 'Can Restore Thread Banned Users' in addition to the default site banning options.
Reply With Quote
  #28  
Old 11-09-2007, 08:35 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
theres no File for Download
Reply With Quote
  #29  
Old 11-09-2007, 08:41 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is now
Reply With Quote
  #30  
Old 11-09-2007, 10:21 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
i upgrade at 1.3 and following Error comes.
Quote:
Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT user.*,
userban.usergroupid AS banusergroupid, userban.displaygroupid AS bandisplaygroupid, userban.customtitle AS bancustomtitle, userban.usertitle AS banusertitle
FROM userban AS userban
LEFT JOIN userban_manage AS userban_manage ON(userban_manage.userid = userban.userid)
INNER JOIN user AS user USING(userban.userid)
WHERE userban.bandate < 1194004975;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.userid)
WHERE userban.bandate < 1194004975' at line 5 Error Number : 1064
Date : Friday, November 9th 2007 @ 01:02:55 PM
Script : http://.../cron.php?&rand=479507
The Cronscript is: remove_managed_bans.php

No User are banned with the Addon
Reply With Quote
  #31  
Old 11-09-2007, 11:42 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you had a previous version installed, uninstall and then reinstall - do not write over the product - you must uninstall it and then reinstall
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 09:04 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.08490 seconds
  • Memory Usage 2,315KB
  • 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
  • (4)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
  • (4)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