Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/23/2012 06:18:39 AM (13 years ago)
Author:
johnjamesjacoby
Message:

First pass at adding user capabilities screen and action to settings component:

  • Add capabilities template
  • Unhook core spammer and deleted user actions and move to settings
  • Route admin bar links appropriately to new locations
  • Allow delete-account to be accessed by super admins in place of broken alerts
  • Improve general settings feedback
  • @todo - backpat post mortem
  • See #4038
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/settings/delete-account.php

    r5737 r5829  
    5050                <h3><?php _e( 'Delete Account', 'buddypress' ); ?></h3>
    5151
     52                <div id="message" class="info">
     53                   
     54                    <?php if ( bp_is_my_profile() ) : ?>
     55
     56                        <p><?php _e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
     57                       
     58                    <?php else : ?>
     59
     60                        <p><?php _e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
     61
     62                    <?php endif; ?>
     63
     64                </div>
     65
    5266                <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    53 
    54                     <div id="message" class="info">
    55                         <p><?php _e( 'WARNING: Deleting your account will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
    56                     </div>
    57 
    58                     <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting my account.', 'buddypress' ); ?>
    5967
    6068                    <?php do_action( 'bp_members_delete_account_before_submit' ); ?>
    6169
     70                    <label>
     71                        <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" />
     72                         <?php _e( 'I understand the consequences.', 'buddypress' ); ?>
     73                    </label>
     74
    6275                    <div class="submit">
    63                         <input type="submit" disabled="disabled" value="<?php _e( 'Delete My Account', 'buddypress' ); ?>" id="delete-account-button" name="delete-account-button" />
     76                        <input type="submit" disabled="disabled" value="<?php _e( 'Delete Account', 'buddypress' ); ?>" id="delete-account-button" name="delete-account-button" />
    6477                    </div>
    6578
     
    6780
    6881                    <?php wp_nonce_field( 'delete-account' ); ?>
     82
    6983                </form>
    7084
Note: See TracChangeset for help on using the changeset viewer.