如何将 phpBB 与 Wordpress 集成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6122822/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:46:06  来源:igfitidea点击:

How to integrate phpBB with Wordpress

wordpresspluginsmoduleintegrationphpbb3

提问by Dijo David

Is there any way to integrate phpBB with Wordpress. I already have a wordpress blog and I need to integrate phpBB to it. I want to synchronize the user table of both phpBB and wordpress. User can access both sites by logging into anyone of the sites. Can anyone help me on this...

有什么方法可以将 phpBB 与 Wordpress 集成。我已经有一个 wordpress 博客,我需要将 phpBB 集成到它。我想同步phpBB和wordpress的用户表。用户可以通过登录任何站点来访问这两个站点。谁可以帮我这个事...

回答by Johannes Pille

You canintegrate/synchronize the user tables. There's even a plugin for that, see WP phpBB Bridge.

可以集成/同步用户表。甚至还有一个插件,请参阅 WP phpBB Bridge

As an aside: I agree that as a standalone forum, phpBB is by far the best opensource/free solution. For WP, there's also the excellent simple:pressforum. Using that instead of phpBB is definitely more future-proof, less maintenance requiring once setup and easier to optically integrate into the site. It might look pretty ugly at first, but its css is very flexible and with a bit of tinkering, you can integrate it very well.

顺便说一句:我同意作为一个独立的论坛,phpBB 是迄今为止最好的开源/免费解决方案。对于 WP,还有很棒的simple:press论坛。使用它而不是 phpBB 肯定更具前瞻性,一次设置所需的维护更少,并且更容易以光学方式集成到站点中。起初它可能看起来很丑,但它的 css 非常灵活,稍加修改,您就可以很好地集成它。

EDIT

编辑

It having just received an upvote, I revisited this answer. And it being 2 years old, I want to add that given recent decisions of the dev team, I feel less inclined to recommend simple:press over going the extra mile and integrating phpBB...

它刚刚收到一个赞成票,我重新审视了这个答案。它已经 2 岁了,我想补充一点,鉴于开发团队最近的决定,我不太愿意推荐简单的:加倍努力并集成 phpBB ...

回答by Manjit

I think BBPress Forum is best idea to integrate with wordpress. I recently integrate the BBPress Forum with one my wordpress blog. You can get guide for adding BBPress Forum from here http://www.bloggingalerts.com/2011/11/how-to-integrate-forum-with-wordpress.html

我认为 BBPress 论坛是与 wordpress 集成的最佳主意。我最近将 BBPress 论坛与我的一个 wordpress 博客整合在一起。您可以从这里获得添加 BBPress 论坛的指南http://www.bloggingalerts.com/2011/11/how-to-integrate-forum-with-wordpress.html

回答by Jhong

WP-Unitedprovides modules for both single sign-on and template integration. It does both of these automatically.

WP-United提供用于单点登录和模板集成的模块。它会自动执行这两项操作。

回答by T.Todua

i have used wp-phpbb-bridgewith these steps:

我已经通过以下步骤使用了wp-phpbb-bridge

1) after installation of the plugin, activate it;

1)安装插件后,激活它;

2) set the correct paths of phpbb directory in the plugin's settings.

2)在插件的设置中设置正确的phpbb目录路径。

3) go to Widgets and put the Phpbb Bridge Users (or which one) you need into the sidebar.

3) 转到 Widgets 并将您需要的 Phpbb Bridge 用户(或哪个)放入侧边栏中。

then the users(login or other data) will be automatically synchronized.

然后用户(登录名或其他数据)将自动同步。

this method worked for me.

这种方法对我有用。

回答by Ahmed

Ok, follow these steps exactly, this took me days to work out.

好的,完全按照这些步骤操作,这花了我几天的时间。

  1. Install wordpress and phpbb as normal.
  2. Make sure you are logged out of wordpress (otherwise you will get a gap at the top of your phpbb header, where the wordpress admin bar would go).
  3. Now go to your wordpress blog page, (when you are logged out of wordpress admin) and right click, go to view source.
  4. Copy the source from the top of the page until you see a div like page content etc (will vary on your theme), remember we just want the header.
  5. Now paste that right at the top of your your overall_header.php in your phpbb template.
  6. Now go to your phpbb admin, and go to styles, then templates, click refresh on your current template, so that the overall_header.php will be re-cached with the changes we have made.
  7. You can do the footer in the same way, copy the footer html from the wordpress page that you want to use, and add it to overall_footer.php.
  8. You can ever get the same styles by linking your css file from your blog to phpbb.
  1. 正常安装wordpress和phpbb。
  2. 确保您已退出 wordpress(否则您的 phpbb 标题顶部会出现一个空白,即 wordpress 管理栏所在的位置)。
  3. 现在转到您的 wordpress 博客页面,(当您退出 wordpress 管理员时)并右键单击,转到查看源代码。
  4. 从页面顶部复制源代码,直到您看到页面内容等 div(会因您的主题而异),请记住我们只需要标题。
  5. 现在将它粘贴到你的 phpbb 模板中的overall_header.php 的顶部。
  6. 现在转到您的 phpbb 管理员,然后转到样式,然后是模板,单击当前模板上的刷新,以便整体_header.php 将使用我们所做的更改重新缓存。
  7. 可以用同样的方法做页脚,从你要使用的wordpress页面复制页脚html,然后添加到overall_footer.php中。
  8. 您可以通过将您的 css 文件从您的博客链接到 phpbb 来获得相同的样式。

You should now be able to link to your phpbb and it will have a wordpress header.

您现在应该能够链接到您的 phpbb,它将有一个 wordpress 标题。