将第三方论坛软件与我自己的代码集成

时间:2022-11-24 23:10:12

I'm about to start a new PHP project and I'm going to need to make use of 3rd party forum software.

我即将开始一个新的PHP项目,我将需要使用第三方论坛软件。

What's the best way to tackle integration of the forum into my code? Things like user authentication, having the user only have to login once, etc.

解决将论坛集成到我的代码中的最佳方法是什么?用户身份验证,用户只需登录一次等等。

I'll be using the CodeIgniter framework if that is of any help. I found the article on integrating Vanilla with CL Auth & CodeIgniter but it wasn't to my liking at all.

如果有任何帮助,我将使用CodeIgniter框架。我找到了关于将Vanilla与CL Auth和CodeIgniter集成的文章,但这根本不是我喜欢的。

Does anyone have any specific recommendations on PHP forum software? I'm open to any suggestions or pointers/help.

有没有人对PHP论坛软件有任何具体建议?我愿意接受任何建议或指示/帮助。

2 个解决方案

#1


In my experience Simple Machines Forums is relatively easy to integrate into existing code.

根据我的经验,简单机器论坛相对容易集成到现有代码中。

What comes to authentication, it may be easiest for you to use the forum's authentication in your application, rather than attempting to use your application's authentication in the forum. It doesn't matter which forum you choose to use - this is usually the esiest way, since forums tend to have complex code related to auth and access, which can be tricky to modify to use some other system.

对于身份验证,您可能最容易在应用程序中使用论坛的身份验证,而不是尝试在论坛中使用您的应用程序身份验证。你选择使用哪个论坛无关紧要 - 这通常是最常用的方式,因为论坛往往有与auth和access相关的复杂代码,修改使用其他系统可能很棘手。

#2


I'm not real familiar with any particular forum software, but my advice when using and integrating 3rd party software is to try and abstract out the specifics as much as possible from your main code base.

我并不熟悉任何特定的论坛软件,但我在使用和集成第三方软件时的建议是尝试从主代码库中尽可能多地抽象出细节。

Wrap your forum library calls for things such as authentication, etc so that if you need to later change your forum software, you can limit the scope of the changes.

包装您的论坛库调用以进行身份​​验证等操作,以便在以后需要更改论坛软件时,可以限制更改的范围。

#1


In my experience Simple Machines Forums is relatively easy to integrate into existing code.

根据我的经验,简单机器论坛相对容易集成到现有代码中。

What comes to authentication, it may be easiest for you to use the forum's authentication in your application, rather than attempting to use your application's authentication in the forum. It doesn't matter which forum you choose to use - this is usually the esiest way, since forums tend to have complex code related to auth and access, which can be tricky to modify to use some other system.

对于身份验证,您可能最容易在应用程序中使用论坛的身份验证,而不是尝试在论坛中使用您的应用程序身份验证。你选择使用哪个论坛无关紧要 - 这通常是最常用的方式,因为论坛往往有与auth和access相关的复杂代码,修改使用其他系统可能很棘手。

#2


I'm not real familiar with any particular forum software, but my advice when using and integrating 3rd party software is to try and abstract out the specifics as much as possible from your main code base.

我并不熟悉任何特定的论坛软件,但我在使用和集成第三方软件时的建议是尝试从主代码库中尽可能多地抽象出细节。

Wrap your forum library calls for things such as authentication, etc so that if you need to later change your forum software, you can limit the scope of the changes.

包装您的论坛库调用以进行身份​​验证等操作,以便在以后需要更改论坛软件时,可以限制更改的范围。