Ticket #634: share_friends_profiles_groups.diff
| File share_friends_profiles_groups.diff, 4.2 KB (added by , 17 years ago) |
|---|
-
bp-friends.php
19 19 if ( !defined( 'BP_FRIENDS_SLUG' ) ) 20 20 define ( 'BP_FRIENDS_SLUG', 'friends' ); 21 21 22 /* Define the name of table for the component */ 23 if ( !defined( 'BP_FRIENDS_TABLE' ) ) 24 define( 'BP_FRIENDS_TABLE', $wpdb->base_prefix . 'bp_friends' ); 25 22 26 require ( 'bp-friends/bp-friends-classes.php' ); 23 27 require ( 'bp-friends/bp-friends-ajax.php' ); 24 28 require ( 'bp-friends/bp-friends-cssjs.php' ); … … 65 69 function friends_setup_globals() { 66 70 global $bp, $wpdb; 67 71 68 $bp->friends->table_name = $wpdb->base_prefix . 'bp_friends';72 $bp->friends->table_name = BP_FRIENDS_TABLE; 69 73 $bp->friends->image_base = WPMU_PLUGIN_URL . '/bp-friends/images'; 70 74 $bp->friends->format_activity_function = 'friends_format_activity'; 71 75 $bp->friends->format_notification_function = 'friends_format_notifications'; -
bp-groups.php
19 19 if ( !defined( 'BP_GROUPS_SLUG' ) ) 20 20 define ( 'BP_GROUPS_SLUG', 'groups' ); 21 21 22 /* Define the name of table for the component */ 23 if ( !defined( 'BP_GROUPS_TABLE' ) ) 24 define( 'BP_GROUPS_TABLE', $wpdb->base_prefix . 'bp_groups' ); 25 26 /* Define the name of the members table for the component */ 27 if ( !defined( 'BP_GROUPS_TABLE_MEMBERS' ) ) 28 define( 'BP_GROUPS_TABLE_MEMBERS', $wpdb->base_prefix . 'bp_groups_members' ); 29 30 /* Define the name of the groupmeta table for the component */ 31 if ( !defined( 'BP_GROUPS_TABLE_GROUPMETA' ) ) 32 define( 'BP_GROUPS_TABLE_GROUPMETA', $wpdb->base_prefix . 'bp_groups_groupmeta' ); 33 22 34 require ( 'bp-groups/bp-groups-classes.php' ); 23 35 require ( 'bp-groups/bp-groups-ajax.php' ); 24 36 require ( 'bp-groups/bp-groups-cssjs.php' ); … … 132 144 if ( !$no_global ) 133 145 global $bp; 134 146 135 $bp->groups->table_name = $wpdb->base_prefix . 'bp_groups';136 $bp->groups->table_name_members = $wpdb->base_prefix . 'bp_groups_members';137 $bp->groups->table_name_groupmeta = $wpdb->base_prefix . 'bp_groups_groupmeta';147 $bp->groups->table_name = BP_GROUPS_TABLE; 148 $bp->groups->table_name_members = BP_GROUPS_TABLE_MEMBERS; 149 $bp->groups->table_name_groupmeta = BP_GROUPS_TABLE_GROUPMETA; 138 150 $bp->groups->image_base = WPMU_PLUGIN_URL . '/bp-groups/images'; 139 151 $bp->groups->format_activity_function = 'groups_format_activity'; 140 152 $bp->groups->format_notification_function = 'groups_format_notifications'; -
bp-xprofile.php
19 19 if ( !defined( 'BP_XPROFILE_SLUG' ) ) 20 20 define ( 'BP_XPROFILE_SLUG', 'profile' ); 21 21 22 /* Define the name of the data table for the component */ 23 if ( !defined( 'BP_XPROFILE_TABLE_DATA' ) ) 24 define( 'BP_XPROFILE_TABLE_DATA', $wpdb->base_prefix . 'bp_xprofile_data' ); 25 26 /* Define the name of the groups table for the component */ 27 if ( !defined( 'BP_XPROFILE_TABLE_GROUPS' ) ) 28 define( 'BP_XPROFILE_TABLE_GROUPS', $wpdb->base_prefix . 'bp_xprofile_groups' ); 29 30 /* Define the name of the fields table for the component */ 31 if ( !defined( 'BP_XPROFILE_TABLE_FIELDS' ) ) 32 define( 'BP_XPROFILE_TABLE_FIELDS', $wpdb->base_prefix . 'bp_xprofile_fields' ); 33 22 34 require ( 'bp-xprofile/bp-xprofile-classes.php' ); 23 35 require ( 'bp-xprofile/bp-xprofile-filters.php' ); 24 36 require ( 'bp-xprofile/bp-xprofile-signup.php' ); … … 144 156 function xprofile_setup_globals() { 145 157 global $bp, $wpdb; 146 158 147 $bp->profile->table_name_groups = $wpdb->base_prefix . 'bp_xprofile_groups';148 $bp->profile->table_name_fields = $wpdb->base_prefix . 'bp_xprofile_fields';149 $bp->profile->table_name_data = $wpdb->base_prefix . 'bp_xprofile_data';159 $bp->profile->table_name_groups = BP_XPROFILE_TABLE_GROUPS; 160 $bp->profile->table_name_fields = BP_XPROFILE_TABLE_FIELDS; 161 $bp->profile->table_name_data = BP_XPROFILE_TABLE_DATA; 150 162 $bp->profile->format_activity_function = 'xprofile_format_activity'; 151 163 $bp->profile->format_notification_function = 'xprofile_format_notifications'; 152 164 $bp->profile->image_base = WPMU_PLUGIN_URL . '/bp-xprofile/images';