vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ban instead of delete during Moderation? (https://vborg.vbsupport.ru/showthread.php?t=106573)

Trevor Hannant 01-28-2006 08:54 PM

Ban instead of delete during Moderation?
 
Looking to ban users rather than delete them when moderating new registrations. Can someone confirm the following change though before I make a backside of it.......

Find the following in user.php (line 1854?):

Code:

delete_user($userid);
and replace with

Code:

        $DB_site->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = x WHERE userid = $userid");
where x is the banned usergroup?

I know I'll need to change the deleted e-mail to read differently etc......

Cheers in advance.

Trevor Hannant 01-28-2006 09:29 PM

OK, tried it on a test board and caused all sorts of problems.....

Guess that's not it then!

Daniel 01-28-2006 10:16 PM

Wrong forum...

Fourth time today, something really needs to be done.

Trevor Hannant 01-28-2006 10:22 PM

Quote:

Originally Posted by Daniel
Wrong forum...

Fourth time today, something really needs to be done.

I'm extremely sorry for that Daniel!

Tony G 01-29-2006 12:02 AM

Daniel - It's hardly your place to be critisising members for posting in the wrong forum. Just report it and don't post anything if it's not going to be nice.

Moving to vB3.5 questions.

Trevor Hannant 02-03-2006 05:50 AM

Thanks Tony.

Any ideas anyone?


All times are GMT. The time now is 01:00 PM.

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.01144 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete