1
turnerrw
Activating users in bulk through phpMyAdmin
  • 2006/4/26 18:30

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I have a number of users that need to be activated - I selected activate by Admin and never received email notification.

What needs to be done directly in the xoops_users table to activate these users? I'd like to just execute a single SQL query and do it in bulk.

I'm on XOOPS 2.0.x.

cheers,
-Robert

2
Dave_L
Re: Activating users in bulk through phpMyAdmin
  • 2006/4/26 21:08

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I only have XOOPS 2.2.4 installed, but I think it works the same way in 2.0.x.

You need to change the column users.level from 0 to 1 for those users. I suggest testing it on one user first.

Note that this will not send an email to the user telling him that he's activated.

To do it with a single query, you would need to provide a WHERE-condition, such as a range or list of user IDs, or a range of registration dates.

Or if you wanted to activate everyone who's inactivated, you could use this query, where xxxx is your table prefix: (backup your database first)

UPDATE xxxx_users SET level=1 WHERE level=0;

3
turnerrw
Re: Activating users in bulk through phpMyAdmin
  • 2006/4/27 19:52

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Excellent - after I posted my message here I noticed the Level field incremented to 1 after I activated a user. Appreciate the confirmation and the SQL syntax.

Cheers,
-Robert

Login

Who's Online

350 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 350


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits