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
  #82  
Old 04-06-2003, 04:17 AM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 11:29 PM lioncool1589 said this in Post #80
how come i dont see option to temp ban user in control panel

Me either my mods I turned on see it but when they click it it just shows a white page


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

when i click on temp ban why i get empty page nothing show up
Reply With Quote
  #84  
Old 04-07-2003, 05:19 AM
lioncool1589 lioncool1589 is offline
 
Join Date: Feb 2003
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site26/fst/var/www/html/forum/admin/adminfunctions.php:19) in /home/virtual/site26/fst/var/www/html/forum/mod/banuser.php on line 33

how i fix this error
Reply With Quote
  #85  
Old 04-20-2003, 05:09 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

look at this post right here guys

https://vborg.vbsupport.ru/showthrea...=&pagenumber=2

anyways, this is a great hack, i think the person that made it has left the planet

needs some updating tho
Reply With Quote
  #86  
Old 06-23-2003, 02:24 AM
AZone's Avatar
AZone AZone is offline
 
Join Date: Nov 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. What about two .php extensions? (see first post on this page)
2. How to ban not only for hours, but also up to 5 days?
Reply With Quote
  #87  
Old 07-08-2003, 01:41 AM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, We needed this for somebody and cleaned up some code and rewrote some as well a little. This version will allow you to temp ban users with no problems. I didnt add a hack to add it to the admin style drop down menu for mods. (searched but couldnt find that hack).

This is set to ban for hours, I will add one tomorrow for days or just do the math

Hope it works for you :bunny:

Need to reattach found one small bug still left
Reply With Quote
  #88  
Old 09-15-2003, 03:09 AM
TheDPQ TheDPQ is offline
 
Join Date: May 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, interesting. When i try to edit it trys to load banuser.php.php
Edit: Fixed with ereg()

Also:
Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home/mvhost/public_html/test/admin/adminfunctions.php:19) in /home/mvhost/public_html/test/mod/banuser.php on line 43
Line 43:
Header("Location: ".$PHP_SELF); // so that F5 works

I see a few people had this problem here but nothing was posted as to how to fix it.
Edit: I don't know PHP or VB very well so i just kicked in a javascript redirect since i don't think i'm going to get much help here. If you have another/better solution let me know
Reply With Quote
  #89  
Old 09-18-2003, 09:03 AM
Athmo Athmo is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How did you fix that banuser.php.php problem?

I have no idea what to change....
Reply With Quote
  #90  
Old 11-04-2003, 06:35 PM
sKuLLo's Avatar
sKuLLo sKuLLo is offline
 
Join Date: Oct 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, how can we fix the problems listed on previous messages?
Reply With Quote
  #91  
Old 11-04-2003, 08:15 PM
TheDPQ TheDPQ is offline
 
Join Date: May 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Edit: Fixed with ereg()
Sheesh i gave ya the answer. I didn't know PHP at the time either but i figured it out. =P Learning how to research and problem solve yourself will get you farther then just waiting for someone to hand you the answer.

PHP Code:
 doformheader(ereg_replace (".php"""$PHP_SELF),"update");     //added eReg. was getting banuser.php.php - 9.15.03 by TheDPQ 
Theres probably a better solution, but i didn't care to nitpick the code and findout where its already adding the extra .php. Its brute-force, but it works.

FYI i was on a private testing board. So while it didn't break, it didn't really get tested out either.
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 11:19 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.05223 seconds
  • Memory Usage 2,308KB
  • 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
  • (3)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
  • (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