Ticket #1920: 1920.diff
File 1920.diff, 7.3 KB (added by , 11 years ago) |
---|
-
includes/admin/actions.php
74 74 add_action( 'bbp_new_site', 'bbp_create_initial_content', 8 ); 75 75 76 76 // Contextual Helpers 77 add_action( 'load-settings_page_bbpress', 'bbp_admin_settings_help' ); 77 add_action( 'load-settings_page_bbpress', 'bbp_admin_settings_help' ); 78 add_action( 'load-tools_page_bbp-repair', 'bbp_admin_tools_repair_help' ); 79 add_action( 'load-tools_page_bbp-converter', 'bbp_admin_tools_converter_help' ); 80 add_action( 'load-tools_page_bbp-reset', 'bbp_admin_tools_reset_help' ); 78 81 79 82 // Handle submission of Tools pages 80 83 add_action( 'load-tools_page_bbp-repair', 'bbp_admin_repair_handler' ); -
includes/admin/settings.php
1597 1613 } 1598 1614 1599 1615 /** 1616 * Contextual help for Import Forums tools page 1617 * 1618 * @since bbPress (rXXXX) 1619 * @uses get_current_screen() 1620 */ 1621 1622 function bbp_admin_tools_converter_help() { 1623 1624 $current_screen = get_current_screen(); 1625 1626 // Bail if current screen could not be found 1627 if ( empty( $current_screen ) ) 1628 return; 1629 1630 // Overview 1631 $current_screen->add_help_tab( array( 1632 'id' => 'overview', 1633 'title' => __( 'Overview', 'bbpress' ), 1634 'content' => '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.', 'bbpress' ) . '</p>' . 1635 '<p>' . __( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>' . 1636 '<p>' . __( 'Also see the main article on the bbPress codex <a href="http://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>' 1637 ) ); 1638 1639 // Database Settings 1640 $current_screen->add_help_tab( array( 1641 'id' => 'database_settings', 1642 'title' => __( 'Database Settings', 'bbpress' ), 1643 'content' => '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' . 1644 '<p>' . 1645 '<ul>' . 1646 '<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>' . 1647 '</ul>' . 1648 '</p>' 1649 ) ); 1650 1651 // Importer Options 1652 $current_screen->add_help_tab( array( 1653 'id' => 'importer_options', 1654 'title' => __( 'Importer Options', 'bbpress' ), 1655 'content' => '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' . 1656 '<p>' . 1657 '<ul>' . 1658 '<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>' . 1659 '<li>' . __( '"Convert Users" will import your legacy forum members as WordPress Users.', 'bbpress' ) . '</li>' . 1660 '<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>' . 1661 '<li>' . __( '"Purge Previous Import" will remove data imported from a failed import without removing your existing forum data.', 'bbpress' ) . '</li>' . 1662 '</ul>' . 1663 '</p>' 1664 ) ); 1665 // Help Sidebar 1666 $current_screen->set_help_sidebar( 1667 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' . 1668 '<p>' . __( '<a href="http://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' . 1669 '<p>' . __( '<a href="http://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>' 1670 ); 1671 } 1672 1673 /** 1600 1674 * Disable a settings field if the value is forcibly set in bbPress's global 1601 1675 * options array. 1602 1676 * -
includes/admin/tools.php
1305 1305 } 1306 1306 } 1307 1307 } 1308 1309 /** 1310 * Contextual help for Repair Forums tools page 1311 * 1312 * @since bbPress (rXXXX) 1313 * @uses get_current_screen() 1314 */ 1315 1316 function bbp_admin_tools_repair_help() { 1317 1318 $current_screen = get_current_screen(); 1319 1320 // Bail if current screen could not be found 1321 if ( empty( $current_screen ) ) 1322 return; 1323 1324 // Repair Forums 1325 $current_screen->add_help_tab( array( 1326 'id' => 'repair_forums', 1327 'title' => __( 'Repair Forums', 'bbpress' ), 1328 'content' => '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' . 1329 '<p>' . 1330 '<ul>' . 1331 '<li>' . __( 'BuddyPress Group Forums: <a href="http://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/">Installing Group and Sitewide Forums</a> and <a href="http://codex.buddypress.org/getting-started/guides/migrating-from-old-forums-to-bbpress-2/">Migrating from old forums to bbPress 2.2+</a>.', 'bbpress' ) . '</li>' . 1332 '<li>' . __( 'bbPress roles: <a href="http://codex.bbpress.org/bbpress-user-roles-and-capabilities/" target="_blank">bbPress User Roles and Capabilities</a>', 'bbpress' ) . '</li>' . 1333 '</ul>' . 1334 '</p>' . 1335 '<p>' . __( 'Also see <a href="http://codex.bbpress.org/repair-forums/">bbPress: Repair Forums</a>.', 'bbpress' ) . '</p>' 1336 ) ); 1337 1338 // Help Sidebar 1339 $current_screen->set_help_sidebar( 1340 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' . 1341 '<p>' . __( '<a href="http://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' . 1342 '<p>' . __( '<a href="http://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>' 1343 ); 1344 } 1345 1346 /** 1347 * Contextual help for Reset Forums tools page 1348 * 1349 * @since bbPress (rXXXX) 1350 * @uses get_current_screen() 1351 */ 1352 1353 function bbp_admin_tools_reset_help() { 1354 1355 $current_screen = get_current_screen(); 1356 1357 // Bail if current screen could not be found 1358 if ( empty( $current_screen ) ) 1359 return; 1360 1361 // Reset Forums 1362 $current_screen->add_help_tab( array( 1363 'id' => 'reset_forums', 1364 'title' => __( 'Reset Forums', 'bbpress' ), 1365 'content' => '<p>' . __( 'Also see <a href="http://codex.bbpress.org/reset-forums//">bbPress: Reset Forums</a>.', 'bbpress' ) . '</p>' 1366 ) ); 1367 1368 // Help Sidebar 1369 $current_screen->set_help_sidebar( 1370 '<p><strong>' . __( 'For more information:', 'bbpress' ) . '</strong></p>' . 1371 '<p>' . __( '<a href="http://codex.bbpress.org" target="_blank">bbPress Documentation</a>', 'bbpress' ) . '</p>' . 1372 '<p>' . __( '<a href="http://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', 'bbpress' ) . '</p>' 1373 ); 1374 } 1375 No newline at end of file