Previous Thread
Next Thread
Print Thread
Rate Thread
Change titles of all users in a group #285667 06/26/2005 4:50 PM
Joined: Jun 2002
Posts: 47
UnixSpot Offline OP
User
OP Offline
User
Joined: Jun 2002
Posts: 47
How can I change the Title of every user in a group.

I have a group (GroupA) and every member in that group should have a custom title, the same title. Now I can do it by hand on each user but I have 400 users. Is there an SQL command or a script that can change them all for me?>

Thanks!

Sponsored Links
Re: Change titles of all users in a group [Re: Diamond] #285668 06/26/2005 4:52 PM
Joined: Oct 2003
Posts: 2,305
scroungr Offline
Old Hand
Offline
Old Hand
Joined: Oct 2003
Posts: 2,305
UPDATE w3t_Users SET U_Title = 'Widget' WHERE U_Groups LIKE '%-5-%' where 5 is the number of the group

Re: Change titles of all users in a group [Re: 234234] #285669 06/26/2005 5:16 PM
Joined: Jun 2002
Posts: 47
UnixSpot Offline OP
User
OP Offline
User
Joined: Jun 2002
Posts: 47
Wonderful, that worked perfectly ... now what if I want to change a title ... lets say I have a bunch of users with the title "Board Member" and I want to change that title to "Board User", how could that be done.

Thank you!!!!!

Re: Change titles of all users in a group [Re: Diamond] #285670 06/26/2005 6:11 PM
Joined: Oct 2003
Posts: 2,305
scroungr Offline
Old Hand
Offline
Old Hand
Joined: Oct 2003
Posts: 2,305
UPDATE w3t_Users SET U_Title = 'Board User' WHERE U_Title = 'Board Member'


Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,490
Posts293,665
Members13,828
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 12
Gizmo 1
Today's Statistics
Currently Online 960
Topics Created 0
Posts Made 1
Users Online 1
Birthdays 15
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191013.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.032s Queries: 15 (0.011s) Memory: 3.2147 MB (Peak: 3.6227 MB) Data Comp: Zlib Server Time: 2019-10-17 20:59:56 UTC
Valid HTML 5 and Valid CSS