Hi Jared
I think there's a bug with the setPassword function - it's just a query which isn't valid PHP:
public static function setPassword($iID, $sPassword) {
query(
UPDATE xf_user_authenticate
SET data = BINARY
CONCAT(
CONCAT(
CONCAT('a:3:{s:4:"hash";s:40:"'...
Thanks Jared - this should end up being a really useful class for many people.
By the way I found a bug - in your function getUserByEmail($sEmail)
It should be
$dbLoginModel = XenForo_Model::create('XenForo_Model_User');
not
$dbLoginModel = XenForo_Model::create('XenForo_Model_Login')...
Hi Jared
This is fantastic, thank you :)
I'm integrating this into a site now. I'd love to know if you could suggest ways to implement two other functions:
1. changePassword - for when a user changes their password on a site, their xenForo password is updated as well
2. deleteUser - if a user is...
Hi
We have a site where xenForo is integrated as a forum. We currently use code posted elsewhere to display the latest forum posts on our site, but we'd like the ability for users who register on the the site to have a forum account created automatically, and when they log in to the site...