Skip to:
Content

BuddyPress.org

Ticket #5509: 5509.03.dc.patch

File 5509.03.dc.patch, 3.8 KB (added by dcavins, 11 years ago)

Slight modifications of hnla's recent patch

  • src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php

    diff --git src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php
    index ffc1164..6b547e3 100644
     
     1
    12<div class="left-menu">
    23
    34        <div id="invite-list">
     
    1112        </div>
    1213
    1314</div><!-- .left-menu -->
    14 
     15               
    1516<div class="main-column">
    1617
    1718        <?php do_action( 'bp_before_group_send_invites_list' ); ?>
    1819
    1920        <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?>
    2021
     22                <h3 class="invite-list-heading"><?php _e('Your current invitations','buddypress'); ?></h3>
     23
    2124                <div id="pag-top" class="pagination">
    2225
    2326                        <div class="pag-count" id="group-invite-count-top">
     
    7477
    7578                </div>
    7679
    77         <?php else : ?>
     80        <?php else: ?>
     81
    7882                <div id="message" class="info">
    79                         <p><?php _e( 'Select people to invite from your friends list.', 'buddypress' ); ?></p>
     83                        <p><?php _e( 'Select friends to invite.', 'buddypress' ); ?></p>
    8084                </div>
     85
    8186        <?php endif; ?>
    8287
    8388<?php do_action( 'bp_after_group_send_invites_list' ); ?>
    8489
    8590</div><!-- .main-column -->
    8691
    87 <div class="clear"></div>
    88 
    8992<div class="submit">
    9093        <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" />
    9194</div>
  • src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php

    diff --git src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php
    index 6f3d9ef..37f97e7 100644
     
     1<h2 class="manage-invites-heading"><?php _e( 'Manage your group invitations', 'buddypress' ); ?></h2>
     2
    13<?php do_action( 'bp_before_group_send_invites_content' ); ?>
    24
    3 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
     5<?php
     6        /* Does the user have friends that could be invited to the group? */
     7        if ( bp_get_new_group_invite_friend_list() ) : ?>
    48
    59        <?php /* 'send-invite-form' is important for AJAX support */ ?>
    610        <form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form" role="main">
     
    1620
    1721        </form><!-- #send-invite-form -->
    1822
     23<?php /* No eligible friends? Maybe the user doesn't have any friends yet. */
     24        elseif ( 0 == bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
     25
     26        <div id="message" class="info">
     27                <p class="notice"><?php _e('Group invitations can only be extended to friends.', 'buddypress'); ?></p>
     28                <p class="message-body"><?php _e('Once you\'ve made some friendships, you\'ll be able to invite those members to this group.', 'buddypress'); ?></p>
     29        </div>
     30
     31<?php /* The user does have friends, but none are eligible to be invited to this group. */
     32        else : ?>
     33
     34        <div id="message" class="info">
     35                <p class="notice"><?php _e('All of your friends already belong to this group.', 'buddypress'); ?></p>
     36        </div>
     37
    1938<?php endif; ?>
    2039
    2140<?php do_action( 'bp_after_group_send_invites_content' ); ?>
  • src/bp-templates/bp-legacy/css/buddypress.css

    diff --git src/bp-templates/bp-legacy/css/buddypress.css src/bp-templates/bp-legacy/css/buddypress.css
    index 8de03ac..4cfa387 100644
    body.activity-permalink #buddypress ul.item-list li.activity-item { 
    13741374        overflow: auto;
    13751375        list-style: none;
    13761376}
    1377 
     1377#buddypress .manage-invites-heading,
     1378#buddypress .invite-list-heading {
     1379        clear: none;   
     1380        margin: 20px 0;
     1381}
     1382#buddypress .manage-invites-heading {
     1383        font-size: 120%;
     1384}
     1385#buddypress .invite-list-heading {
     1386        font-size: 100%;
     1387}
    13781388
    13791389/*--------------------------------------------------------------
    138013903.9 - Private Messaging Threads