Found some great instructions on how to get MediaWiki and WordPress to share login credentials. I manually hacked something like that a long time ago, and it was a pain because everytime there was an update I had to re-hack it. Jon Davis‘ solution is a plugin so it should work with new versions.
Hi there,
I would like to ask you for help on wordpress and mediawiki integration.
I have read Jon Davis’ article, but it seems that I still couldn’t make it to work.
My question is that I am able to get users’ names, but I am not able to get the users’ passwords. Maybe I should say that the “wordpress passwordhash” file doesn’t work as it suppose.
I am using wordpress 2.7 and mediawiki 1.14.
I know for sure that Jon’s script can connect to my wordpress database because the login script doesn’t complain user names at all, but passwords.
The error is that Login error
Incorrect password entered. Please try again.
I know this is because the passwordhash file is not working.
According to Jon’ article, he mentioned that we need to change our class-phpass.php location, which I did, but I just couldn’t make it to work.
I installed my mediawiki under wordpress and they share the same database.
the path looks like this:
/var/www/html/wordpress/mediawiki
and I set the path for the passwordhash like this:
require_once(’/direct/path/to/wordpress/wp-includes/class-phpass.php’)
require_once(’/var/www/html/wordpress/wp-includes/class-phpass.php’)
I know that you have had successful on integration for wordpress and mediawiki, so I would like to ask you for help.
I wondered if you could give me some directions on it.
Sincerely,
John Cheng
DaVinci Unlimited Software » Blog Archive » WordPress and MediaWiki Integration great article thank you.