vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Banned by moderator... (https://vborg.vbsupport.ru/showthread.php?t=40724)

Glock 07-06-2002 12:37 AM

Banned by moderator...
 
I want it to be so that when the moderators click the ban button, it moves them to usergroup Banned, a group I have custom created, and wish to have all banned users in.

Thanks

Admin 07-06-2002 04:28 AM

Does it not do this already?

Glock 07-06-2002 04:42 AM

It puts them in usergroup "Banend by Moderator" which is kind of annoying, since I am active in taking care of trolls too, and just want them all in one group, the one that I custom created.

Logician 07-06-2002 06:56 AM

edit MOD\user.php (Notice this is the file under MOD dir)

find:

PHP Code:

 $DB_site->query("UPDATE user SET usergroupid=$bangroup[usergroupid] WHERE userid=$banuser[userid]"); 

Replace it AS:

PHP Code:

 $DB_site->query("UPDATE user SET usergroupid=X WHERE userid=$banuser[userid]"); 

Change X with any user group id you want.

Be careful about writing the correct usergroup id here! We dont want them become Site Admins accidently, do we? :p

Enjoy..
Logician

Glock 07-06-2002 07:07 AM

It puts them in the correct usergroup, but still automatically adds Banned by Moderator, and it also doesn't update their Status to Banned, like it would automatically do if an admin switched their group.

Xenon 07-06-2002 09:02 AM

"and it also doesn't update their Status to Banned, like it would automatically do if an admin switched their group."

Thats a known bug, a fix is somewhere in the releasforum as i know

Glock 07-06-2002 03:51 PM

Have any idea of what it is called? And what about it still adding the other usergroup?

Xenon 07-06-2002 04:04 PM

you have to delete/outcomment this passege in mod/user.php:
PHP Code:

if (!$bangroup) {
    
$DB_site->query("INSERT INTO usergroup
                       (usergroupid, title, usertitle, cancontrolpanel, canmodifyprofile, canviewmembers,
                        canview, cansearch, canemail, canpostnew, canmove, canopenclose, candeletethread, canreplyown,
                        canreplyothers, canviewothers, caneditpost, candeletepost, canusepm, canpostpoll, canvote,
                        canpostattachment, ismoderator, canpublicevent, canpublicedit, canthreadrate, cantrackpm,
                        candenypmreceipts)
                     VALUES
                        (NULL, 'Banned by Moderators', 'Banned', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')"
);
    
$bangroup['usergroupid'] = $DB_site->insert_id();
    
$bangroup['title'] = 'Banned by Moderators';
  } 

so no new group would be created..

this is the link to the hack update user title:
https://vborg.vbsupport.ru/showthrea...threadid=33711

Chris M 07-06-2002 04:27 PM

Thanks for that:)

Satan

Glock 07-06-2002 07:48 PM

Outcomment? I'm new at this...


All times are GMT. The time now is 07:50 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.01656 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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