Changeset 2123
- Timestamp:
- 11/25/2009 11:56:18 AM (16 years ago)
- Location:
- branches/1.1
- Files:
-
- 5 edited
-
bp-core/bp-core-settings.php (modified) (4 diffs)
-
bp-friends/bp-friends-notifications.php (modified) (2 diffs)
-
bp-groups/bp-groups-notifications.php (modified) (6 diffs)
-
bp-messages/bp-messages-notifications.php (modified) (2 diffs)
-
bp-xprofile/bp-xprofile-notifications.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-core/bp-core-settings.php
r2076 r2123 17 17 bp_core_new_nav_item( array( 'name' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) ); 18 18 19 $settings_link = $bp->loggedin_user->domain . 'settings/';19 $settings_link = $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/'; 20 20 21 21 bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_is_home() ) ); … … 86 86 <?php } ?> 87 87 88 <form action="<?php echo $bp->loggedin_user->domain . 'settings/general' ?>" method="post" class="standard-form" id="settings-form">88 <form action="<?php echo $bp->loggedin_user->domain . $bp->settings->slug . '/general' ?>" method="post" class="standard-form" id="settings-form"> 89 89 <label for="email"><?php _e( 'Account Email', 'buddypress' ) ?></label> 90 90 <input type="text" name="email" id="email" value="<?php echo attribute_escape( $current_user->user_email ); ?>" class="settings-input" /> … … 138 138 <?php } ?> 139 139 140 <form action="<?php echo $bp->loggedin_user->domain . 'settings/notifications' ?>" method="post" id="settings-form">140 <form action="<?php echo $bp->loggedin_user->domain . $bp->settings->slug . '/notifications' ?>" method="post" id="settings-form"> 141 141 <h3><?php _e( 'Email Notifications', 'buddypress' ) ?></h3> 142 142 <p><?php _e( 'Send a notification by email when:', 'buddypress' ) ?></p> … … 176 176 global $bp, $current_user, $bp_settings_updated, $pass_error; ?> 177 177 178 <form action="<?php echo $bp->loggedin_user->domain . 'settings/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">178 <form action="<?php echo $bp->loggedin_user->domain . $bp->settings->slug . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post"> 179 179 180 180 <div id="message" class="info"> -
branches/1.1/bp-friends/bp-friends-notifications.php
r2076 r2123 13 13 14 14 $all_requests_link = bp_core_get_user_domain( $friend_id ) . 'friends/requests/'; 15 $settings_link = bp_core_get_user_domain( $friend_id ) . 'settings/notifications';15 $settings_link = bp_core_get_user_domain( $friend_id ) . $bp->settings->slug . '/notifications'; 16 16 17 17 $initiator_link = bp_core_get_user_domain( $initiator_id ); … … 51 51 52 52 $friend_link = bp_core_get_user_domain( $friend_id ); 53 $settings_link = bp_core_get_user_domain( $initiator_id ) . 'settings/notifications';53 $settings_link = bp_core_get_user_domain( $initiator_id ) . $bp->settings->slug . '/notifications'; 54 54 55 55 // Set up and send the message -
branches/1.1/bp-groups/bp-groups-notifications.php
r2116 r2123 25 25 $wire_link = site_url( $bp->groups->slug . '/' . $group->slug . '/wire/' ); 26 26 $group_link = site_url( $bp->groups->slug . '/' . $group->slug . '/' ); 27 $settings_link = bp_core_get_user_domain( $user->user_id ) . 'settings/notifications/';27 $settings_link = bp_core_get_user_domain( $user->user_id ) . $bp->settings->slug . '/notifications/'; 28 28 29 29 $message = sprintf( __( … … 65 65 66 66 $group_link = site_url( $bp->groups->slug . '/' . $group->slug ); 67 $settings_link = bp_core_get_user_domain( $user->user_id ) . 'settings/notifications/';67 $settings_link = bp_core_get_user_domain( $user->user_id ) . $bp->settings->slug . '/notifications/'; 68 68 69 69 $message = sprintf( __( … … 100 100 $group_requests = bp_get_group_permalink( $group ) . '/admin/membership-requests'; 101 101 $profile_link = bp_core_get_user_domain( $requesting_user_id ); 102 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . 'settings/notifications/';102 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $bp->settings->slug . '/notifications/'; 103 103 104 104 // Set up and send the message … … 142 142 143 143 $group_link = bp_get_group_permalink( $group ); 144 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . 'settings/notifications/';144 $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $bp->settings->slug . '/notifications/'; 145 145 146 146 // Set up and send the message … … 195 195 196 196 $group_link = bp_get_group_permalink( $group ); 197 $settings_link = bp_core_get_user_domain( $user_id ) . 'settings/notifications/';197 $settings_link = bp_core_get_user_domain( $user_id ) . $bp->settings->slug . '/notifications/'; 198 198 199 199 // Set up and send the message … … 237 237 $invited_ud = get_userdata($invited_user_id); 238 238 239 $settings_link = bp_core_get_user_domain( $invited_user_id ) . 'settings/notifications/';239 $settings_link = bp_core_get_user_domain( $invited_user_id ) . $bp->settings->slug . '/notifications/'; 240 240 $invited_link = bp_core_get_user_domain( $invited_user_id ); 241 241 $invites_link = $invited_link . $bp->groups->slug . '/invites'; -
branches/1.1/bp-messages/bp-messages-notifications.php
r2076 r2123 13 13 14 14 $ud = get_userdata( $recipient_ids[$i] ); 15 $message_link = bp_core_get_user_domain( $recipient_ids[$i] ) . 'messages/view/' . $message->id;16 $settings_link = bp_core_get_user_domain( $recipient_ids[$i] ) . 'settings/notifications';15 $message_link = bp_core_get_user_domain( $recipient_ids[$i] ) . $bp->messages->slug . '/view/' . $message->id; 16 $settings_link = bp_core_get_user_domain( $recipient_ids[$i] ) . $bp->settings->slug . '/notifications'; 17 17 18 18 // Set up and send the message … … 49 49 if ( get_usermeta( $users[$i]->user_id, 'notification_messages_new_notice' ) == 'no' ) continue; 50 50 51 $message_link = bp_core_get_user_domain( $users[$i]->user_id ) . 'messages';52 $settings_link = bp_core_get_user_domain( $users[$i]->user_id ) . 'settings/notifications';51 $message_link = bp_core_get_user_domain( $users[$i]->user_id ) . $bp->messages->slug; 52 $settings_link = bp_core_get_user_domain( $users[$i]->user_id ) . $bp->settings->slug . '/notifications'; 53 53 54 54 // Set up and send the message -
branches/1.1/bp-xprofile/bp-xprofile-notifications.php
r2076 r2123 31 31 32 32 $wire_link = bp_core_get_user_domain( $user_id ) . 'wire'; 33 $settings_link = bp_core_get_user_domain( $user_id ) . 'settings/notifications';33 $settings_link = bp_core_get_user_domain( $user_id ) . $bp->settings->slug . '/notifications'; 34 34 35 35 // Set up and send the message
Note: See TracChangeset
for help on using the changeset viewer.