New XenWord Authentication System

XenWord 3.0 includes a new authentication system for XenForo members to log into WordPress.

6
1118

XenWord 3.0 remains in beta as bugs are being squashed and the backend is being cleaned up for easier navigation.

A major stumbling block was getting XenForo replies written to the WordPress comment table. A second major challenge was to get XenWord working with WordPress caching plugins.

Yesterday I was able to get a new authentication working. Three functions were replaced with a few simple lines.

The statement wp_set_current_user(0) was important for properly logging out a XenForo member. The next issue was a change in the login widget, setting up a redirect after the login.

Caching plugins work, XenForo members are logged into a WordPress site, and the advanced user mapping functions by writing the wp_capabilities when the XenForo secondary user groups are mapped to WordPress roles.

[pastacode lang=”php” path_id=”54220f8260911e346f49a31dcb887ff1″ file=”” highlight=”” lines=”” provider=”gist”/]
6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
DPF
8 years ago

Awesome! This sounds like it will solve the bug I’m currently experiencing! Can’t wait to try it out!!!

doublespaces
8 years ago

Cool, maybe this will fix the random logged in errors I get?

Kerby
8 years ago

Because I have an issue with an user mapping bug, I hope the new auth system will fix it. When can I expect it will be avaible for download?

Admin
8 years ago

[QUOTE=”Kerby, post: 1941369, member: 22735″]I have an issue with an user mapping bug[/QUOTE]

Has this bug been reported in the [URL=’http://www.tuxreports.com/community/forums/xenword-bug-reports.246/’]bug report forum[/URL]?

[QUOTE=”Kerby, post: 1941369, member: 22735″]When can I expect it will be avaible for download?[/QUOTE]

We decided to run it on this site for longer than a few days. Usually we put it online, make sure it’s fine, and release it. [USER=6][/USER] wanted to make sure this beta was solid.

He reworked [URL=’http://www.retainingteachers.com’]www.retainingteachers.com[/URL] to make sure moving categories, posts, sidebars, etc were all working as expected.

Blatchy
8 years ago

[QUOTE="DPF, post: 1941367, member: 23972"]Awesome! This sounds like it will solve the bug I'm currently experiencing! Can't wait to try it out!!![/QUOTE]

just testing

doublespaces
8 years ago

I'd like to add, that my login problems were most likely due to incorrect .htaccess settings, from users being routed between the https and http versions of the site from wordpress.

I am considering installing the bridge again, as I've remade my forum into an automotive forum, however there were some problems with author's being reverted to subscribers which I needed resolved first.