$value ) { if ( !in_array( $option, array( '_wpnonce', '_wp_http_referer', 'action', 'submit' ) ) ) { $option = trim( $option ); $value = is_array( $value ) ? $value : trim( $value ); $value = stripslashes_deep( $value ); if ( $value ) { bb_update_option( $option, $value ); } else { bb_delete_option( $option ); } } } $goback = add_query_arg('updated', 'true', wp_get_referer()); bb_safe_redirect($goback); exit; } if ( !empty($_GET['updated']) ) { bb_admin_notice( __( 'Settings saved.' ) ); } $general_options = array( 'enable_pingback' => array( 'title' => __( 'Enable Pingbacks' ), 'type' => 'checkbox', 'options' => array( 1 => __( 'Allow link notifications from other sites.' ) ) ), 'enable_loginless' => array( 'title' => __( 'Enable Login-less Posting' ), 'type' => 'checkbox', 'options' => array( 1 => __( 'Allow users to create topics and posts without logging in.' ) ), ), 'enable_subscriptions' => array( 'title' => __( 'Enable Subscriptions' ), 'type' => 'checkbox', 'options' => array( 1 => __( 'Allow users to subscribe to topics and receive new posts via email.' ) ), ), ); $bb_get_option_avatars_show = create_function( '$a', 'return 1;' ); add_filter( 'bb_get_option_avatars_show', $bb_get_option_avatars_show ); $avatar_options = array( 'avatars_show' => array( 'title' => __( 'Avatar display' ), 'type' => 'radio', 'options' => array( 0 => __( 'Don’t show avatars' ), 1 => __( 'Show avatars' ) ) ), 'avatars_rating' => array( 'title' => __( 'Maximum rating' ), 'type' => 'radio', 'options' => array( 'g' => __( 'G — Suitable for all audiences' ), 'pg' => __( 'PG — Possibly offensive, usually for audiences 13 and above' ), 'r' => __( 'R — Intended for adult audiences above 17' ), 'x' => __( 'X — Even more mature than above' ) ) ), 'avatars_default' => array( 'title' => __( 'Default avatar' ), 'type' => 'radio', 'options' => array( 'default' => bb_get_avatar( '', 32, 'default' ) . ' ' . __( 'Mystery Man' ), 'blank' => bb_get_avatar( '', 32, 'blank' ) . ' ' . __( 'Blank' ), 'logo' => bb_get_avatar( '', 32, 'logo' ) . ' ' . __( 'Gravatar Logo' ), 'identicon' => bb_get_avatar( rand( 0, 999 ), 32, 'identicon' ) . ' ' . __( 'Identicon (Generated)' ), 'wavatar' => bb_get_avatar( rand( 0, 999 ), 32, 'wavatar' ) . ' ' . __( 'Wavatar (Generated)' ), 'monsterid' => bb_get_avatar( rand( 0, 999 ), 32, 'monsterid' ) . ' ' . __( 'MonsterID (Generated)' ), 'retro' => bb_get_avatar( rand( 0, 999 ), 32, 'retro' ) . ' ' . __( 'Retro (Generated)' ) ), 'note' => array( __( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ) ), ) ); remove_filter( 'bb_get_option_avatars_show', $bb_get_option_avatars_show ); $bb_admin_body_class = ' bb-admin-settings'; bb_get_admin_header(); ?>