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
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
drkknght
drkknght
rob's pad -- where it takes skin, to win!
Posts: 1,271
Joined: November 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,499
Posts293,666
Members13,824
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 21,084
JoshPet 10,370
LK 7,395
Lord Dexter 6,709
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 26
driv 16
Gizmo 5
Morgan 2
Today's Statistics
Currently Online 928
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 16
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.3
(Snapshot build 20190709.dev)
PHP: 5.4.45 Page Time: 0.029s Queries: 15 (0.008s) Memory: 3.2260 MB (Peak: 3.4460 MB) Data Comp: Zlib Server Time: 2019-07-16 10:41:54 UTC
Valid HTML 5 and Valid CSS