vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Clearing a specific Usergoup (https://vborg.vbsupport.ru/showthread.php?t=321509)

ELiTE MagZ 01-16-2016 06:57 PM

Clearing a specific Usergoup
 
Ok, so I know this can be done, as a tech on a different website than the one I help run now did it, but they won't respond to me lol.

So anyways, here is what I want to do:

We habe users in usergroups. For this example, let's call them UG #'s 12, 13 and 14. We need to clear those usergroups, without deleting them. Is there an sql query that anyone uses to conduct a mass function such as this to where you can insert usergroup numbers to execute the dump?

Can anyone point me in the right direction? Any help I can pass along to our websites current tech would be greatly appreciated.

Gio~Logist 01-16-2016 07:07 PM

You want to delete all users from a usergroup?

ELiTE MagZ 01-16-2016 07:15 PM

That is correct, but without deleting the usergroup itself

Gio~Logist 01-16-2016 07:32 PM

That's a vB function.

AdminCP
-> Users -> Prune / Move Users

Then set the criteria and on the next page you'll be able to delete or move them to another usergroup.

ELiTE MagZ 01-16-2016 07:39 PM

Quote:

Originally Posted by Gio~Logist (Post 2562764)
That's a vB function.

AdminCP
-> Users -> Prune / Move Users

Then set the criteria and on the next page you'll be able to delete or move them to another usergroup.

That function will not work for this, as there is no criteria they must meet. That function also applies only to primary usergroups.

--------------- Added [DATE]1452980402[/DATE] at [TIME]1452980402[/TIME] ---------------

I wish it were as easy as that, it was the first thing I tried.

Gio~Logist 01-16-2016 07:41 PM

Ah, I believe there are two threads going on for this?

ELiTE MagZ 01-16-2016 08:10 PM

Similar, yes


All times are GMT. The time now is 11:15 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.01202 seconds
  • Memory Usage 1,717KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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