如何将用户从我的站点的登录信息集成到phpBB中? [英] How can I integrate users' logins from my site into phpBB?

查看:90
本文介绍了如何将用户从我的站点的登录信息集成到phpBB中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就修改phpBB而言,我可能需要解决一个新手问题.

I need some help with what is probably a newbie question in terms of modifying phpBB.

我有一个用PHP开发的整个系统,我想集成phpBB,以便人们可以浏览论坛并无缝发帖,而无需再次登录.

I have a whole system developed in PHP, and I would like to integrate phpBB so that people can navigate into the forums and post seamlessly, without logging in again.

现在,不幸的是,不可能使用phpBB users表作为我系统的users表(并让人们在phpBB中而不是在我的网站中注册)(重做我们的系统要比构建我们自己的系统花费更多的工作基本论坛).
我假设我可以破解phpBB,使它相信某个用户ID已登录,但是,该用户在phpBB的users表中将不存在(我认为这会导致它在很多地方出错)

Now, using the phpBB users table as the users table for my system (and having people register in phpBB instead of in my website) is not possible unfortunately (it'd take more work to redo our system than to build our own basic forum).
I'm assuming I can hack my way into making phpBB believe that a certain user ID has logged in, however, that user won't exist in phpBB's users table (which I'm assuming will cause it to error out pretty much everywhere).

我可以找到的所有教程和论坛帖子都暗示将phpBB作为主要内容.相反,我什么也找不到.

All the tutorials and forum posts I could find implied having phpBB as the primary. I couldn't find anything to do it the other way around.

我猜想解决此问题的唯一可能方法是使两个表相对同步.

I'm guessing the only possible way to solve this is by having both tables relatively synchronized.

现在,如果我可以使两个用户表都同步,那么整合两个站点的最佳方法是什么,同时将我的站点的登录名和用户表保持为主要"登录名呢?
另外,在phpBB的users表中创建记录时,有什么特别需要记住的事情吗?还是比较容易理解?如果有多个表,我应该写什么表?

Now, provided that I can have both users table synchronized, what is the best way to integrate both sites, keeping my site's login and users table as the "primary" ones?
Also, is there anything in particular I should keep in mind when creating records in phpBB's users table? Or is it relatively straightforward to figure out? What tables should I be writing to, if there is more than one?

推荐答案

这是一个老问题,所以我确定您现在已经解决了问题,但是如果您将来需要重构,则完全可以可以在phpBB3中使用身份验证插件:

This is an old question so I'm sure you've worked something out by now, but if you need to refactor things in the future, this is entirely possible with authentication plugins in phpBB3:

http://wiki.phpbb.com/Authentication_plugins

我现在正在开发一个以phpBB为辅助"系统的系统,它运行得很好.

I'm working on one now where phpBB is the "secondary" system, and it's going pretty well.

这篇关于如何将用户从我的站点的登录信息集成到phpBB中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆