允许用户从自定义Joomla登录表单中选择用户组 [英] Allow users to select user group from custom Joomla login form

查看:168
本文介绍了允许用户从自定义Joomla登录表单中选择用户组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Joomla 3.0中开发一个网站.我正在尝试做的是创建一个自定义登录表单.我这样做的原因是使用户能够选择要在注册时放入的用户组.因此,我需要在登录表单中创建一个下拉框.用户可以从该下拉框中选择所需的用户组.到目前为止,我已经尝试过使用各种插件和扩展,但问题是它们无法按照我想要的方式进行自定义.因此,如果您有任何想法如何实现结果,请与我分享.我想我将不得不尝试自己编写代码,但是即使在这种情况下,我也需要大量帮助.给我提示和引用好的教程也将有所帮助.
谢谢

I am developing a website in Joomla 3.0. What I am trying to do is to create a custom login form. The reason I want to do that is to enable users to select the user group they want to be put in while they are registering. So I need to create a dropdown box in the login form. From this dropdown box users would be able to pick up the desired user group. So far I've tried using various plugins and extentions but the problem is that they can't be customized the way I want. So please, if you have any idea how to achieve the result I am looking for share it with me. I guess I will have to try to code it myself, but even in this case I would need a lot of help. Giving me tips and citing good tutorials would also be helpful.
Thank you

PS:如果您对我的另一个Joomla版本的问题有解决方案,请与我分享.

PS: If you have solution to my problem for another version of Joomla please share it with me.

推荐答案

可能 UsergroupSelector 插件可以帮助您实现这一目标.该插件在注册表格中添加一个字段.如果您不想使用默认的html,则需要在覆盖的模板中添加一个选择框html.

Probably UsergroupSelector plugin can help you to achieve this. This plugin adds a field in registration form. In case if you do not want to use default html, then you need to add a select box html in your overrided template.

这篇关于允许用户从自定义Joomla登录表单中选择用户组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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