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
  #72  
Old 12-24-2002, 09:41 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
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.
lol, sounds like you're bragging to me. hehehe.
Reply With Quote
  #73  
Old 12-24-2002, 10:33 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by CRego3D


Thank you .. now, when I click on "temp ban" it leads me to the page to temp ban it, but still askign for the iser id (just leads me to the ban link in banuser.php) .. did I missed something ?
yeah. im getting the same issue. maybe there's a template change?
Reply With Quote
  #74  
Old 12-24-2002, 10:43 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. no it can't be in the template. i think it's probably something that needs to be changed in banuser.php but i have no clue what that would look like. someone needs to redo this entire hack and make it work properly because i couldn't get it to work unless i changed various things around by getting ideas from the people who've posted. as it is, this hack is pretty useless because unless i'm mistaken, how can a mod get a user's id#? only admins can get that.
Reply With Quote
  #75  
Old 12-24-2002, 10:47 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Hotte


Nothing. But what stops a mod, super mod or admin from un-banning himself? The temp-ban doesn?t work on files in the mod oder adminfolder, so they are still able to access the banuser.php to unban.
i'd say hopefully you would not choose a person that would do such a thing as a mod.
Reply With Quote
  #76  
Old 12-29-2002, 08:49 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone fix this so mods can see usernames instead of user id's...
Reply With Quote
  #77  
Old 01-29-2003, 01:49 AM
Anatolia Anatolia is offline
 
Join Date: Dec 2001
Location: London
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool hack!
nice work!
every thing is working fine bit I get a HTTP 404 - File not found Internet Explorer Error when I do an [edit] then [submit]
I can see in the browser address this: /vb/admin/banuser.php.php
so there are to .php extension!
any idea

Anatolia
Reply With Quote
  #78  
Old 02-23-2003, 08:33 PM
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 Erwin
Okay, this is what you do.

1) Upload banuser.php into your mod subdirectory

2) Edit your mod/user.php

Find:
[--]

That's it!

Then what your mods can do is Search for a User using the normal search function in their Mod CP, and when they find the username, click on the "Temp Ban" or "Remove Temp Ban" links next to the username. And go from there!

My system is very different - so I can't test this, but it should work.
works, but the only problem is that it does not ask me for a reason or number of hours, just seems to let mods ban the user indefinntly


-----------------------

also, to everyone that replied after erwin posted this, i think u are missing, that his modification does not change the temp ban link, if u go thru that, its the same old way of using the user id, u must use the "quick search" on the main page, to find a user, and from there it will ask do u want to ban them? also it will have a link to just go to there user information

-----------------------

another question, i have more user groups than just registerd, like i have some private forums for special members and sometimes they can be naughty too, so how can i add more user groups to this hack to be banable? thanks
Reply With Quote
  #79  
Old 03-08-2003, 09:51 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have updated this so mods that are allowed to ban can and can only ban regular users (2).
There was no point reinventing the wheel here. I just took the code from the prefectly good banning function that is already in vbb.
I also linked it to the mod ban section, so when you search for a user to ban, like you do to perm ban someone anyways, you click on temp ban and the userid is automatically input, no need to worry about usernames etc, but that can easily be changed.

have a look.
Reply With Quote
  #80  
Old 04-06-2003, 01:39 AM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I installed this hack and the update. I can not find where I temp ban users of my site. I do not see any changes

Larry
Reply With Quote
  #81  
Old 04-06-2003, 03:29 AM
lioncool1589 lioncool1589 is offline
 
Join Date: Feb 2003
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how come i dont see option to temp ban user in control panel
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:07 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.04835 seconds
  • Memory Usage 2,305KB
  • 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
  • (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