vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Mass update users based on userfield value (https://vborg.vbsupport.ru/showthread.php?t=169276)

t3nt3tion 01-31-2008 06:48 PM

Mass update users based on userfield value
 
I`m trying to move users from registered members usergroup to a usergroup I created based on a custom field value, and i`d like to do this with a SQL statement, particularly this one :

update user set usergroupid = 10 where userid in
(select userid from user
inner join userfield on
user.userid = userfield.userid
where userfield.field7 = 'valueinputedbyme');

Thing is I`m receiving a "userid" ambigous field error ...
Waiting for your replies https://vborg.vbsupport.ru/

And yes, I know this has been asked a few times, but I didn`t see any "finishing" replies that something actually worked.

t3nt3tion 02-02-2008 09:26 PM

* bump *

Demo16 02-11-2008 05:28 PM

Have you solved the problem?

t3nt3tion 02-11-2008 05:37 PM

No, but when I have time, I`ll make a custom mini php script, so it will move them at regular times. But I`ll check more on vBulletin, and hopefully I`ll make a plugin, since it`s not much of a deal.

HUMMERh3 03-01-2008 05:23 PM

I have a similar prob, all new members were to be moderated, unfortunately the promotions was set incorrect, can I reverse all these members that have bypassed usergroup.


All times are GMT. The time now is 08:04 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.00946 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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