寻找一个易于集成的 PHP 论坛
我正在使用 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 技术交流群。
发布评论
评论(3)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我不知道特定于 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.