What's new? | Help | Directory | Sign in
Google
  
  
  
  
    
Show all Featured Downloads:
mysqlauth.4.php
Join project
Project owners:
  davicho, mtjovi, dieguisherrera

Open, based on a plugin by Eugene Heriniaina AKA Hery. Great plugin, I didn't know him tho. His site is: http://hery.serasera.org/ http://hery.blaogy.org/

Thanks a lot to DiegoH and JoVi, thanks to them this coding hell is over.

Couple of issues to consider:

- Since version 1.0.13 of Joomla there's a new hash for login processes. We based on an md5 check used for new users in joomla in the joomla.php login function... - on the admin page in WPMU (Panel- Options- Mysql Auth) you will want to specify the database address and a query similar to the following: SELECT username, email FROM jos_users WHERE username = '%{user}' - This hack checks in joomla's db and logs into wpmu with joomla's users - If the user exists on joomla andnot on wp, a new user is created in WP, subscribed to the main blog. If you want to create a default blog you can add it via code with: $blog_id = wpmu_create_blog($newdomain, $path, $username , $user_id, $meta); do_action('wpmu_activate_blog', $blog_id, $user_id, $password, $username, $meta); $meta = apply_filters('signup_create_blog_meta', array ('lang_id' => 'en', 'public' => 1)); - If the user is in both joomla an wpmu, the user is updated with data from joomlas database and logged in to the panel

- Be sure to ALWAYS send a STRING NON MD5 password to the wp-login function in the plugin... Via cookies, post variables, or session variables. Whatever, as long as $password is not hashed and all info is correct it should work fine. You can accomplish this by modifying on /wp-includes/plugable.php and in wp-login.php... You can send $POST['pwd'] to the wp-login function and it should work. All files have been uploaded to a RAR. - Be sure to redirect the user to the panel by default

- That's it. Enjoy and hope it works for you and saves you tears.

My site is: http://kuroizero.blogspot.com I'm no code guru AT ALL as him so be warned I won't know all the answers.