bbp_admin_settings_help

Contextual help for Forums settings page.

Description

bbp_admin_settings_help(); 

Usage

  1. if ( !function_exists( 'bbp_admin_settings_help' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_admin_settings_help(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/settings.php  
  1. function bbp_admin_settings_help() { 
  2.  
  3. $current_screen = get_current_screen(); 
  4.  
  5. // Bail if current screen could not be found 
  6. if ( empty( $current_screen ) ) 
  7. return; 
  8.  
  9. // Overview 
  10. $current_screen->add_help_tab( array( 
  11. 'id' => 'overview',  
  12. 'title' => __( 'Overview', bbpress ),  
  13. 'content' => '<p>' . __( 'This screen provides access to all of the Forums settings.', bbpress ) . '</p>' . 
  14. '<p>' . __( 'Please see the additional help tabs for more information on each indiviual section.', bbpress ) . '</p>' 
  15. ) ); 
  16.  
  17. // Main Settings 
  18. $current_screen->add_help_tab( array( 
  19. 'id' => 'main_settings',  
  20. 'title' => __( 'Main Settings', bbpress ),  
  21. 'content' => '<p>' . __( 'In the Main Settings you have a number of options:', bbpress ) . '</p>' . 
  22. '<p>' . 
  23. '<ul>' . 
  24. '<li>' . __( 'You can choose to lock a post after a certain number of minutes. "Locking post editing" will prevent the author from editing some amount of time after saving a post.', bbpress ) . '</li>' . 
  25. '<li>' . __( '"Throttle time" is the amount of time required between posts from a single author. The higher the throttle time, the longer a user will need to wait between posting to the forum.', bbpress ) . '</li>' . 
  26. '<li>' . __( 'Favorites are a way for users to save and later return to topics they favor. This is enabled by default.', bbpress ) . '</li>' . 
  27. '<li>' . __( 'Subscriptions allow users to subscribe for notifications to topics that interest them. This is enabled by default.', bbpress ) . '</li>' . 
  28. '<li>' . __( 'Topic-Tags allow users to filter topics between forums. This is enabled by default.', bbpress ) . '</li>' . 
  29. '<li>' . __( '"Anonymous Posting" allows guest users who do not have accounts on your site to both create topics as well as replies.', bbpress ) . '</li>' . 
  30. '<li>' . __( 'The Fancy Editor brings the luxury of the Visual editor and HTML editor from the traditional WordPress dashboard into your theme.', bbpress ) . '</li>' . 
  31. '<li>' . __( 'Auto-embed will embed the media content from a URL directly into the replies. Forexample links to Flickr and YouTube.', bbpress ) . '</li>' . 
  32. '</ul>' . 
  33. '</p>' . 
  34. '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.', bbpress ) . '</p>' 
  35. ) ); 
  36.  
  37. // Per Page 
  38. $current_screen->add_help_tab( array( 
  39. 'id' => 'per_page',  
  40. 'title' => __( 'Per Page', bbpress ),  
  41. 'content' => '<p>' . __( 'Per Page settings allow you to control the number of topics and replies appear on each page.', bbpress ) . '</p>' . 
  42. '<p>' . __( 'This is comparable to the WordPress "Reading Settings" page, where you can set the number of posts that should show on blog pages and in feeds.', bbpress ) . '</p>' . 
  43. '<p>' . __( 'These are broken up into two separate groups: one for what appears in your theme, another for RSS feeds.', bbpress ) . '</p>' 
  44. ) ); 
  45.  
  46. // Slugs 
  47. $current_screen->add_help_tab( array( 
  48. 'id' => 'slus',  
  49. 'title' => __( 'Slugs', bbpress ),  
  50. 'content' => '<p>' . __( 'The Slugs section allows you to control the permalink structure for your forums.', bbpress ) . '</p>' . 
  51. '<p>' . __( '"Archive Slugs" are used as the "root" for your forums and topics. If you combine these values with existing page slugs, bbPress will attempt to output the most correct title and content.', bbpress ) . '</p>' . 
  52. '<p>' . __( '"Single Slugs" are used as a prefix when viewing an individual forum, topic, reply, user, or view.', bbpress ) . '</p>' . 
  53. '<p>' . __( 'In the event of a slug collision with WordPress or BuddyPress, a warning will appear next to the problem slug(s).', bbpress ) . '</p>' 
  54. ) ); 
  55.  
  56. // Help Sidebar 
  57. $current_screen->set_help_sidebar( 
  58. '<p><strong>' . __( 'For more information:', bbpress ) . '</strong></p>' . 
  59. '<p>' . __( '<a href="http://codex.bbpress.org" target="_blank">bbPress Documentation</a>', bbpress ) . '</p>' . 
  60. '<p>' . __( '<a href="http://bbpress.org/forums/" target="_blank">bbPress Support Forums</a>', bbpress ) . '</p>' 
  61. );