Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.

Updated wordpress integration

edited May 2009 in Vanilla 1.0 Help
I tried to integrate vanilla and wordpress by following the instructions on this page:

It didn't work. I can log in via wordpress. I can reset my password. After doing so I can log in with with Wordpress and Vanilla.

However! After I log in with Wordpress I can't login with or to Vanilla anymore.

This query in People.Class.WordpressAuthenticator.php returns 0 results.

// Retrieve matching username/password values
$s = $this->Context->ObjectFactory->NewContextObject($this->Context, 'SqlBuilder');
$s->SetMainTable('User', 'u');
$s->AddJoin('Role', 'r', 'RoleID', 'u', 'RoleID', 'inner join');
$s->AddSelect(array('UserID', 'Name', 'Password'), 'u');
$s->AddSelect('PERMISSION_SIGN_IN', 'r');
$s->AddWhere('u', 'Name', '', $Username, '=');
$s->AddWhere('u', 'Password', '', md5($Password), '=', 'and', '', 1, 1);
$s->AddWhere('u', 'Password', '', $Password, '=', 'or');

Any idea how I can modify that to work with the latest version of Wordpress?



Sign In or Register to comment.