WordPress.org

Plugin Directory

Changeset 619888


Ignore:
Timestamp:
11/01/12 16:00:43 (18 months ago)
Author:
boonebgorges
Message:

Squashed commit of the following:

commit 8c2a7bff6e22e69d2f93f71f95b638ab4acfbbd9
Author: Boone B Gorges <boonebgorges@…>
Date: Thu Nov 1 11:59:42 2012 -0400

Bumps version numbers to 1.0.17

commit dfc196489272efac92190d347ae9416a55573574
Author: Boone B Gorges <boonebgorges@…>
Date: Thu Nov 1 11:56:50 2012 -0400

By Email form improvements

  • Adds a notice about maximum invited people
  • Normalizes the way description text is presented

Props humanshell

commit 2c61530eca745d73be142efeb3fc56612bdee43c
Author: Boone B Gorges <boonebgorges@…>
Date: Thu Nov 1 11:56:23 2012 -0400

Be more intelligent about where the Invite Anyone menu is hooked

Location:
invite-anyone/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • invite-anyone/trunk/admin/admin-panel.php

    r534241 r619888  
    33function invite_anyone_admin_add() { 
    44 
    5     $plugin_page = add_submenu_page( 'bp-general-settings', __( 'Invite Anyone', 'bp-invite-anyone' ), __( 'Invite Anyone', 'bp-invite-anyone' ), 'manage_options', 'invite-anyone', 'invite_anyone_admin_panel' ); 
     5    $plugin_page = add_options_page( __( 'Invite Anyone', 'bp-invite-anyone' ), __( 'Invite Anyone', 'bp-invite-anyone' ), 'manage_options', 'invite-anyone', 'invite_anyone_admin_panel' ); 
    66 
    77    add_action( "admin_print_scripts-$plugin_page", 'invite_anyone_admin_scripts' ); 
    88    add_action( "admin_print_styles-$plugin_page", 'invite_anyone_admin_styles' ); 
    99} 
    10 add_action( is_multisite() && function_exists( 'is_network_admin' ) ? 'network_admin_menu' : 'admin_menu', 'invite_anyone_admin_add', 80 ); 
     10add_action( bp_core_admin_hook(), 'invite_anyone_admin_add', 80 ); 
    1111 
    1212/* Stolen from Welcome Pack - thanks, Paul! */ 
  • invite-anyone/trunk/by-email/by-email-css.css

    r386398 r619888  
    103103} 
    104104 
     105form#invite-anyone-by-email p { 
     106    margin-bottom: 0; 
     107} 
     108 
     109form#invite-anyone-by-email .description { 
     110    color: #8f8f8f; 
     111    font-size: 11px; 
     112    font-style: italic; 
     113} 
     114 
     115form#invite-anyone-by-email textarea { 
     116    margin-top: .5em; 
     117} 
     118 
    105119.invite-anyone-group-name { 
    106120    float: left; 
     
    151165.invite-anyone-sent-invites tr td:first-child a { 
    152166    text-decoration: none; 
    153 }    
     167} 
    154168 
    155169.invite-anyone-sent-invites tr.over { 
     
    169183  padding-left:25px; 
    170184} 
    171    
     185 
    172186.clear-entry, 
    173187.clear-entry span { 
     
    197211ul#invite-anyone-clear-links { 
    198212  overflow:hidden; 
    199   width:100%;  
    200 } 
    201   
     213  width:100%; 
     214} 
     215 
    202216ul#invite-anyone-clear-links li { 
    203217  float:left; 
     
    205219 
    206220ul#invite-anyone-clear-links li a { 
    207   padding-right:10px;  
     221  padding-right:10px; 
    208222  border-right: 1px solid #555; 
    209223} 
  • invite-anyone/trunk/by-email/by-email.php

    r599092 r619888  
    568568 
    569569            <div class="manual-email"> 
    570                 <p><?php _e( 'Enter email addresses below, one per line.', 'bp-invite-anyone' ) ?><?php if( invite_anyone_allowed_domains() ) : ?> <?php _e( 'You can only invite people whose email addresses end in one of the following domains:', 'bp-invite-anyone' ) ?> <?php echo invite_anyone_allowed_domains(); ?><?php endif; ?></p> 
    571  
     570                <p> 
     571                    <?php _e( 'Enter email addresses below, one per line.', 'bp-invite-anyone' ) ?> 
     572                    <?php if( invite_anyone_allowed_domains() ) : ?> <?php _e( 'You can only invite people whose email addresses end in one of the following domains:', 'bp-invite-anyone' ) ?> <?php echo invite_anyone_allowed_domains(); ?><?php endif; ?> 
     573                </p> 
     574 
     575                <?php if ( false !== $max_no_invites = invite_anyone_max_invites() ) : ?> 
     576                    <p class="description"><?php printf( __( 'You can invite a maximum of %s people at a time.', 'bp-invite-anyone' ), $max_no_invites ) ?></p> 
     577                <?php endif ?> 
    572578                <?php invite_anyone_email_fields( $returned_data['error_emails'] ) ?> 
    573579            </div> 
     
    593599            <?php if ( $iaoptions['message_is_customizable'] == 'yes' ) : ?> 
    594600                <label for="invite-anyone-custom-message"><?php _e( '(optional) Customize the text of the invitation.', 'bp-invite-anyone' ) ?></label> 
     601                <p class="description"><?php _e( 'The message will also contain a custom footer containing links to accept the invitation or opt out of further email invitations from this site.', 'bp-invite-anyone' ) ?></p> 
    595602                    <textarea name="invite_anyone_custom_message" id="invite-anyone-custom-message" cols="40" rows="10"><?php echo invite_anyone_invitation_message( $returned_message ) ?></textarea> 
    596603            <?php else : ?> 
     
    600607                <input type="hidden" name="invite_anyone_custom_message" value="<?php echo invite_anyone_invitation_message() ?>" /> 
    601608            <?php endif; ?> 
    602                 <p><?php _e( 'The message will also contain a custom footer containing links to accept the invitation or opt out of further email invitations from this site.', 'bp-invite-anyone' ) ?></p> 
    603609 
    604610        </li> 
     
    927933} 
    928934 
     935/** 
     936 * Get the max allowed invites 
     937 */ 
     938function invite_anyone_max_invites() { 
     939    $options = invite_anyone_options(); 
     940    return isset( $options['max_invites'] ) ? intval( $options['max_invites'] ) : false; 
     941} 
     942 
    929943function invite_anyone_allowed_domains() { 
    930944 
  • invite-anyone/trunk/invite-anyone.php

    r599092 r619888  
    44Plugin URI: http://teleogistic.net/code/buddypress/invite-anyone/ 
    55Description: Allows group admins to invite any member of their BuddyPress community to a group or to the site 
    6 Version: 1.0.16 
     6Version: 1.0.17 
    77Author: Boone Gorges 
    88Author URI: http://boone.gorg.es 
    99*/ 
    10 define( 'BP_INVITE_ANYONE_VER',     '1.0.16' ); 
    11 define( 'BP_INVITE_ANYONE_DB_VER',  '1.0.16' ); 
     10define( 'BP_INVITE_ANYONE_VER',     '1.0.17' ); 
     11define( 'BP_INVITE_ANYONE_DB_VER',  '1.0.17' ); 
    1212 
    1313if ( !defined( 'BP_INVITE_ANYONE_SLUG' ) ) 
  • invite-anyone/trunk/readme.txt

    r599092 r619888  
    44Tags: buddypress, invitations, group, invite, friends, members 
    55Requires at least: WP 3.2, BuddyPress 1.2.9 
    6 Tested up to: WP 3.4.1, BuddyPress 1.6.1 
    7 Stable tag: 1.0.16 
     6Tested up to: WP 3.5, BuddyPress 1.6.1 
     7Stable tag: 1.0.17 
    88 
    99Makes BuddyPress's invitation features more powerful. 
     
    4444== Changelog == 
    4545 
     46= 1.0.17 = 
     47* Moved admin menu to under Settings 
     48* Added a "maximum of x people" notice to the by-email form 
     49 
    4650= 1.0.16 = 
    4751* Added Danish translation 
Note: See TracChangeset for help on using the changeset viewer.