marschelios
Forum Replies Created
-
Forum: Plugins
In reply to: WordPress 2.5 Share users tableron_g: I ran into this too and couldn’t really figure out a good way around it. From what I understand, it’s how sessions are supposed to work between domains, even if they are subdomains. I wonder if it could be possible to modify the login code to log the user into both domains? Something to look into…
michuk: I would upgrade to the same version, I’m sure it’s possible, but there’s no telling what other problems you would run into with the differences.
Forum: Plugins
In reply to: WordPress 2.5 Share users tableJust upgraded to 1.6.1 and decided to add another blog to a subdomain but wanted users spread over both blogs. Took a while but figured it out with some help from a guy named ringmaster (https://trac.www.ads-software.com/ticket/2378).
The problem appears to be a difference of opinion between users and WP programmers. Most users seem to think that a user should share the capabilities between blogs if they share the same database, where the programmers want the flexibility to allow users different caps between sites.
harringtonjw, in short our problem is even though we have successfully shared the databases, with poppackets code, your users caps are not brought over and you dont have admin rights.
To share user caps, you need to create another define in wp-config, I called mine CUSTOM_CAPABILITES_PREFIX and set it to the prefix of your master db.
Now, in wp-includes/capabilities.php scroll down to WP_User and where it is has:
$this->cap_key = $wpdb->prefix . 'capabilities';
Replace it with this:
if (defined ('CUSTOM_CAPABILITES_PREFIX')) { $this->cap_key = CUSTOM_CAPABILITES_PREFIX . 'capabilities'; } else { $this->cap_key = $wpdb->prefix . 'capabilities'; }
After this, you should be able to log in to your new site with your master password successfully.