Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $settings['standard'] = array(
- 'title' => __( 'Basic Settings', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'The most basic yet important settings used to set up the general functionality of the plugin.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'options',
- 'state' => 'enabled',
- 'fields' => array(
- array(
- 'id' => 'user_inactivity_time',
- 'label' => __( 'User Active Time' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'The amount of time before a user is marked as inactive, default is 15 minutes.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'number',
- 'default' => '15',
- 'class' => 'number-box'
- ),
- array(
- 'id' => 'user_activity_time',
- 'label' => __( 'Active Users' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'The amount of time to consider when listing activity, default is 24 hours.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'number',
- 'default' => '24',
- 'class' => 'number-box'
- ),
- array(
- 'id' => 'display_limit_mins',
- 'label' => __( 'User Limit (mins)' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'A limit for the amount of users displayed in the Currently Active Users section. Set to 0 to disable', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'number',
- 'default' => '',
- 'class' => 'number-box'
- ),
- array(
- 'id' => 'display_limit_hours',
- 'label' => __( 'User Limit (hours)' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'A limit for the amount of users displayed in the Active Users section. Set to 0 to disable', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'number',
- 'default' => '',
- 'class' => 'number-box'
- ),
- array(
- 'id' => 'user_group_key',
- 'label' => __( 'Display Usergroup Key?' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Display a key of the usergroups available on the forum, with their colours', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => '',
- 'class' => ''
- ),
- array(
- 'id' => 'last_user',
- 'label' => __( 'Latest Registered user', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Display the latest user to register to the site?', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => '',
- 'class' => ''
- ),
- array(
- 'id' => 'most_users_online',
- 'label' => __( 'Most Users Online', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Display the most users recorded online?', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'class' => ''
- ),
- array(
- 'id' => 'bbpress_statistics',
- 'label' => __( 'bbPress Statistics', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Display the bbPress Statistics?', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => 'on',
- 'class' => ''
- ),
- array(
- 'id' => 'bbpress_statistics_merge',
- 'label' => __( 'bbPress Statistics Merge', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Include Thread Opening Posts into the Postcount?', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => 'on',
- 'class' => ''
- )
- )
- );
- $settings['style'] = array(
- 'title' => __( 'Customisation Settings', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Some Customisation Options to enable more user control over the plugin', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'options',
- 'state' => 'enabled',
- 'fields' => array(
- array(
- 'id' => 'title_text_currently_active',
- 'label' => __( 'Users Currently Active' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'You are able to set a different text string instead of the default "Users Currently Active", use %MINS% to display the minutes set. %COUNT_ACTIVE_USERS% will display the amount of users currently active', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'text',
- 'default' => 'Users Currently Active',
- 'placeholder' => __( 'Users Currently Active', 'bbpress-improved-statistics-users-online' ),
- 'class' => 'regular-text'
- ),
- array(
- 'id' => 'title_text_last_x_hours',
- 'label' => __( 'Active Users' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'You are able to set the string of text displayed for the users active in the time period set, use %HOURS% for the timeframe selected. %COUNT_ALL_USERS% will display the amount of users active', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'text',
- 'default' => 'Members active in the past %HOURS% hours',
- 'placeholder' => __( 'Members active in the past %HOURS% hours', 'bbpress-improved-statistics-users-online' ),
- 'class' => 'regular-text'
- ),
- array(
- 'id' => 'user_display_format',
- 'label' => __( 'User display format', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Choose whether to display the user’s login or display name', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'radio',
- 'options' => array( 'display_as_username' => __('Usernames', 'bbpress-improved-statistics-users-online'), 'display_as_dp' => __('Display Names', 'bbpress-improved-statistics-users-online') ),
- 'default' => 'display_as_username',
- 'class' => 'radio-button'
- ),
- array(
- 'id' => 'stats_to_display',
- 'label' => __( 'Statistics to Display', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Which of the statistics should be displayed?', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox_multi',
- 'options' => array( 'last_x_hours' => __('Last X Hours', 'bbpress-improved-statistics-users-online'), 'last_x_mins' => __('Last X Mins', 'bbpress-improved-statistics-users-online') ),
- 'default' => ''
- ),
- array(
- 'id' => 'forum_display_option',
- 'label' => __( 'Location of Statistics (WordPress Hooks)', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Define where you would like the statistics to be placed. If you prefer to use the shortcode or widget, leave these options unchecked.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox_multi',
- 'options' => array( 'after_forums_index' => __('After Forums Index', 'bbpress-improved-statistics-users-online'), 'after_topics_index' => __('After Topics Index', 'bbpress-improved-statistics-users-online'), 'after_single_topic' => __('After Single Topic', 'bbpress-improved-statistics-users-online'), 'after_single_forum' => __('After Single Forum / Category', 'bbpress-improved-statistics-users-online') ),
- 'default' => ''
- ),
- array(
- 'id' => 'before_forum_display',
- 'label' => __( 'Before Stats Display', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'If you are using hooks, you may want to define some additional text here to be displayed before the statistics', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'text',
- 'default' => 'Forum Statistics',
- 'class' => 'regular-text'
- ),
- array(
- 'id' => 'after_forum_display',
- 'label' => __( 'After Stats Display', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'If you are using hooks, you may want to define some additional text here to be displayed after the statistics', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'text',
- 'default' => '',
- 'class' => 'regular-text'
- ),
- )
- );
- $settings['extras'] = array(
- 'title' => __( 'Extras', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Additional Functionality this Plugin provides that don’t quite fit into the other tabs.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'options',
- 'state' => 'enabled',
- 'fields' => array(
- array(
- 'id' => 'extra_enable_shortcode',
- 'label' => __( 'Enable shortcode?' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Enabling this will allow you to use a shortcode([bbpas-activity]) to display the Statistics within a text widget.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => '',
- ),
- array(
- 'id' => 'extra_enable_whitelist',
- 'label' => __( 'Enable BBCode/Shortcode Whitelist?' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Enabling this will allow you to setup a BBCode/Shortcode whitelist for bbPress.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => '',
- ),
- array(
- 'id' => 'extra_whitelist_fields_array',
- 'label' => __( 'Whitelisted Fields' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Enabling this will allow you to setup a BBCode whitelist for bbPress. Format is comma separated', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'csvtextarea',
- 'default' => '',
- 'placeholder' => 'b,img,i,form,gallery',
- 'class' => ''
- ),
- array(
- 'id' => 'extra_delete_db',
- 'label' => __( 'Delete Database and Options upon uninstallation?' , 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'If you would like the associated Database and Options to be removed upon uninstallation, tick this box. Please note, the data will not be recoverable!', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => 'off',
- ),
- array(
- 'id' => 'disable_css',
- 'label' => __( 'Disable CSS Loading', 'bbpress-improved-statistics-users-online' ),
- 'description' => __( 'Disable CSS file provided by the plugin, useful if you are overriding the style provided.', 'bbpress-improved-statistics-users-online' ),
- 'type' => 'checkbox',
- 'default' => 'off',
- 'class' => ''
- ),
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement