寻找一个易于集成的 PHP 论坛

发布于 12-02 08:49 字数 171 浏览 0 评论 0原文

我正在使用 codeigniter (PHP) 构建一个网站,并且正在寻找一个易于与我当前的数据库集成的论坛,这样用户就不必注册两次。此外,我需要使用与我的网站相同的 html head 和样式,将论坛放置在 的 div 中

有人可以推荐我任何适合我的情况的简单论坛应用程序吗?谢谢。

I'm building a website with codeigniter (PHP) and I'm looking for a forum easy to integrate with my current database so users don't have to register twice. Moreover, I need to use the same html head and styles that in my website, placing the forum inside a div of <body>

Could anyone recommend me any simple forum application for my situation? Thanks.

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

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

发布评论

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

评论(3

少跟Wǒ拽2024-12-09 08:49:18

我不知道特定于 CI 的解决方案,但我已经使用过几次 MyBB 并且我可以说这非常简单集成到任何地方,因为(至少在 1.6 版本中,我已经有一段时间没有使用它了)它的结构很容易修改。我将它集成到 Joomla!网站和自定义网站,两种方式都只需读取 mybb_users 表即可进行访问;这是一个非常详细的表,因此您几乎可以找到注册表所需的任何内容,例如盐、密码、注册时间戳、电子邮件等,因此您只需查询该表即可完成设置。

至于与 CI 的集成,我认为最好的方法是放置整个论坛文件夹并在那里访问它;对于页眉、页脚和其他网站部分,您只需更改相关的论坛模板(布局分为模板子集,因此您可以轻松详细地更改它),用户不会注意到它们是不同的应用程序。

也可以尝试搭建一个CI库,用于与论坛的交流;他们没有官方 API,但在 functions.php 和其他几个我现在不记得的文件中(是​​的,1.6 主要是程序性的,希望他们现在已经改变了)你会找到所有相关的 MyBB 核心,因此构建 API 很简单;我曾经为 Joomla! 构建过自己的版本!而且真的很容易。
此外,这个人为 MyBB 编写了一个集成,事实上,这是一个很好的 API;我不知道它的更新程度如何,只需检查一下,但将这些文件移植到 Codeigniter 自定义库并不困难,以防万一。

I'm not aware of CI-specific solutions, but I've used a couple times MyBB and I can say it's really easy to integrate anywhere, as (at least in the 1.6 release, I haven't use it for some time) it's structure is easily moddable. I integrated it in a Joomla! website and in a custom one, and in both ways it's just a matter of reading the mybb_users table for access; it's quite a detailed table, so you can find almost anything you need for a registration table, like salt,password,timestamp of registration,email, and so on, so you just need to query that table and you're set.

As for the integration with CI I think the best way would be to place the whole forum folder and access it there; for the header, footer and other website parts you just change the relative forum template (layout are divided into subsets of templates, so you can change it easily and in details) and the user would not notice they are different applications.

You can also try and build a CI library for communicatin with the forum; they don't have an official API, but in functions.php and a couple other files I don't remember now (yes, 1.6 was mostly procedural, hope they have changed it now) you'll find all the relevant MyBB core, so building an API is straightforward; I once built own for Joomla! and was really easy.
Moreover, there's This guy who wrote an integration for MyBB which is, in fact, a nice API; I don't know how updated it is, just check, but It's not difficult to port those files to a Codeigniter custom library, in case.

青衫负雪2024-12-09 08:49:18

对于数据库集成,您不会找到使用与 CodeIgnitor 相同的数据库架构的论坛。但是,您可以做的是更改您的 PHP 注册脚本(对于 CodeIgnitor 和您的论坛)以在两个成员记录中添加条目。

根据您的数据库,您还可以使用数据库触发器在更新一个表时自动更新另一个表。

至于你的布局,任何东西都可以修改。开源选项将是最简单的,因此为了简单起见,我推荐 phpBB。

有关 MySQL 中数据库触发器的更多信息,请参阅此处:http://dev .mysql.com/doc/refman/5.0/en/triggers.html

For database integration you're not going to find a forum that uses the same DB architecture as CodeIgnitor. What you can do, however, is alter your PHP registration scripts (for both CodeIgnitor and your forum) to add an entry in both member records.

Depending on your database you can also use Database Triggers to automatically update the other table when one is updated.

As for your layout, anything can be modified. Open source options will be the simplest, so I'd recommend phpBB for simplicity sake.

For more information on Database Triggers in MySQL, see here: http://dev.mysql.com/doc/refman/5.0/en/triggers.html

倒带2024-12-09 08:49:18

我建议使用 PHPBB 论坛或带有 BuddyPress 插件的 Wordpress。

我不太确定与 codeigniter 的集成如何,但鉴于 PHP 是开源的,破解并找出答案应该不会太难。

I would suggest using PHPBB forum or Wordpress with the BuddyPress plug-in.

I'm not quite sure how the integration with your codeigniter would be, but seeing as PHP is open-source, it shouldn't be too hard to crack open and find out.

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