Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow Mods a temporary ban of users Details »»
Allow Mods a temporary ban of users
Version: 1.00, by Hotte Hotte is offline
Developer Last Online: Jan 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-06-2002 Last Update: Never Installs: 64
 
No support by the author.

Hi
I´ve wrote a little hack upon request of my "Main"-Moderators.
This hack allows them to temporary ban a given user per Userid. Simply userid, reason and how many hours. The banned user will see a modified no-permission screen when he tries to login. The User can automaticly access the board again, when the entered time is over.
For the other hackers: Feel free to modify the hack and distribute a "better" version of this if you want.

Sry for my bad english.

Show Your Support

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

Comments
  #52  
Old 06-13-2002, 12:25 AM
chris frolic chris frolic is offline
 
Join Date: Jan 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way that this hack can use Board Time instead of Server time? My server is 2 timezones away and it's confusing when a ban is only for a few hours.

great hack by the way.
Reply With Quote
  #53  
Old 06-19-2002, 11:31 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack! Thanks a lot! It works well with some custom modifications!
Reply With Quote
  #54  
Old 06-19-2002, 11:42 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, Erwin, what modifications did you do that we need to know about?

Quote:
Originally posted by Erwin
This is a great hack! Thanks a lot! It works well with some custom modifications!
Reply With Quote
  #55  
Old 06-20-2002, 02:42 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I integrated it into my banning system. It's only relevant for my site. I renamed it and made it a "suspend" feature rather than call it banning, and added it into the postbit of threads for easy suspension and unsuspension. Made it all accessible from the admin, mod CPs, as well as via the staff forums. etc. etc. Just made it more functional. I do that with most hacks I install.
Reply With Quote
  #56  
Old 07-02-2002, 06:51 PM
Silviu's Avatar
Silviu Silviu is offline
 
Join Date: Oct 2001
Location: Bucharest, Romania
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is possible to allow a moderator to ban an user ONLY from his forum? I mean, there are many forums with many moderators, so if one bans an user, that user will not be able to see the rest of the forums for a specified period. Am i right?

This hack based on 'user access mask' will be a useful tool for me. This 'general banning' method is not quite appropiate for my forum.
Reply With Quote
  #57  
Old 07-11-2002, 02:26 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Hotte


In banuser.php @ line 10:

if ($bbuserinfo[userid]!=1 and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] and forumid=2")) {

change this to:

PHP Code:
if (
    
$bbuserinfo[usergroupid]!=6
    
and $bbuserinfo[usergroupid]!=5
    
and $bbuserinfo[userid]!=x
    
and $bbuserinfo[userid]!=y
    
and $bbuserinfo[userid]!=z

missing a ")" after the last userid (or group)

becareful :knockedout:

-edit-

another thing, i didnt even notice, u ban by userid (number) not user name, be careful on that
Reply With Quote
  #58  
Old 09-11-2002, 12:26 AM
vwvitek's Avatar
vwvitek vwvitek is offline
 
Join Date: Mar 2002
Location: San Diego, California
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anybody here know how to change this hack so that it provides REVERSED countdown in a specific forum? Example: User ABC is granted access to forum#15 for a period of 150 hours. After expiration of these 150 hours he cannot access forum#15 again, unless he gets new permission from mod.
Reply With Quote
  #59  
Old 09-11-2002, 12:52 AM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack m8, thanx for your hard work.

However, when I try to set a ban I get this after submitting:

Warning: Cannot add header information - headers already sent by (output started at /home/choicein/public_html/forums/admin/adminfunctions.php3:19) in /home/choicein/public_html/forums/mod/banuser.php3 on line 37

Can anyone offer some assistance as to where I went wrong?

line 37 that it refers to says:

Header("Location: ".$PHP_SELF); // so that F5 works

Thanx in advance.
Reply With Quote
  #60  
Old 09-12-2002, 03:11 PM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would also like a direct link for the mods/admins on the site if someone can assist with that also.
Reply With Quote
  #61  
Old 10-20-2002, 07:45 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin: I see you have modified this hack, please could you post up an updated super cool version?

From what I've seen, the hack would be better if it was like this:

You have a link in postbit, only viewable to those who can actually use it. Those who can use it should be those you give the right to use it...I want supermods and admins.

When you get to the ban screen, you should have a drop down with "minutes", "hours", "days", "weeks", "months" and even "years"...and then a box after to say how many of selected.

It should be made so those who CAN use this feature CANNOT ban anyone who CAN use this feature

If Erwin doesn't want to do this, maybe someone else could?
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 12:59 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.18228 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_php
  • (2)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
  • (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