Joomla 2.5:从前端将用户分配给用户组 [英] Joomla 2.5: assign user to usergroup from front-end

查看:118
本文介绍了Joomla 2.5:从前端将用户分配给用户组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有具有静态定义的访问权限的静态定义的用户组. 而且我希望能够使用某些模块从前端更改给定用户的用户组.

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.

原因:用户可以自己注册,并自动进入已注册"组.一段时间后,他们可以被提升并移至成员"组.但是我不想从后端BCS做到这一点,例如可以由任何其他已有成员进行升级.所以我需要在前端.

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.

我在Google上没有找到任何提及.也许这只是显而易见的事情?是否有执行此任务的模块/插件?

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

推荐答案

您可以使用按钮创建模块,并使该按钮使用JUserHelper :: addUserToGroup.

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

这篇关于Joomla 2.5:从前端将用户分配给用户组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆