Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Single Sing On & Cross post in 3 different WP WordPress

  • SOLVED

What We Need:

1. Single Sign On: in 3 different WPs (Wp1, Wp2, Wp3), (Not multisites). -We create user from admin, not open suscribers.

Wp1:http://personal.perfectplasma.com/umac/mynet/

Wp2: http://personal.perfectplasma.com/umac/vip/

Wp3:http://personal.perfectplasma.com/umac/faq/


2. Posts made on 2 of these sites (Wp1, Wp2) must be automatically posted in the latter WP using tags and categories in order (secuencially). Then categories must be synced automatically from Wp 1 and Wp 2 to the latter (Wp3) which is the main. Each post that appears in the latter WP, can be text or limited text entry with a thumbnail, with a link for cross reference to back to the original WP where post was originally made.



Answers (1)

2011-08-04

Ivaylo Draganov answers:

Hello,

1)

What you need to in order to sync users on single-site installs is to use a shared <em>wp_users</em> and <em>wp_usermeta</em> tables. To achieve that, put these lines in <em>wp-config.php</em> of each install:

define('CUSTOM_USER_TABLE', 'wp_users');
define('CUSTOM_USER_META_TABLE', 'wp_usermeta');


Next you'll need to sync login cookies. Since you are using the same domain for all 3 installs, putting this in <em>wp-config.php</em> should be sufficient:

define('COOKIE_DOMAIN','.mysite.com');
define('COOKIEPATH', '/' );
define('SITECOOKIEPATH', '/');


2)
This looks like a job for [[LINK href="http://www.google.com/url?sa=t&source=web&cd=1&ved=0CB8QFjAA&url=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Ffeedwordpress%2F&ei=l_k6TtqZJNHHswa6uMndBA&usg=AFQjCNH-5642NkKXaNt9qpbiISvDJWBagw&sig2=VkMdXf9ZYeCPgcP5FqTGmQ"]]FeedWordPress plugin[[/LINK]]. It can sync posts via RSS/Atom feeds - no special WP kung-fu required ;--) I've been using this plugin for a while on a network of sites and it is great. There are a ton of options - it can attribute syndicated posts to existing users, add them to specific terms or create new terms (categories, tags, etc), point links to original site and more. Definitely worth checking out.


miguel angarita comments:

Nice idea, could you do it if I give you ftp access, and give you a bonus?


Ivaylo Draganov comments:

Yes. I can take on the task. You can reach me via a personal message or at my email - dragunoff (at) gmail (dot) com