Hello,
I'm using UserRightsList extension to manage the rights of my user via a list, instead of one by one. I have a lot of users on the wiki, as it is used for students to make group works. I've updated the wiki to the last version, and the extension is broken, I get this message when trying to save changes :
*Fatal error*: Cannot access protected property WebRequest::$data in */var/web/bsv/public_html/wiki/extensions/UserRightsList/SpecialUserRightsList.body.php* on line *62
*Also, I use the extension Mass User Import, to import the students with the name, email, username for the wiki, and they receive an email with invitation and a temporary password. Could it be tweaked to add the group to which I would like to assign them? I don't know where in the tables the users and the groups are connected. If I can't, do you have any idea how I could easily add about 400 new users to a group, and switch about the same number of users from a group to another group?
Thanks André * *
I've been slow to update UserRightsList... we still run mw 1.14 for other reasons. I will try to fix this and release a new version.
Jim Hu
On Oct 14, 2010, at 9:10 AM, André Meunier ameunier@ulg.ac.be wrote:
Hello,
I'm using UserRightsList extension to manage the rights of my user via a list, instead of one by one. I have a lot of users on the wiki, as it is used for students to make group works. I've updated the wiki to the last version, and the extension is broken, I get this message when trying to save changes :
*Fatal error*: Cannot access protected property WebRequest::$data in */var/web/bsv/public_html/wiki/extensions/UserRightsList/SpecialUserRightsList.body.php* on line *62
*Also, I use the extension Mass User Import, to import the students with the name, email, username for the wiki, and they receive an email with invitation and a temporary password. Could it be tweaked to add the group to which I would like to assign them? I don't know where in the tables the users and the groups are connected. If I can't, do you have any idea how I could easily add about 400 new users to a group, and switch about the same number of users from a group to another group?
Thanks André
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Andre,
Looking at the code, the error is due to a weird kludge I did for MW1.13. I need to decide whether I still need to support the older versions and do some testing, but in the meantime, could you check to see if this version works for you? Just replace your SpecialUserRightsList.body.php with the attached file.
Jim
On Oct 14, 2010, at 9:10 AM, André Meunier wrote:
Hello,
I'm using UserRightsList extension to manage the rights of my user via a list, instead of one by one. I have a lot of users on the wiki, as it is used for students to make group works. I've updated the wiki to the last version, and the extension is broken, I get this message when trying to save changes :
*Fatal error*: Cannot access protected property WebRequest::$data in */var/web/bsv/public_html/wiki/extensions/UserRightsList/SpecialUserRightsList.body.php* on line *62
*Also, I use the extension Mass User Import, to import the students with the name, email, username for the wiki, and they receive an email with invitation and a temporary password. Could it be tweaked to add the group to which I would like to assign them? I don't know where in the tables the users and the groups are connected. If I can't, do you have any idea how I could easily add about 400 new users to a group, and switch about the same number of users from a group to another group?
Thanks André
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
On Fri, Oct 15, 2010 at 1:15 AM, Jim Hu jimhu@tamu.edu wrote:
Hi Andre,
Looking at the code, the error is due to a weird kludge I did for MW1.13. I need to decide whether I still need to support the older versions and do some testing, but in the meantime, could you check to see if this version works for you? Just replace your SpecialUserRightsList.body.php with the attached file.
Jim
You can't send attachments to this list, you will need to either include it inline in the email, host it somewhere or possibly open a report on bugzilla and use it's attachment service. -Peachey
Jim, the mailing list stripped the attachment. You will need to either give a link to it or send it to him offlist.
André wrote:
and switch about the same number of users from a group to another group?
I guess you are changing all users from a group to another? That would be easy to do with an sql query: UPDATE user_groups SET ug_group='newgroup' WHERE ug_group='oldgroup';
Adding all users recently registered to a group should be easy, too (although adding the option to Mass User Import seems the way to go).
INSERT INTO user_groups (ug_user, ug_group) SELECT user_id, 'newgroup' from user WHERE user_registration >= '20101014030405';
Where 20101014030405 means: all users registered since 2010-10-14 03:04:05
I'd like to add the option to Mass User Import, but I really don't know what I'd have to do.. If someone can point the direction, I'd give it a go..
Meanwhile the SQL solution should do it. Thanks !
André
Le 15/10/2010 00:54, Platonides a écrit :
Jim, the mailing list stripped the attachment. You will need to either give a link to it or send it to him offlist.
André wrote:
and switch about the same number of users from a group to another group?
I guess you are changing all users from a group to another? That would be easy to do with an sql query: UPDATE user_groups SET ug_group='newgroup' WHERE ug_group='oldgroup';
Adding all users recently registered to a group should be easy, too (although adding the option to Mass User Import seems the way to go).
INSERT INTO user_groups (ug_user, ug_group) SELECT user_id, 'newgroup' from user WHERE user_registration>= '20101014030405';
Where 20101014030405 means: all users registered since 2010-10-14 03:04:05
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org