使用 Phorum 的 SQL 数据库

发布于 2024-08-03 23:17:27 字数 243 浏览 8 评论 0原文

我刚刚在我的网站上探索 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海未深 2024-08-10 23:17:27

您可以修改您的站点以使用 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文