cakephp 网站与 phpBB 或简单的机器论坛可能吗?

发布于 2024-12-23 20:02:37 字数 302 浏览 5 评论 0原文

我有一个用 CakePHP 1.3.7 制作的网站。该网站有自己的登录系统。现在客户希望在网站中包含一个论坛。

我一直在寻找不同的免费解决方案,phpBB 和 SMF 似乎就是我正在寻找的。我唯一不确定的是如何将这些论坛与我已有的登录系统集成。

我的意思是,如果用户已经拥有该网站的帐户(或创建一个新帐户),他/她应该能够在论坛部分使用相同的帐户(用户名)。

这可能吗?任何为我指明正确方向的线索将不胜感激!我提到了这两种论坛解决方案,以防其中一种比另一种更容易集成,了解这一点也很好(或者是否有其他更好的选择)。

非常感谢!

I have a website made with CakePHP 1.3.7. This website has it's own login system. Now the client wants to include a forum in the website.

I've been looking at different free solutions and phpBB and SMF seem to be what I'm looking for. The only thing I'm not so sure is about integrating those forums with the login system that I already have.

I mean, if a user has already an account for the website (or creates a new one), he/she should be able to use that same account (username) in the forum section.

Is that possible? Any clue pointing me in the right direction would be much appreciated! I mentioned both forum solutions in case one is easier to integrate than the other one, that would be also good to know (or if there's any other better option).

Thanks so much in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

后知后觉 2024-12-30 20:02:37

两者都可以使用,但我个人更喜欢 SMF。您必须配置 CakePHP 的会话组件以使用数据库会话并创建一个将使用论坛会话表的模型。

您可以决定除了论坛用户表(或其称为成员,现在不知道)之外是否想要或需要一个单独的用户表。

“困难”的部分是让蛋糕应用程序以 SMF 相同的方式读/写会话和 cookie,以实现从蛋糕应用程序到论坛以及向后的平滑过渡。

从技术上讲,您可以使用这两个论坛并同时使用这两个论坛来归档您的目标,这只是正确利用框架组件的问题。

It's possible to use both but I personally prefer SMF. You have to configure CakePHP's session component to use database sessions and create a model that will use the forums session table.

You can decide if you want or need a separate users table besides the forums users table (or its called members, don't know right now).

The "hard" part is to make the cake app read/write the sessions and cookies in the same fashion SMF does to allow a smooth transition from the cake app to the forum and backwards.

Technically you can use both forums and archive your goal with both, it's just a matter of getting the frameworks components utilized right.

下壹個目標 2024-12-30 20:02:37

我最终使用了: this

它拥有我需要的一切,并且完美地集成到 Cake 中:)

I ended up using: this

It has all that I needed and integrates perfectly into Cake :)

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