Index: bp-friends.php
===================================================================
--- bp-friends.php	(revisione 1281)
+++ bp-friends.php	(copia locale)
@@ -19,6 +19,10 @@
 if ( !defined( 'BP_FRIENDS_SLUG' ) )
 	define ( 'BP_FRIENDS_SLUG', 'friends' );
 
+/* Define the name of table for the component */
+if ( !defined( 'BP_FRIENDS_TABLE' ) )
+	define( 'BP_FRIENDS_TABLE', $wpdb->base_prefix . 'bp_friends' );
+
 require ( 'bp-friends/bp-friends-classes.php' );
 require ( 'bp-friends/bp-friends-ajax.php' );
 require ( 'bp-friends/bp-friends-cssjs.php' );
@@ -65,7 +69,7 @@
 function friends_setup_globals() {
 	global $bp, $wpdb;
 	
-	$bp->friends->table_name = $wpdb->base_prefix . 'bp_friends';
+	$bp->friends->table_name = BP_FRIENDS_TABLE;
 	$bp->friends->image_base = WPMU_PLUGIN_URL . '/bp-friends/images';
 	$bp->friends->format_activity_function = 'friends_format_activity';
 	$bp->friends->format_notification_function = 'friends_format_notifications';
Index: bp-groups.php
===================================================================
--- bp-groups.php	(revisione 1281)
+++ bp-groups.php	(copia locale)
@@ -19,6 +19,18 @@
 if ( !defined( 'BP_GROUPS_SLUG' ) )
 	define ( 'BP_GROUPS_SLUG', 'groups' );
 
+/* Define the name of table for the component */
+if ( !defined( 'BP_GROUPS_TABLE' ) )
+	define( 'BP_GROUPS_TABLE', $wpdb->base_prefix . 'bp_groups' );
+
+/* Define the name of the members table for the component */
+if ( !defined( 'BP_GROUPS_TABLE_MEMBERS' ) )
+	define( 'BP_GROUPS_TABLE_MEMBERS', $wpdb->base_prefix . 'bp_groups_members' );
+
+/* Define the name of the groupmeta table for the component */
+if ( !defined( 'BP_GROUPS_TABLE_GROUPMETA' ) )
+	define( 'BP_GROUPS_TABLE_GROUPMETA', $wpdb->base_prefix . 'bp_groups_groupmeta' );
+
 require ( 'bp-groups/bp-groups-classes.php' );
 require ( 'bp-groups/bp-groups-ajax.php' );
 require ( 'bp-groups/bp-groups-cssjs.php' );
@@ -132,9 +144,9 @@
 	if ( !$no_global )
 		global $bp;
 	
-	$bp->groups->table_name = $wpdb->base_prefix . 'bp_groups';
-	$bp->groups->table_name_members = $wpdb->base_prefix . 'bp_groups_members';
-	$bp->groups->table_name_groupmeta = $wpdb->base_prefix . 'bp_groups_groupmeta';
+	$bp->groups->table_name = BP_GROUPS_TABLE;
+	$bp->groups->table_name_members = BP_GROUPS_TABLE_MEMBERS;
+	$bp->groups->table_name_groupmeta = BP_GROUPS_TABLE_GROUPMETA;
 	$bp->groups->image_base = WPMU_PLUGIN_URL . '/bp-groups/images';
 	$bp->groups->format_activity_function = 'groups_format_activity';
 	$bp->groups->format_notification_function = 'groups_format_notifications';
Index: bp-xprofile.php
===================================================================
--- bp-xprofile.php	(revisione 1281)
+++ bp-xprofile.php	(copia locale)
@@ -19,6 +19,18 @@
 if ( !defined( 'BP_XPROFILE_SLUG' ) )
 	define ( 'BP_XPROFILE_SLUG', 'profile' );
 
+/* Define the name of the data table for the component */
+if ( !defined( 'BP_XPROFILE_TABLE_DATA' ) )
+	define( 'BP_XPROFILE_TABLE_DATA', $wpdb->base_prefix . 'bp_xprofile_data' );
+
+/* Define the name of the groups table for the component */
+if ( !defined( 'BP_XPROFILE_TABLE_GROUPS' ) )
+	define( 'BP_XPROFILE_TABLE_GROUPS', $wpdb->base_prefix . 'bp_xprofile_groups' );
+
+/* Define the name of the fields table for the component */
+if ( !defined( 'BP_XPROFILE_TABLE_FIELDS' ) )
+	define( 'BP_XPROFILE_TABLE_FIELDS', $wpdb->base_prefix . 'bp_xprofile_fields' );
+
 require ( 'bp-xprofile/bp-xprofile-classes.php' );
 require ( 'bp-xprofile/bp-xprofile-filters.php' );
 require ( 'bp-xprofile/bp-xprofile-signup.php' );
@@ -144,9 +156,9 @@
 function xprofile_setup_globals() {
 	global $bp, $wpdb;
 	
-	$bp->profile->table_name_groups = $wpdb->base_prefix . 'bp_xprofile_groups';
-	$bp->profile->table_name_fields = $wpdb->base_prefix . 'bp_xprofile_fields';
-	$bp->profile->table_name_data = $wpdb->base_prefix . 'bp_xprofile_data';
+	$bp->profile->table_name_groups = BP_XPROFILE_TABLE_GROUPS;
+	$bp->profile->table_name_fields = BP_XPROFILE_TABLE_FIELDS;
+	$bp->profile->table_name_data = BP_XPROFILE_TABLE_DATA;
 	$bp->profile->format_activity_function = 'xprofile_format_activity';
 	$bp->profile->format_notification_function = 'xprofile_format_notifications';
 	$bp->profile->image_base = WPMU_PLUGIN_URL . '/bp-xprofile/images';
