PluginProbe
bbPress / trunk
bbPress vtrunk
trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.2 All 71 releases
bbpress / includes / admin / tools / help.php

help.php in bbPress trunk, at includes/admin/tools/help.php

149 lines 6.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * bbPress Admin Tools Help.
5 *
6 * @package bbPress
7 * @subpackage Administration
8 */
9
10 // Exit if accessed directly
11 defined( 'ABSPATH' ) || exit;
12
13 /**
14 * Contextual help for Repair Forums tools page.
15 *
16 * @since 2.6.0 bbPress (r5314)
17 */
18 function bbp_admin_tools_repair_help() {
19
20 $current_screen = get_current_screen();
21
22 // Bail if current screen could not be found
23 if ( empty( $current_screen ) ) {
24 return;
25 }
26
27 // Repair Forums
28 $current_screen->add_help_tab(
29 array(
30 'id' => 'repair_forums',
31 'title' => __( 'Repair Forums', 'bbpress' ),
32 'content' =>
33 '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' .
34 '<p>' .
35 '<ul>' .
36 '<li>' . __( 'BuddyPress Group Forums: <a href="https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/">Installing Group and Sitewide Forums</a> and <a href="https://codex.buddypress.org/getting-started/guides/migrating-from-old-forums-to-bbpress-2/">Migrating from old forums to bbPress 2.2+</a>.', 'bbpress' ) . '</li>' .
37 '<li>' . __( 'bbPress roles: <a href="https://codex.bbpress.org/bbpress-user-roles-and-capabilities/" target="_blank">bbPress User Roles and Capabilities</a>', 'bbpress' ) . '</li>' .
38 '</ul>' .
39 '</p>' .
40 '<p>' . __( 'Also see <a href="https://codex.bbpress.org/repair-forums/">bbPress: Repair Forums</a>.', 'bbpress' ) . '</p>'
41 )
42 );
43
44 // Help Sidebar
45 $current_screen->set_help_sidebar(
46 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' .
47 '<p>' . __( '<a href="https://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' .
48 '<p>' . __( '<a href="https://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>'
49 );
50 }
51
52 /**
53 * Contextual help for Reset Forums tools page.
54 *
55 * @since 2.6.0 bbPress (r5314)
56 */
57 function bbp_admin_tools_reset_help() {
58
59 $current_screen = get_current_screen();
60
61 // Bail if current screen could not be found
62 if ( empty( $current_screen ) ) {
63 return;
64 }
65
66 // Reset Forums
67 $current_screen->add_help_tab(
68 array(
69 'id' => 'reset_forums',
70 'title' => __( 'Reset Forums', 'bbpress' ),
71 'content' => '<p>' . __( 'Also see <a href="https://codex.bbpress.org/reset-forums/">bbPress: Reset Forums</a>.', 'bbpress' ) . '</p>'
72 )
73 );
74
75 // Help Sidebar
76 $current_screen->set_help_sidebar(
77 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' .
78 '<p>' . __( '<a href="https://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' .
79 '<p>' . __( '<a href="https://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>'
80 );
81 }
82
83 /**
84 * Contextual help for Import Forums tools page.
85 *
86 * @since 2.6.0 bbPress (r5314)
87 */
88 function bbp_admin_tools_converter_help() {
89
90 $current_screen = get_current_screen();
91
92 // Bail if current screen could not be found
93 if ( empty( $current_screen ) ) {
94 return;
95 }
96
97 // Overview
98 $current_screen->add_help_tab(
99 array(
100 'id' => 'overview',
101 'title' => __( 'Overview', 'bbpress' ),
102 'content' =>
103 '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.', 'bbpress' ) . '</p>' .
104 '<p>' . __( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' .
105 '<p>' . __( 'Also see the main article on the bbPress codex <a href="https://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>'
106 )
107 );
108
109 // Database Settings
110 $current_screen->add_help_tab(
111 array(
112 'id' => 'database_settings',
113 'title' => __( 'Database Settings', 'bbpress' ),
114 'content' =>
115 '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' .
116 '<p>' .
117 '<ul>' .
118 '<li>' . __( 'The settings in this section refer to the database connection strings used by your old forum software. The best way to determine the exact settings you need is to copy them from your legacy forums configuration file or contact your web hosting provider.', 'bbpress' ) . '</li>' .
119 '</ul>' .
120 '</p>'
121 )
122 );
123
124 // Importer Options
125 $current_screen->add_help_tab(
126 array(
127 'id' => 'importer_options',
128 'title' => __( 'Importer Options', 'bbpress' ),
129 'content' =>
130 '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' .
131 '<p>' .
132 '<ul>' .
133 '<li>' . __( 'Depending on your MySQL configuration you can tweak the "Rows Limit" and "Delay Time" that may help to improve the overall time it takes to perform a complete forum import.', 'bbpress' ) . '</li>' .
134 '<li>' . __( '"Convert Users" will import your legacy forum members as WordPress Users.', 'bbpress' ) . '</li>' .
135 '<li>' . __( '"Start Over" will start the importer fresh, if your import failed for any reason leaving this setting unchecked the importer will begin from where it left off.', 'bbpress' ) . '</li>' .
136 '<li>' . __( '"Purge Previous Import" will remove data imported from a failed import without removing your existing forum data.', 'bbpress' ) . '</li>' .
137 '</ul>' .
138 '</p>'
139 )
140 );
141
142 // Help Sidebar
143 $current_screen->set_help_sidebar(
144 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' .
145 '<p>' . __( '<a href="https://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' .
146 '<p>' . __( '<a href="https://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>'
147 );
148 }
149