bbpress 字体_如何将bbPress论坛添加到WordPress帖子中作为注释

bbpress 字体

As the comments on WPBeginner grew, we tried different solutions, like Livefyre to improve discussions on our site. Many WordPress users want to make comments on their website more social. This is why people try Facebook comments, Disqus comments and now even Google+ comments. Recently we came across a plugin that allows you to add forums to replace comments in WordPress. We liked the idea and decided to test it out. In this article, we will show you how to add bbPress forum to WordPress posts as comments.

随着对WPBeginner的评论的增多,我们尝试了Livefyre等不同的解决方案来改善我们网站上的讨论。 许多WordPress用户希望在他们的网站上发表评论更加社交化。 这就是为什么人们尝试使用Facebook评论 ,Disqus评论甚至是Google+评论的原因 。 最近,我们遇到了一个插件,该插件可让您添加论坛以替换WordPress中的注释。 我们喜欢这个主意,并决定对其进行测试。 在本文中,我们将向您展示如何将bbPress论坛添加到WordPress帖子中作为注释。

bbPress forum topics below WordPress posts as comments
为什么要在WordPress中使用bbPress进行评论 (Why use bbPress for Comments in WordPress)

Forums are a great way to build online communities. For many WordPress websites, the community building features of an online forum can not be replaced by WordPress commenting system. Similarly, a forum software can not be a replacement for WordPress. However, combining them both may result in a killer combination of lively discussions, community building, increased user engagement and more user loyalty for your website.

论坛是建立在线社区的好方法。 对于许多WordPress网站,在线论坛的社区构建功能无法用WordPress评论系统替代。 同样,论坛软件不能替代WordPress。 但是,将它们两者结合在一起可能会导致生动的讨论,社区建设, 增加的用户参与度以及对网站的更多用户忠诚度成为杀手combination。

Users can participate in forum by leaving replies to your posts or by creating topics in other discussion areas. Conversations originating from your articles can ignite multiple topics on your forum. Most importantly, when people participate in an online forum they are more likely to share it among their social circles.

用户可以通过保留对您的帖子的答复或在其他讨论区域中创建主题来参与论坛。 来自您文章的会话可以引发您论坛上的多个主题。 最重要的是,当人们参加在线论坛时,他们更有可能在其社交圈中分享它。

We understand that not every WordPress website has the audience or desire to build communities. There is so much content on the web that does not get any comments at all despite receiving significant traffic. However, if you are running a website that generates lots of comments, discussions, debates and heated arguments among your passionate readers, then you can benefit from the interactive features of an online forum embedded right into your articles.

我们了解,并非每个WordPress网站都有受众或建立社区的愿望。 网络上有太多内容,尽管收到了大量流量,但根本没有任何评论。 但是,如果您运行的网站在热情的读者中产生了很多评论,讨论,辩论和激烈的争论,那么您可以从嵌入在您文章中的在线论坛的交互功能中受益。

如何在WordPress帖子中添加bbPress主题 (How to add bbPress Topics to WordPress Posts)

First thing you need to do is to add bbPress forums in WordPress. We have a step by step guide to setting up a forum in WordPress with bbPress. Once you have installed and set up bbPress forum. Make sure you have created at least one forum. You can give this forum any name, for example: Website Discussions, Posts Discussions or anything you want.

您需要做的第一件事是在WordPress中添加bbPress论坛。 我们提供了使用bbPress在WordPress中建立论坛的分步指南。 安装并设置bbPress论坛后。 确保您至少创建了一个论坛。 您可以给该论坛指定任何名称,例如:网站讨论,帖子讨论或任何您想要的名称。

The next thing you need to do is install and activate bbPress Topics for Posts plugin. After activating the plugin go to Settings » Discussion and scroll down to bbPress Topics for Posts Defaults section.

接下来需要做的是安装并激活bbPress Topics for Posts插件。 激活插件后,转到“设置”»“讨论”,然后向下滚动至“ bbPress帖子默认主题”部分。

bbPress discussion settings

The first option in setting up bbPress topics for posts is to choose a forum where topics for your WordPress posts will be created. You can choose a forum that you created earlier, or you can choose different forum for each post manually when writing your article. If you choose a default forum, you can apply these settings to all your existing posts by clicking on Apply settings to existing posts button. This will create topics for all your existing posts in the forum you have selected.

为帖子设置bbPress主题的第一个选项是选择一个论坛,在该论坛中将为WordPress帖子创建主题。 您可以选择之前创建的论坛,也可以在撰写文章时为每个帖子手动选择不同的论坛。 如果选择默认论坛,则可以通过单击将设置应用于现有帖子按钮将这些设置应用于所有现有帖子。 这将为您选择的论坛中所有现有帖子创建主题。

You can choose whether to copy your post tags for forum topics and choose how many replies to show below each post. If you want you can show the entire topic below the post or even display the link to the forum topic so that users can discuss the post in your forum. We would recommend displaying a reasonable number of replies like 10 for each post.

您可以选择是否复制论坛主题的帖子标签,并选择在每个帖子下方显示多少回复。 如果您愿意,可以在帖子下方显示整个主题,甚至显示论坛主题的链接,以便用户可以在您的论坛中讨论帖子。 我们建议为每个帖子显示合理数量的回复,例如10。

Now if you chose a default forum to create topics for posts, the plugin will automatically create a topic for a post you publish. It will also display latest replies to that topic with a topic reply form at the bottom of your posts.

现在,如果您选择默认论坛来创建帖子主题,则插件将自动为您发布的帖子创建主题。 它还会在您的帖子底部显示一个主题回复表单,以显示对该主题的最新回复。

bbPress replies and topic reply form

If you did not choose a default forum on the discussion settings page, then you can still create a topic for each post manually from the post edit area. On the post edit screen click on Screen Options fly-down menu at the top right corner and check the discussion box. Scroll down to the bottom of the post edit area, and you will see discussion box that allows you to enable or disable comments and trackbacks for individual posts. There will be a new option to create a forum topic for this post.

如果您没有在“讨论设置”页面上选择默认论坛,那么仍然可以从帖子编辑区域为每个帖子手动创建一个主题。 在帖子编辑屏幕上,单击右上角的“屏幕选项”下拉菜单,然后选中讨论框。 向下滚动到帖子编辑区域的底部,您将看到“讨论”框,该框允许您启用或禁用单个帖子的评论和引用。 将有一个新选项为该帖子创建一个论坛主题。

bbPress forum settings in discussion box on post edit screen

If you are using bbPress forums as a replacement for comments, then you might want to turn off comments on your site. To do that go to Settings » Discussion and uncheck the box that says Allow people to post comments on new articles. This will disable comment form to appear on any new articles you add. However, people can still post comments to older articles. To turn off comments on all articles you can run this SQL query using phpMyAdmin.

如果您使用bbPress论坛代替评论,则您可能要关闭网站上的评论。 为此,请转到“设置”»“讨论”,然后取消选中“ 允许人们对新文章发表评论”的框。 这将使评论表单无法显示在您添加的任何新文章上。 但是,人们仍然可以对较旧的文章发表评论。 要关闭所有文章的注释,可以使用phpMyAdmin运行此SQL查询。

Note: You must always backup your database before making any direct changes to it.

注意:对数据库进行任何直接更改之前,必须始终备份数据库


UPDATE 'wp_posts' SET comment_status = 'closed' ;

This query updates posts table in your database and sets comments to be closed on all posts. Please note that if you are not using the default wp_ prefix for your database, then your posts table may have a different prefix so you would need to change posts table name.

此查询更新数据库中的帖子表,并将所有帖子的评论设置为关闭。 请注意,如果您的数据库没有使用默认的wp_前缀,则posts表可能具有不同的前缀,因此您需要更改posts表名称。

What do you think about the idea of using bbPress forums to replace WordPress comments? For questions and feedback you can reach us on Twitter or leave a comment below.

您如何看待使用bbPress论坛替换WordPress注释的想法? 对于问题和反馈,您可以在Twitter上与我们联系或在下面发表评论。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-add-bbpress-forum-wordpress-posts-comments/

bbpress 字体

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在WordPress上搭建一个论坛,你可以使用插件来实现。以下是基本步骤: 1. 安装WordPress:首先,确保你已经安装了WordPress。你可以从官方网站 https://wordpress.org 下载最新版本,并按照说明进行安装。 2. 选择一个论坛插件:WordPress有很多论坛插件可供选择。其一些流行的插件包括bbPress、BuddyPress和Simple:Press。你可以在WordPress插件目录搜索并安装适合你的插件。 3. 安装并激活插件:进入WordPress后台管理界面,导航到“插件”>“安装插件”,然后搜索你选择的论坛插件。找到对应的插件后,点击“安装”按钮进行安装,然后再点击“激活”按钮启用插件。 4. 配置论坛:每个论坛插件都有自己的配置选项,可以根据你的需求进行设置。通常,你需要设置论坛的外观、用户权限、帖和回复的显示方式等。 5. 创建论坛页面:一旦插件配置完成,你需要创建一个用于显示论坛的页面。通常插件会自动生成一个默认页面,你可以在“页面”>“添加新页面”查找并编辑该页面。在编辑页面时,可以使用短代码或页面构建器来插入论坛组件。 6. 设置访问权限:如果需要限制访问论坛的权限,可以使用插件提供的用户角色和权限控制功能。这样可以确保只有授权用户才能访问和参与讨论。 7. 发布并测试论坛:完成以上步骤后,点击“发布”按钮将论坛页面发布到前台。然后,你可以访问你的网站,并测试论坛的功能、用户注册、发表帖和回复等。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值