News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[RESOLVED]Bulk update of member permissions. this is possible?

Started by pittu, December 28, 2009, 09:53:58 AM

Previous topic - Next topic

pittu

I enter a mysql query on vbulletin and get 300 member emails for which I need to update membergroup on SMF.

SELECT email FROM `forumuser` WHERE usertitle='private members'

Now I created this same membergroup in SMF with required permissions. (It is now under 'Regular groups' list)

Now how to update members with these emails to new membergroup?



UPDATE smf_members
SET ?????????????
WHERE emailAddress='[email protected]'


WHat to enter at SET ?

Norv

Do you want them to have the group as primary group or additional group?
Primary group is displayed on the profile page, as well as under their names in posts. Additional groups are not displayed, but they are applied, as far as permissions they allow are concerned.

Update: you're using SMF 1.1.x, it seems?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Norv

For SMF 1.1.x, setting primary group:

UPDATE smf_members
SET ID_GROUP = your_group_id
WHERE emailAddress='[email protected]'
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

pittu

Worked like a charm.

I changed 300 members to a special 'Regular group' I created.

thanks.

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: