使用 Phorum 的 SQL 数据库
我刚刚在我的网站上探索 Phorum。我已经有一个与主网站相关的单独登录系统,我希望能够将其转移到 Phorum,这样人们就不必注册两次。
我看到了通过 include/db/config.php 挂钩 SQL 数据库的方法,但似乎没有关于我设置的表中将携带什么内容的良好文档。只是用户名/密码吗?
假设是这样,有没有办法让我可以拥有它,这样如果您登录我的网站,就不必重新登录 phorum?即使只是一个指向正确方向的链接也会很出色。谢谢!
I was just exploring Phorum for my website. I already have a separate log in system associated with the main website, which I was hoping to be able to carry over to Phorum, so people don't have to sign up twice.
I saw the way to hook in a SQL database through include/db/config.php, but there seems to be no good documentation on what's going to be carried in the table I set it to. Will is just be username/password?
Assuming it is, is there a way I can have it so if you signed in on my site, you don't have to re sign in for phorum? Even just a link pointing in the right direction would be outstanding. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以修改您的站点以使用 Phorum 数据库和用户注册系统。这将是最好的方法。您可以为现有用户编写一个小型 SQL 导入脚本,然后从您的站点链接到 phorum rego 页面。
如果您不热衷于采用这种方法,则需要在更改/插入数据时更新两个用户表(您的和 phorums)。另外,你们都需要使用相同的 cookie。
这有帮助吗?
You could modify your site to use the Phorum database and user registration system. This would be the best way to do it. You could write a small SQL import script for your existing users and then just link to the phorum rego page from your site.
If you are not keen on taking this approach, you'd need to update both user tables (yours and phorums) when data was changed / inserted. Also you'd both need to use the same cookie.
Does that help?