配置 bbPress

配置 bbPress

启用后,bbPress 会将菜单项添加到 WordPress 后端菜单。这些是:

  1. bbPress 创建三种自定义文章类型并将它们添加到导航菜单:论坛、话题和回复。使用这些菜单项来创建和管理您的论坛。
  2. 在设置 > 论坛中找到的子菜单。自定义这些设置以更好地控制 bbPress 。

这些指南将帮助您配置和设置一切。

创建内容

这将帮助您为 bbPress 站点创建论坛、话题和回复等内容。

论坛设置

这将帮助您为论坛配置 bbPress 设置。

支持论坛

支持论坛

此页面是支持论坛的欢迎信息 。本介绍旨在帮助您在论坛中找到自己的方式,并希望让您尽快入门。 bbPress 支持论坛将遵循 WordPress 支持论坛制定的相同规则和准则。请阅读这两页以熟悉这些指南。使用支持论坛和  论坛欢迎

欢迎论坛志愿者

感谢您花时间在 bbPress 论坛上提供支持。请注意,WordPress 支持论坛中设置的规则和指南也适用于此处。以下文档将帮助您浏览我们的论坛。

1. 论坛欢迎 ——本文档部分针对那些在论坛上寻求支持的人,但包含有关帮助、何时可以删除或关闭话题以及报告线程等的信息。除非问题特定于 WordPress,否则请忽略邮件列表信息。

2. WordPress 支持手册 ——其中包含大量文章,可帮助您为 「WordPress 方式」 提供支持。您可能想先阅读的一些文章:

论坛版主

感谢您接受邀请成为我们支持论坛的版主 ????

请花点时间阅读上面和下面的推荐文章,重新熟悉我们的论坛规则。如果您有任何问题或建议,请随时联系 bbPres 核心团队。

附加参考:关于提问的公认约定

阅读下面的这份文档是值得的,它可以作为在论坛和列表上提问的正确方法的入门指南。虽然它的目标是将海报作为指导如何表现和形成一个将获得积极响应的问题,但它对所有人都非常有用,并被视为 RFC:
如何以聪明的方式提出问题

系统和服务器要求

系统和服务器要求
  • 已安装 WordPress
  • PHP 5.2.4 或更高版本 (推荐:PHP 7 或更高版本)
  • MySQL 5.0 或更高版本 (推荐:MySQL 5.6 或更高版本或 MariaDB 10.0 或更高版本)
  • Apache 模块 mod_rewrite 为 「漂亮的永久链接」 启用
  • HTTPS 支持

bbPress 的要求基本上与 WordPress 完全相同,因此如果您运行的是最新版本的 WordPress,则可以运行 bbPress 。

有关 WordPress 要求的列表,请访问 WordPress 要求

Step by step guide to setting up a bbPress forum – part 5

Step by step guide to setting up a bbPress forum – part 5

Step by step guide to setting up a bbPress forum – part 5
Codex Home → Step by step guide to setting up a bbPress forum – part 5
1. Using  Filters
Actions and Filters add a powerful way that you can alter how bbPress (and of course WordPress) work.
For the newcomer to WordPress, they are also probably one of the hardest areas to understand and to find information on. This tutorial tries to demystify some of this area, and help newcomers code those changes that will make their site work how they wish.
Part 4 dealt with 『actions』, this section deals with 『filters.』
It does repeat some of the initial text in Actions as it is applicable to both.
2. Introduction.
If you are familiar with functions and filters, you』ll probably not need to read much of this article, but I presume if you』re here, then like me you see snippets and 『brief』 explanations that get you to the stage where you are pretty sure what you want can be done, but can』t quite work out the exact way or get it to work.
So at this stage, make a cup of coffee, shut the kids out of the room, and I』ll try and take you through what I have learnt so far about filters.
If you can improve either the explanation, correct any errors I have made, or help in any other way, just post a topic on 「requests and feedback」 on the support forums, and I』ll pick it up.
3.  Filters
If actions ADD stuff at a particular point (see part 4 ), Filters are a way to ALTER what is being displayed (typically which bits of data or the format/order) at a particular point, without needing to change the code in the file.
This can be very handy if

the data is displayed in multiple places (eg the way an author name is displayed) – you change it once for all occurances
the file you want to alter is in the core of the code, so you don』t want to change the original file
You start to write plugins for others to use – filters let you alter lots of coding without touching the actual php files

So in essence think of it that actions add and filters alter.  But what does  a filter actually filter?  Well it filters a function, so we need to understand functions before we move forward
4. An explanation of functions
A function is a bunch of code that when combined does something.  In WordPress, functions are used to both hide complexity,  save repeating endless lines of code all over the place, and improve manageability.
So in bbpress the lines of code that go to the database, and fetch the identity of the author of a post is all put into a function  called  bbp_get_reply_author_id.  Anytime we want to do this, we can just quote that function, and save ourselves using many lines.  And if the guys behind bbPress want to change how that works, they do it just once and all the instances that use this then use the new function.
So lets create a simple function (we』ll get to some real bbPress examples later!)
function hello () {
$text="Hello Robin" ;
echo $text ;
}
Line 1 creates the function
Line 2 sets a variable of $text to Hello Robin
Line 3 writes that text to the screen
Then whenever called within a wordpess php file eg
hello () ;
it will write the result.
We might put this function in our functions.php file, or put it within a plugin.
Now bbPress is a plugin, and in bbPress there are hundreds of functions in many locations.
So imagine that someone else has written the 『hello』 function above and buried this function in in their plugin, and that this function is used in many places. However you don』t want it to say 「Hello Robin」 but 「Hello Fred」. Now you could find the function within the plugin and alter the code in the file, but on any upgrade of the plugin, you』ll lose the changes. So it would be better if you could just alter that variable $text, and filters offer a way to do that.
5. Not all functions are filterable
The above function cannot be filtered as it has not been written to allow this – hopefully all the functions you will come across have been – so let』s re-write it to be filterable.
function hello () {
$text="Hello Robin" ;
$text=apply_filters('hello',$text) ;
Echo $text ;
}
Line 3 has been added. In essence it says that if a filter exists, then substitute the value of $text in that filter to the function.
So now if we create a filter and add a function to it that changes $text, whatever value of $text is in that filter replaces the original value of $text in the function. So we can make 「Hello Robin」 become 「Hello Fred」 without altering any code.
So lets create a filter for this.  As with actions, we do this by creating a function.
So the original code above is buried in someone else plugin. Our new code will sit in our functions file or in a plugin, and alter the effect of that original code, changing $text=」Hello Robin」 to $text=」Hello Fred」.
So the resultant code looks like
//function to change 'Hello Robin' to 'Hello Fred' in 'hello' function
function called_anything () {
$text="Hello Fred" ;
return $text ;
}
add_filter('hello','called_anything') ;
So lets run through this.
5.1 Names
First let』s deal with naming
We are creating a function, and functions can be called anything.  However every function (and there are thousands of them in there already) MUST have a unique name across your website.  Given that you have the core wordpress and probably lots of plugins, it is important that you don』t create a duplicate name.  Calling it something like in my case 『robin_w_hello』 would probably make it pretty unique.
Adding a comment line at the start of your function to remind you what this is doing is also important, as you』ll never remember what this bit does when you start to have lots of these in your files.
5.2 Bringing in variables
In line 1 we called our function using function called_anything () .  The () is the area in which to put any variables we want to bring into our function.  So if I wanted to alter $text rather than replace it, I』d put it into the () so that it was brought in ie function called_anything ($text). In this case I could then  use some string manipulation to say strip the hello from the front.  So if you want to manipulate data from the core function import them here.
5.3 Return the data
Line 3 includes a return command.  This ensures that the data is passed back to the main function.  If omitted, then any variables you were planning to change will be blank, and therefore not show.
5.4 Add_filter &  Remove filter
In the last line we add a filter to 『hello』  named 『called_anything』
In this case we are adding filter. There is another command called remove_filter for removing a filter – useful if someone else』s plugin has a filter that makes a change you don』t want.
6. The apply_filter can have a different name from the function !
Ok so if you are not going mad by now, you are applying a filter with a name to your function, not applying a filter to your function』s name. So that apply_filter can have a different name from your function, and indeed you can have several filters in a function.
So whilst we had a line above in our function 『hello』 saying
$text=apply_filters('hello',$text) ;
the 『hello』 bit of 「apply_filter(『hello'」 is the name of the filter, and could be anything (or rather anything unique to your site!)
So whilst no one would actually write a function this way, we could have
function hello () {
$text1="Hello Robin" ;
$text1=apply_filters('hello_change1',$text) ;
$text2="goodbye Robin" ;
$text1=apply_filters('hello_change2',$text) ;
Echo $text1.$text2;
}
Now I wouldn』t tell you this unless you needed to know it, so you will frequently find filters in wordpress and bbPress are not the same as their function name. Indeed we will see later on that they are quite often different, but have a logic to them, which once known means that you can work it out.
7. Creating a filter for an array
An array is a set of data held within a single data name
So for instance
$data = array(
「name」 => 「Robin」,
「age」 => 「21」,
);
The array $data now contains both my name and my age.
Most bbPress functions create arrays, as they use multiple data, so lets create a function that has an array, and outputs some data
function hello () {
$data = array(
'name' => 'Robin',
'age' => '21',
'text' => ' years old.',
);
$data=apply_filters('hello',$data) ;
echo $data['name']." is ".$data['age'].$data['text'] ;
}
Calling hello() in a php file will cause the result
「Robin is 21 years old.」
Let』s say we want to change the wording to say 「Robin is 21 years young.」
So we need to alter the $data[『text』] to say 」 years young.」
So we will write a function to do that, and the add a filter to implement it
The result looks like this
//this adds a filter to change $data['text'] to ' years young'
function called_anything ($data) {
$data ['text'] = ' years young.' ;
return $data ;
}
add_filter('hello','called_anything') ;
Let』s run through that
If we just had 『function called_anything()』 then anything we change we will reset the entire array, so we need to 『bring in』 the current values. 『called_anything ($data)』 brings across the array into our new function.
The second line changes the 『text』 value, and the third line returns the new array back to the original function
So now the array looks like
『name』 => 『Robin』,
『age』 => 』21』,
『text』 => 『 years young.』,
and the output will be 「Robin is 21 years young」 – job done !
So now we』re ready to look at some real bbPress examples.
8. Finding the code
So where is the code that we need to look at?
This is of course the first issue with bbPress (as with any other part of WordPress) – finding out what file needs to be altered.
For bbPress, all the critical template files (the most likely you』ll want to alter) are held in the folder
Wp-content/plugins/bbpress/tempaltes/default/bbpress
Whilst many of the names give a good clue to what they do, you』ll probably need to delve into a few before you find the one you want.
I plan to make a list of these templates and what they do if/when I work it out!
But let』s start from the point where you have got something displaying in WordPress that you want to alter. You have found the template file that covers this, and within that you have a function that is displaying the data that you want to alter or alter the display of.
So we』ll need to create a filter.
9. Where to add filters
In this tutorial, we』ll generate the code you need, but obviously that code needs to go somewhere. So where do we put it?
We add actions or filters either to the functions file, or create them as a plugin.
Both methods have their uses.
If you like using plugins, then they』re a good way to add changes, and work well if you have a number of sites, as the plugin is easily uploaded to each. But they do require a bit more knowledge to code. But google the subject and you』ll find lots of help on creating one. Then just put the code into it, and upload to your site.
The alternate is to use a functions file. As you are now at the 「advanced」 stage of using WordPress, you should either be developing your own themes, or using a Childtheme to store the specifics.
If you still just have a main theme from someone else (eg a wordpress default theme, a free theme or a premium theme), then you should create a childtheme. This simply uses the main theme, and the you can add your tweaks to the childtheme. Then if the main theme is updated, you tweaks in the childtheme are not overwritten. For help on creating a childtheme google 「child theme wordpress video」 and you』ll find lots of demonstrations. If someone has built a site for you, it may already be a in a child theme, and again the video』s will let you see whether this is the case.
Within our childtheme, we』ll put a functions.php file, and the actions and filters we set up will go in there.
10. Example of code we can alter
So to start to understand what we need to do, lets have a look at something we might want to change
In the forums display we have a count of topics and replies next to each forum viz :

Let』s say we want to remove these counts and make it look like

Now we could do this by altering the template that does this. In fact the codex has a page Layout and functionality – Examples you can use . Section 2 shows how to change this by altering a template called loop-single-forum. But if we alter that template, then we will need to store it in a different place so that it is not overwritten by later updates. This can be quite easily done, and there is no reason why you shouldn』t do this, but adding a filter is an equally valid alternative.
So where to start?
Well let』s start by summarising what we are going to do, then you can follow the steps.
a) look at the templates to find which one has the function we want to alter
b) look at the codex to see if that function is there
c) if it is then we can see the arguments,
d) if not, then we』ll need to look for the function definition
e) and then code the filter
Looks easy(ish), but it』s a bit like being a detective, you have to follow the clues.
a) Well we start by finding out that bbPress stores all the main 「display」 areas of the plugin in a template folder held at
wp-content/plugins/bbpress/templates/default/bbpress
I plan to have a list of which templates do what, but for the moment it』s really a case of intelligent guesswork and lots of opening files and examining. Typically anything with lists in it will be running a loop (going through a list), so loop-something is a good bet.
So since we are loking at a list of forums, we loom at the templates that have loop and forum. At some stage we open loop-single-forum and in there we see a progression from forum title, forum description, sub-forums, and then some topic, reply and freshness counts.
Click here to see the file – opens in a new window so you can switch between this and the code.
The sub-forum list part on line 30
bbp_list_forums();
looks like a likely candidate, so let』s look at that. We』ll do that next.
b) So lets look at the codex to see what is written about this function. Go to the documentation (this section) and select any article – you』re actually reading this one, so that』s fine. On the left hand side you』ll see a 「related」 area. You』ll need to scroll back up from this article to see it. Look down the list for the function – in this case 『bbp_list_forums』, and it』s listed (not all are – yet!)
Open this up and you』ll see that it lists the arguments (again not all do yet, so see d) below if yours is not there.

Within this are 「show topic count」 and 「show reply count」, and you』ll see that they are set to 「True」 – setting these to false should hide the detail.
You』ll also see a line saying 「To filter this array use add_filter(『bbp_before_list_forums_parse_args』, 『your_filter_name)」 – so that』s the filter we need. As we said earlier, the filter name may well be different to the function name. So bbp_list_forums uses 『bbp_before_list_forums_parse_args』 to alter the array. (In fact there is a further filter in this function which does have the function name, but we』ll ignore that for the moment!)
So we』ll create a function to change the topic and reply values to false so that they don』t display and add a filter to implement it.
The data is held in an array, so we need to use the code for that.
So lets start with the function
function hide_forum_counts ($args = array() ) {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
return $args;
}

Then we』ll add the filter
add_filter ('bbp_before_list_forums_parse_args','hide_forum_counts') ;
This code will go in our functions file (or as a plugin).
d) But what if the codex doesn』t show the filter? How do we find what filter to use?
Ok, we can work this out. We』ll start as before with bbp_list_forums. We need to fund where that function is defined.
Now all the functions used in the templates wp-content/plugins/bbpress/templates are held in 5 template folders that are located as follows :
wp-content/plugins/bbpress/includes/forums/template.php
wp-content/plugins/bbpress/includes/topics/template.php
wp-content/plugins/bbpress/includes/replies/template.php
wp-content/plugins/bbpress/includes/users/template.php
wp-content/plugins/bbpress/includes/search/template.php
As we are listing forums, we could take a bet that it will be in wp-content/plugins/bbpress/includes/forums/template.php (which it is), but if you had no clue, then download the plugin to your PC, extract it to a directory, and use your PC』s serach function to find it. But do search for 『bbp_list_forums』 not 『bbp_list_forums()』 as bbPress functions will normally have arguments, so the () will contain stuff, and your search will produce a nil return!
So we find wp-content/plugins/bbpress/includes/forums/template.php
and open it up. Inside we see on line 744
function bbp_list_forums( $args = '' ) {
and way down on line 801
echo apply_filters( 'bbp_list_forums', $r['before'] . $output . $r['after'], $r );
so we』d think that the filter we want to add is to 「apply_filters( 『bbp_list_forums'」. But no, this filter is after all the function has happened. We simply want to change a couple of the input parameters.
At the beginning of the function we find :
// Parse arguments against default values
$r = bbp_parse_args( $args, array(
'before' => '<ul class="bbp-forums-list">',
'after' => '</ul>',
'link_before' => '<li class="bbp-forum">',
'link_after' => '</li>',
'count_before' => ' (',
'count_after' => ')',
'count_sep' => ', ',
'separator' => ', ',
'forum_id' => '',
'show_topic_count' => true,
'show_reply_count' => true,
), 'list_forums' );

This is a common format throughout bbPress, and indeed is similar to a function used throughout wordpress.
It uses a function called 『bbp_parse_args』 to create a filter against all the arguments.
The filter created is in the format 「bbp_before_」 followed by X followed by 「_parse_args」 The X is the third argument from the bbp-parse_args function – if you look at the code aboave you』ll see that it is actually
bbp-parse_args ($args, Array(...), 'list_forums' )
so in the last line we see 『list forums』 which is the X above . In practice this is the function without the bbp start bit.
so an array filter for bbp_list_forums is 『bbp_before_list_forums_parse_args』
and for say bbp_get_topic_pagination would be
bbp_before_get_topic_pagination_parse_args
Ok, so that』s a long explanation, that will need you to read several times, and I』ll add some more examples as I progress.
As said above, any feedback or clarity needed, post a topic at
requests and feedback

启动前检查清单

启动前检查清单

向全世界发布 bbPress 是一件大事,需要很多手动步骤才能确保所有人都能安全舒适地进行更新和升级。以下是核心团队在每个新版本中执行的步骤。

  1. 在 codex 上编写发布版本页面 (即 https://codex.bbpress.org/releases/version-2-5-5/)
  2. 将新版本页面添加到 codex Releases 页面 (https://codex.bbpress.org/releases/)
  3. bbpress.php 中的冲突版本 (插件标题)
  4. src/bbpress.php 中的冲突版本 (插件标题 + $this->version (setup_globals()))
  5. 在 src/bbpress.php ($this->version (setup_globals())) 中修改数据库版本
  6. 开发主干/src readme.txt 中的冲突版本
  7. 在开发主干/src readme.txt 中插入稳定标签
  8. 在 readme.txt 中为该版本添加新的升级通知
  9. 向 dev svn 存储库提交碰撞
  10. 如果这是一个主要的 xy 版本,从主干创建 dev 分支
  11. 导出 dev 分支部署分支
  12. 从 dev 分支创建部署标签
  13. 更新 wp.org 主干中的 readme.txt,包括 stable 标签。该版本现已上线。

现在您已经标记了一个新的 bbPress 版本,是时候向全世界宣传它了!

  1. 在 bbpress.org 上写一篇博文
  2. 在 bbpress.org 的下载页面中更新版本号。
  3. 在 bbpdevel.wordpress.com 上写一篇博文
  4. bbpress.org/forums 中的论坛公告

快完成了!

  1. 在 bbpress.php (2.1-alpha) 中将开发主干提升到 alpha
  2. 在 bbpress.php (2.0.1-alpha) 中凹凸新创建的 dev 分支
  3. 同步部署主干和开发主干
  4. 更新 https://codex.bbpress.org/releases/

GlotPress 翻译字符串

  • bbPress 的翻译由 GlotPress 处理
  • 开发字符串在这里 https://translate.wordpress.org/projects/wp-plugins/bbpress
  • bbpress.pot 的来源 https://bbpress-i18n.svn.wordpress.org/pot/trunk/bbpress.pot
  • 通过运行 grunt release 和推送到 https://plugins.svn.wordpress.org/browser/bbpress/trunk/ 的定期更新将使 #Polyglots 翻译人员感到高兴
  • 当新版本临近时,这也允许相对容易的 「字符串冻结」
  • 注意:以上两行不影响 bbPress,而 bbpress.pot 保留在 bbpress-i18n.svnrepo 中。

函数文件和子主题 - 解释!

函数文件和子主题 - 解释!

创建子主题和函数文件

许多 wordpress 和 bbpress 支持答案告诉您将一些代码添加到您的函数文件或 style.css 但是什么是函数文件,什么是 style.css 文件 - 我如何创建它们以及将它们放在哪里?

本教程希望回答所有这些问题以及更多问题!

什么是函数文件?

函数文件只是一个名为 Functions.php 的文件,它位于您的主题中。这使您可以向 wordpress 和 bbpress 添加其他功能,而无需更改这些文件中的代码。如果您更改 bbpress 和 wordpress 中的代码,它可能会在任何更新时被覆盖,并且您将丢失它。

现在由于函数文件属于主题,它同样有可能在主题升级时被覆盖,因此出于这些原因,最好的做法是创建一个子主题 (如果您还没有),并在其中放置一个函数文件。

什么是 Style.css 文件?

每个主题都有一个 style.css,但插件也可以添加额外的样式文件。这些文件共同决定了页面的外观,例如元素在页面上的位置,是否有任何填充以使其与其他文本分开,文本应该是什么字体、颜色和大小,各种标题的样式等. 样式文件也可以隐藏东西,所以有时我们可能会建议您将元素更改为 'display:none' 以便它被隐藏。与函数文件一样,样式文件可能会被主题或插件升级覆盖,因此不建议为不是您自己编写的主题或插件帽更改这些文件。因此,与函数文件一样,最好的做法是创建一个子主题 (如果您还没有),并且为此您将拥有一个用于该主题的 style.css 。

我已经有子主题了吗?

所以首先我们需要看看您的主题是什么,是父主题还是子主题。如果它是父主题,那么您应该创建一个子主题,将函数文件添加到该子主题并将您的更改放在那里。如果您更改父主题中的任何文件,您可能会在更新或升级时丢失更改。所以您不想改变父主题文件。

您的 wordpress 主题

首先,您的 wordpress 安装将使用 「主题」——这是一组文件,用于设计您的网站 (外观) 并添加一些功能 (如何运行) 。

您可能正在使用 「默认主题」20 、 21 、 21 、 23 和 24 之一。这些主题由 wordpress 团队编写和维护,所有 wordpress 和 bbpress 代码都针对这些主题进行测试以确保其正常工作。这就是为什么经常要求您使用 「默认主题」 测试 bbpress 问题的原因,作为调查过程的一部分。

或者,您可能正在使用 「免费主题」 。其中许多都可以在 https://wordpress.org/themes/ 上找到  。

第三,您可能正在使用付费主题。这些往往更复杂,并提供很多好东西,但与 bbpress 的集成可能更复杂。如果 bbpress 对您的网站很重要,则值得在购买之前检查您的付费主题是否积极支持 bbpress 。大多数主题可以通过一些调整与 bbPress 一起使用,但最初让它运行并且看起来很棒真的很令人沮丧。

最后,您可能正在使用子主题。很简单,这是一个主题,它使用上述之一 (默认主题、免费主题或购买的主题) 作为基础,然后进行了更改。如果您花钱请人为您创建或定制一个站点,那么它很有可能是一个子主题。

那么您怎么知道您在使用哪个?

最快的方法是进入

仪表盘> 外观> 主题

您将看到站点上安装的主题列表,您将看到列出的第一个主题是 「活动的」,这就是您的站点正在使用的主题。

如果您将鼠标悬停在活动主题上,它将显示 「主题详细信息」,如果您单击它,您将获得有关该主题的一些信息。

如果它是由 「wordpress 团队」 提供的,那么您就会知道它是默认主题。否则进入 https://wordpress.org/themes/并搜索它。如果它在那里,那么它是一个免费的主题。最后,如果您在 google 上搜索主题名称,您应该找到一个卖家,或者至少提供一些支持细节,告诉您其他人已经编写了这个主题。

如果其中任何一个显示,那么您的父主题在其他地方得到支持,并且它们可能会发布更新,因此如果您更改其中的任何文件,您可能会在更新或升级时丢失更改。所以您不想改变这些文件。

如果您无法通过上述任何一种方法找到您的主题,或者您知道有人专门为您更改了主题,那么很可能这是一个子主题,因此不应由任何外部人员更新,因此您应该能够无所顾虑地进行更改。

所以最后的测试是检查您的主题是否已经是子主题,我们将准备继续。所以现在您需要能够进入 FTP,并将文件传输到您的 PC,以便您可以查看它以阅读标题。

什么是 FTP 以及如何访问它?

要访问您的文件,您需要一个 FTP 客户端。一些主机提供商在其管理范围内进行处理,如有疑问,请咨询您的主机提供商。

否则,您需要将程序加载到您的 PC 上。有几种可用,但最受欢迎的一种称为 「Filezilla」 。

要了解如何下载此程序并在您的 PC 上使用它,以下视频将有所帮助

http://www.youtube.com/watch?v=Wtqq1Mn1ltA

还有很多其他教程 - 只需谷歌 「filezilla 教程视频」

其他 FTP 程序也可用,只需谷歌 「FTP 客户端」

要访问您的网络文件,您需要三项信息:

  • 主持人
  • 用户名
  • 密码

注意:FTP 用户名和密码与您的 wordpress 登录名/wp-admin/admin 详细信息完全分开。

您的主机提供商通常会在您的管理区域中列出它,因此只需四处寻找 FTP,如果有疑问,请联系您的主机提供商。

然后跟着教程

https://make.wordpress.org/training/handbook/theme-school/child-themes/

或查看视频

https://www.youtube.com/watch?v=yDPbCV5_2Cw

如果您的主题如步骤 2 所示导入了另一个主题,那么您已经有了一个子主题。

如果没有,上面的教程将向您展示如何制作一个。

最后,您将拥有一个带有 style.css 文件的子主题

使用记事本++更改代码

由于您将要创建或更改文件,因此您需要有人来执行此操作。可以使用普通的记事本,但大多数情况下您将无法阅读,并且您会弄得一团糟。

所以从 http://notepad-plus-plus.org/下载 Notepad++

它易于使用,而且更好!

将函数文件添加到您的子主题

如果您已经有一个子主题,那么您可能已经有一个函数文件,只需在您的主题文件夹中查找一个名为 functions.php 的文件即可。

如果不是,您将需要创建一个函数文件。

只需打开记事本++,创建一个新文件并放入

 <?php

在开始时。现在将其保存为 functions.php 并将其上传到您的主题。就是这样。您现在有了一个函数文件!

将代码添加到函数文件

好的,现在当您看到 「将其添加到您的函数文件」 时,您就会知道您需要使用 FTP 将当前的函数文件下载到您的 PC 上。然后使用记事本++将代码复制到函数文件的末尾。然后使用 FTP 将修改后的文件上传回您的站点以覆盖旧文件。

将样式添加到 style.css

由于您现在将 style.css 作为子主题的组成部分,您可以向该文件添加任何更改。

 

 

就是这样……!!

安装 bbPress

安装 bbPress

建议您在安装 bbPress 之前进行备份,并且请花点时间查看将在您的站点上安装的内容以及在您的服务器上运行 bbPress 的要求。完成所有这些之后,在您的站点上安装 bbPress 相对容易。因此,请阅读以下指南并按照当前站点设置的分步说明进行操作。

单站点安装

对于只有一个站点并希望在其上安装 bbPress 的用户。默认情况下,您的论坛很可能会在 yoursite.com/forums 上看到,「yoursite,com」 是您的站点域名。

多站点安装

对于拥有站点网络并希望安装 bbPress 的用户。

升级 bbPress

从以前或未来的版本升级 bbPress 需要任何帮助吗?

删除 bbPress

想要删除 bbPress 及其所有数据 ???? 吗?

Feature Plugins Tracking

Feature Plugins Tracking

Feature Plugins Tracking
Codex Home → Feature Plugins Tracking
Here are some bbPress plugins that we think are could enhance your forums and that we may consider adding to the core of the bbPress plugin.
You should also search through our plugin section here. If what you are looking for is not listed in the featured plugins below please note that since the latest version of bbPress is now a plugin of WordPress , that if a WordPress plugin does not mention bbPress or tag bbPress that doesn』t mean it』s not compatible with bbPress. For example any anti-spam plugin like Akismet , or any social registration/simple registration plugin in the WordPress repository should work fine with bbPress.
_______________
Legend:
(U) – Link to trac ticket where this or similar functionality is being under consideration/discussed
(X) – might not work/ might need to be forked
(C) – Link to trac ticket where it is planned for Core
_______________

bbPress – Numeric ID Permalinks
bbPress – Topic Lock
bbPress – Topic Count (C)
bbPress – Last Post (U)
bbPress – Canned Replies
bbPress – Notices
bbPress – Private Replies
Voter Plugin
WP ULike
bbPress – Ajax Replies and bbPress – Ajax Topics
bbPress – Additional Shortcodes
bbPress – Attachments (U)
bbPress – Tools (U)
bbPress – Quotes or bbPress – Direct Quotes (U)
bbPress – Avatar or Basic User Avatars
bbPress – Forum Redirect
bbPress – Report Abuse or bbPress – Report Content
bbPress – Ignore User
bbPress – Polls
bbPress – Messages
bbPress – HashBuddy
bbPress – Live Preview (U)
bbPress – Spam Cleaner (U)
Razz BBPress Suspension (U)
bbPress – Topics for Posts (C)
bbPress – user online status (U)
bbPress – Topic Subscribers

bbPress – Support Forums (U)

Buddy-bbPress Support Topic
EDD bbPress Support Dashboard
bbResolutions (GitHub)
bbPress – VIP Support (X) (GitHub fork with updates here, and here)
bbPress – Simple Support

bbPress – Unread / Mark as Read plugins (U)

bbPress – Pencil Unread
bbPress Go To First Unread Post
bbPress – Mark as Read
bbPress Unread Posts (forked version 2 of plugin here )
bbPress New Topics
djb bbPress last read plugin (X)

_______________
This is just plugins to highlight for bbPress plugin/theme developers that have specific features for the development of bbPress.
bbPress – Development

bbPress – Slack Integration
bbPress – Monster Widget
Buddy-bbPress Visual Hooks
Query Monitor with Query Monitor bbPress & BuddyPress Conditionals
Debug Bar with Debug Bar bbPress