是否可以将我的数据库与论坛(SMF、phpBB)数据库集成?
我有一个具有用户群的网络应用程序。我想添加一个论坛,但我不希望用户再次在那里注册。
我正在使用 Rails/Postgresql。
是否可以集成论坛,以便用户在我的网站注册后也可以在论坛中注册?
谢谢
I have a web application with a user base. I want to add a forum, but I don't want users to register there again.
I'm using Rails/Postgresql.
Is it possible to integrate the forum so that after registering in my site, a user will also be registered in a forum?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这是可能的。更简单的方式是通过论坛集中注册和认证。
实施取决于您使用的论坛类型和网站的结构。
Yes, it's possible. The simpler way is to centralize registering and authentication through the forum.
Implementation depend of what kind of forum you use and the structure of your site.
打包的论坛应该有某种 API,当用户在您的主站点注册时,您可以使用该 API 以编程方式添加用户。如果没有,您可以自己写入表格(这风险相当大,但如果论坛软件不是极其复杂和过度设计的话,当然是可行的)。
如果论坛软件需要一些您尚未拥有的字段,您可能需要在站点注册中添加一些字段。如果真是这样,更大的挑战将是整合现有用户。您可能必须为他们使用虚拟值,或者在下次登录时提示他们提供必要的值才能完成论坛注册。
The packaged forum should have some kind of API that you can use to programmatically add a user when they register with your main site. If not, you can just write to the tables yourself (which is considerably riskier, but certainly doable if the forum software isn't ridiculously complex and over-engineered).
You may need to add some fields to your site's registration if the forum software requires some that you don't already have. If that's the case, the bigger challenge will be integrating existing users. You might have to use dummy values for them, or prompt them at their next login to supply the necessary values in order to complete their forum registration.