vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow Mods a temporary ban of users (https://vborg.vbsupport.ru/showthread.php?t=39584)

chris frolic 06-13-2002 12:25 AM

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.

Erwin 06-19-2002 11:31 PM

This is a great hack! Thanks a lot! It works well with some custom modifications! :)

Boofo 06-19-2002 11:42 PM

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! :)

Erwin 06-20-2002 02:42 AM

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.

Silviu 07-02-2002 06:51 PM

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.

Keyser S?ze 07-11-2002 02:26 AM

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

vwvitek 09-11-2002 12:26 AM

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.

ExAvIoUr 09-11-2002 12:52 AM

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. :)

ExAvIoUr 09-12-2002 03:11 PM

would also like a direct link for the mods/admins on the site if someone can assist with that also. :)

N9ne 10-20-2002 07:45 PM

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

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? :)


All times are GMT. The time now is 11:24 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.01212 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete