Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
changing user role
argie01
New
Hi,
I did a migration from SMF to Vanilla 1.0.3. It was fine.
The only problem I see is I need to create a new role, and then assign some user to it.
But, how can I change the role of a user ? Is there an extension to do it ? I didn't fine anything on "Vanilla Add-ons".
Thank you for your help.
0
This discussion has been closed.
Comments
To find the users by role. Click to each and then on the profile page click "Change Role" in the panel area
However, if there are a few users with the name, say "joe_bob" that you DO NOT want in this new group, it wouldn't work.
Read ALL of this BEFORE you do ANY of it.
First, setup the role that you want all of these people to be.
Next, know which ID this role is. You can find the ID by going to Settings > Roles & Permissions and hovering your mouse over the "Edit" links. In the status bar, the url will look like this:
http://site.net/forum/settings.php?PostBackAction=Role&RoleID=3
That last number (3) is the one you want. Note it.
Now, you're going to have to jump into some place where you can execute MySQL queries from. PhpMyAdmin comes with most hosting providers. Once you're there, you can use this query:
UPDATE `database`.`LUM_User` SET RoleID = N WHERE Name LIKE '%_%'
Repleace N with the role id I had you note a few steps up.
Replace the term "database" with the name of the database you installed vanilla into. (Keep the ` tick marks around it)
If you can, I'd recommend doing a backup before you execute this. Just in case.
Good luck.
fuck.
right.
UPDATE `database`.`LUM_User` SET RoleID = N WHERE Name LIKE '%\_%'
Good thing you made that backup, right?
I forgot that _ in SQL is the same as . in grep