Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-06-2002, 01:37 AM
Glock Glock is offline
 
Join Date: Apr 2002
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-06-2002, 05:28 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it not do this already?
Reply With Quote
  #3  
Old 07-06-2002, 05:42 AM
Glock Glock is offline
 
Join Date: Apr 2002
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-06-2002, 07:56 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

Enjoy..
Logician
Reply With Quote
  #5  
Old 07-06-2002, 08:07 AM
Glock Glock is offline
 
Join Date: Apr 2002
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-06-2002, 10:02 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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
Reply With Quote
  #7  
Old 07-06-2002, 04:51 PM
Glock Glock is offline
 
Join Date: Apr 2002
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have any idea of what it is called? And what about it still adding the other usergroup?
Reply With Quote
  #8  
Old 07-06-2002, 05:04 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 07-06-2002, 05:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that

Satan
Reply With Quote
  #10  
Old 07-06-2002, 08:48 PM
Glock Glock is offline
 
Join Date: Apr 2002
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Outcomment? I'm new at this...
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:28 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.04658 seconds
  • Memory Usage 2,256KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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