vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Quick query needed, apprecated (https://vborg.vbsupport.ru/showthread.php?t=295228)

NarutoFTW 02-18-2013 02:26 AM

Quick query needed, apprecated
 
Can anyone write a query that unbans every member that was banned by a particular moderator?

so like the moderator's user id and unban everyone banned by that person.

Thank you

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

bump? help please

NarutoFTW 02-20-2013 03:37 AM

bump

Lynne 02-20-2013 05:12 PM

You would need to provide more details like what usergroup have the users been banned to? What usergroup do you wish them to be put in when unbanned?

NarutoFTW 02-23-2013 04:30 AM

Registered user. regular user

Lynne 02-23-2013 04:48 AM

There is no "regular user" group. We need some usergroupids for this.

Amaury 02-23-2013 05:28 AM

Quote:

Originally Posted by Lynne (Post 2405928)
There is no "regular user" group. We need some usergroupids for this.

Registered Users would be two. :)

borbole 02-23-2013 11:01 AM

Quote:

Originally Posted by Amaury25 (Post 2405936)
Registered Users would be two. :)

What about if the user has changed it and uses a custom group for Registered Users?

kh99 02-24-2013 06:12 PM

Try this:
Code:

UPDATE userban SET liftdate = 1 WHERE adminid = X

where X is the userid of the mod you mentioned (it's called adminid but it's also for mods). Then run the "Restore Temporarily Banned Users" schedule task (or wait for it to run).


All times are GMT. The time now is 02:26 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.01133 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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