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)

Hotte 06-07-2002 10:32 PM

hmmm
a temp ban is usefull, so that this user can think about that, what he has done. So why let him do anything?

MarkG 06-07-2002 11:01 PM

well we have a different style of bans on our forums: they last from 1 day to 2 weeks and the restriction is on posting. reading the forums as well as using the pm system is allowed

currently we have to use a thread in a private forum to keep a log of these bans. this hack would be great if it moved the user to and from the banned users group...

Boofo 06-07-2002 11:12 PM

How would I make this so the Admin and Super Moderator can use it and only the moderators you select?

Hotte 06-07-2002 11:20 PM

Quote:

Originally posted by Boofo
How would I make this so the Admin and Super Moderator can use it and only the moderators you select?
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


$bbuserinfo[usergroupid]!=6 for the admin-group
$bbuserinfo[usergroupid]!=5 for the supermoderators
$bbuserinfo[userid]!=x-z for the userid?s for the moderators you select

If the moderators are all in 1 usergroup (and only them, no one else) you can use the way with the usergroupid.

Erwin 06-07-2002 11:44 PM

This is an interesting hack. I will look into it soon. It would be good if the hack allows for ban periods of days or weeks. But I suppose you can just work it out by working out the number of hours.

Hotte 06-07-2002 11:48 PM

If you want a user ban some days or weeks increase the hours :) it works. calc.exe is a good friend then :)

Chris M 06-08-2002 01:22 AM

This is an excellent hack...

*Installs*

Satan

ManagerJosh 06-08-2002 06:12 AM

Using this hack is very good. Big problem is when they see the error, they will freak out.

I suggest a countdown, or a statement that says you have been banned for a certain number of minutes/hrs/etc

I don't think a countdown is good, but just a plain statement saying how long he has been banned.

Something like this prevents users from leaving the forums (which is something you do not want happening)

RDX1 06-08-2002 06:52 AM

well if you allow guests to view the board, all they have to do is logout

MarkG 06-08-2002 07:15 AM

Quote:

well if you allow guests to view the board, all they have to do is logout
true, but that's not the most effective solution, is it? ;)
plus, i want to leave the ability to pm...



if you want ban in days and not hours, just add *24 after every 60*60 in the banuser.php


All times are GMT. The time now is 10:37 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.01183 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)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