' . __( 'Settings', 'bp-invite-anyone' ) . ''; array_unshift( $links, $settings_link ); return $links; } add_filter( 'plugin_action_links', 'invite_anyone_admin_add_action_link', 10, 2 ); function invite_anyone_admin_scripts() { wp_enqueue_script( 'invite-anyone-admin-js', WP_PLUGIN_URL . '/invite-anyone/admin/admin-js.js' ); } function invite_anyone_admin_styles() { wp_enqueue_style( 'invite-anyone-admin-css', WP_PLUGIN_URL . '/invite-anyone/admin/admin-css.css' ); } function invite_anyone_admin_panel() { global $iaoptions; $subpage = isset( $_GET['subpage' ] ) ? $_GET['subpage'] : 'general-settings'; if ( !empty( $_GET['migrate'] ) && $_GET['migrate'] == '1' ) { $iaoptions = invite_anyone_options(); $maybe_version = !empty( $iaoptions['db_version'] ) ? $iaoptions['db_version'] : '0.7'; // Don't run this migrator if coming from IA 0.8 or greater if ( !version_compare( $maybe_version, '0.8', '>=' ) ) { invite_anyone_migration_step(); return; } } // Get the proper URL for submitting the settings form. (Settings API workaround) $url_base = function_exists( 'is_network_admin' ) && is_network_admin() ? network_admin_url( 'admin.php?page=invite-anyone' ) : admin_url( 'admin.php?page=invite-anyone' ); $form_action = isset( $_GET['subpage'] ) ? add_query_arg( 'subpage', $_GET['subpage'], $url_base ) : $url_base; // Catch and save settings being saved (Settings API workaround) if ( !empty( $_POST['invite-anyone-settings-submit'] ) ) { $options = invite_anyone_options(); // Here are the fields currently allowed in each section $settings_fields = array( 'access-control' => array( 'email_visibility_toggle', 'email_since_toggle', 'email_role_toggle', 'minimum_role', 'email_blacklist_toggle', 'email_blacklist', 'group_invites_can_admin', 'group_invites_can_group_admin', 'group_invites_can_group_mod', 'group_invites_can_group_member', 'days_since', 'email_limit_invites_toggle', 'limit_invites_per_user' ), 'cloudsponge' => array( 'cloudsponge_enabled', 'cloudsponge_key' ), 'general-settings' => array( 'can_send_group_invites_email', 'bypass_registration_lock', 'default_invitation_subject', 'default_invitation_message', 'addl_invitation_message', 'subject_is_customizable', 'message_is_customizable', 'max_invites' ) ); $current_fields = $settings_fields[$subpage]; foreach( $current_fields as $cfield ) { $options[$cfield] = isset( $_POST['invite_anyone'][$cfield] ) ? $_POST['invite_anyone'][$cfield] : false; } update_option( 'invite_anyone', $options ); // A hack to make sure that the most recent options are available later on the page $iaoptions = $options; } ?>
CloudSponge is a cool service that gives your users easy and secure access to their address books (Gmail, Yahoo, and a number of other online and desktop email clients), so that they can more easily invite friends to your site. In order to enable CloudSponge support in Invite Anyone and BuddyPress, you\'ll need to register for a CloudSponge account.', 'bp-invite-anyone' ) ?>
| have_columns() ) : while ( $sortable->have_columns() ) : $sortable->the_column() ?> the_column_th() ?> | |||||
|---|---|---|---|---|---|
| name ); } ?> | post_date ); ?> |
Note: CloudSponge data has only been recorded since Invite Anyone v0.9.