kevinlyles
Forum Replies Created
-
DON’T DO IT!!!
Check out Oauth Provider or OpenID instead, its safer and easier.
Anyone know how to do this with the avatars?
Ok I got it to work, so whatever you want to sync between sites, just change add this line into wp-config of the 2nd site.
define(‘BP_ACTIVITY’, ‘wp_bp_activity’);
define(‘BP_ACTIVITY_META’, ‘wp_bp_activity_meta’);Then change these settings in the loader files.
In buddypress/activity/bp-activity-loader.php
find the line…
// Global tables for activity component
$global_tables = array(
‘table_name’ => $bp->table_prefix . ‘bp_activity’,
‘table_name_meta’ => $bp->table_prefix . ‘bp_activity_meta’,
);and change it to your prefix like this…
// Global tables for activity component
$global_tables = array(
‘table_name’ => ‘wp_bp_activity’,
‘table_name_meta’ => ‘wp_bp_activity_meta’,
);then save and upload.
It should work on any plugin or table you want to sync.I done that already, I need the sites to share everything except for themes and options. I need everything synced, users, usermeta, buddypress and all buddypress features like groups, forums, activity and buddypress media.
They are on separate domain names but on the same server.
They are same the same database settings but the prefix is wp_ and wp2_.Stock install everything works but the two sites share nothing. When ever I try connecting the 2 I get “You do not have sufficient permissions to access.”
So I tried this, added
define('CUSTOM_CAPABILITIES_PREFIX', 'wp_'); define('CUSTOM_USER_TABLE', 'wp_users'); define('CUSTOM_USER_META_TABLE', 'wp_usermeta'); define('COOKIE_DOMAIN', '.domain.com'); //replace with your domain define('COOKIEPATH', '/');
to wp-config.php
then I changed
$this->cap_key = $wpdb->prefix . 'capabilities';
to
if (defined ('CUSTOM_CAPABILITIES_PREFIX')) { $this->cap_key = CUSTOM_CAPABILITIES_PREFIX . 'capabilities'; } else { $this->cap_key = $wpdb->prefix . 'capabilities'; }
in wp-includes/capabilities.php
I added these lines of code I am writing this and it worked. I can now login with the same user credentials as the first site.
Now I need to sync buddypress and all its tables. Is there any advice on that?
Thanks in advance.
Forum: Plugins
In reply to: [BuddyPress Group Skeleton Component] Where do we begin?multilevel grouping?
group hierarchy
Forum: Plugins
In reply to: [BuddyPress Maps] Not working – FATAL ERROR, no slugs.mo!removed code and renamed folder, then activated it but returned 500 error.
Forum: Plugins
In reply to: [BuddyPress Maps] Not working – FATAL ERROR, no slugs.mo!I might remove that line of code, too.
I got it working with buddypress,
but the activity form doesn’t load properly.Also some of the sub menu links dont even work.
If there a way to make it work better with buddypress?
Forum: Fixing WordPress
In reply to: Fatal Error is getting fatally aggravated!Forum: Fixing WordPress
In reply to: Fatal Error is getting fatally aggravated!yes i tried that too, it doesnt make a difference.
Forum: Fixing WordPress
In reply to: Fatal Error is getting fatally aggravated!I already done that and I believe its marketpress, but if I disable marketpress the error goes away but as soon as i enable any other plugin I get the same thing.
I am also on a VPS server
CentOS 5.3
Apache
SuPHP
MySqland the server memory trace only show 32% memory usage.
Forum: Fixing WordPress
In reply to: Fatal Error is getting fatally aggravated!it is any plugin there is a major memory leak in wp i think
Forum: Fixing WordPress
In reply to: Fatal Error is getting fatally aggravated!Oh sorry not just marketpress it is pretty much any plugin.