Joomla 有没有办法拥有公共用户个人资料?
我安装了 Joomla 1.7,我注意到您可以使用用户配置文件插件来拥有用户配置文件。但是,有没有办法公开访问用户的个人资料(无需登录)?
例如,我注意到您可以转到:
/index.php?option=com_users&view=profile
但是,这似乎会调出我自己的个人资料,如果我注销,它总是将您重定向到登录表单。我尝试添加其他变量,例如“id=1”、“user_id=1”或“userId=1”。
有办法做到这一点吗?或者我是否必须开发一个组件来公开获取这些信息?
I installed Joomla 1.7 and I noticed that you can have user profiles with the user profile plugin. However, is there a way to publicly access a user's profile (without loging in)?
For instance, I noticed that you can go to:
/index.php?option=com_users&view=profile
However, that seems to pull up my own profile, If I am logged out it always redirects you to the login form. I have tried adding additional variables like "id=1", "user_id=1", or "userId=1".
Is there a way to do this? Or will I have to develop a component to pull in this information publicly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尽管干净的 Joomla 网站不可能实现这一点,但它附带了许多有用的代码,如果您愿意创建一个组件,则可以将其包含到您的组件中。
但是...有一个很棒的扩展社区生成器,背后有一个很棒的团队。过去使用过它,我强烈推荐它作为基于社区的网站的解决方案。
它将登录表单更改为更好的&无错误的形式,允许创建更多字段进行注册,并允许为个人用户提供特殊页面,此外,社区构建器具有特定于扩展的插件。
编辑:此答案需要更新,因为添加了更多扩展,例如 JomSocial 或 EasySocial。我不能再推荐 CommunityBuilder
Even though it not possible with clean Joomla website a lot of useful code come with it, which you could include to your component if you prefer to create one.
But... there is a great extension Community Builder with a great team behind it. Having used it in the past, I would highly recommend it as a solution for community based sites.
It changes the login form to a much better & bug-free form, enables more fields to be created for registration, and allows special pages for individual users, plus, community builder has extension-specific plugins.
EDIT: This answer needs an update as since it was added more extensions have been introduced like JomSocial or EasySocial. I cannot recomment CommunityBuilder any more
这篇文章标记为 Joomla 1.7,但我想提一下,如果使用 Joomla 3.7.4,您现在可以显示来自核心联系人组件的用户配置文件插件数据。您还可以向用户组件添加更多自定义字段,它们也将从联系人组件中显示。您可以通过进入管理面板 -> 设置用户个人资料信息的显示。联系方式->选项。打开下面的选项;联系方式->用户资料->设置为“显示”。
This post is tagged with Joomla 1.7 however I wanted to mention that if using Joomla 3.7.4 you now have the ability to show the User Profile plugin data from the core Contacts component. You can also add more custom fields to the Users component and they will also show from the Contacts component. You can set the display of the Users Profile info by going to the Admin panel -> Contacts -> Options. Turn on the option under; Contact -> User Profile -> set to "Show".