Joomla 2.5: assign user to usergroup from front-end

瘦欲@ 提交于 2019-12-12 00:58:40

问题


I have statically defined user groups with statically defined access rights. And I want to be able to change the user group for given user from the front-end using some module.

Reason: users can register by themselves, and automatically go to group "registered". After some time they can be promoted and moved to group "member". But I don't want to do this from back-end, bcs e.g. promotion can be done by any another already member. So I need this in front-end.

I haven't found any mention about this in Google. Maybe this is just something obvious? Are there any module/plugin perfoming such task?


回答1:


The Joomla core components don't allow this. But you can search on http://extensions.joomla.org/extensions/clients-a-communities/user-management if there is something that fits your needs. Maybe this one: http://extensions.joomla.org/extensions/clients-a-communities/user-management/13753




回答2:


You could make a module with a button and have the button use JUserHelper::addUserToGroup.



来源:https://stackoverflow.com/questions/15972221/joomla-2-5-assign-user-to-usergroup-from-front-end

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!