A common installation stumbling block for people is to not align IDs. Once the XenWord plugin is installed they will try to login with their XenForo user_id and receive a permission denied on the WordPress side.
- Compatible WP Versions:
- Compatible XF Versions:
Alignment of user accounts is very important. The XenForo account user_id will take over and must match a WordPress ID so that roles and capabilities are set properly.
Use the following table to help you align the WordPress ID in the users table as well as the WordPress user_id in the usermeta table and XenForo user_id in the XenForo database tables. This should be done for every admin, editor, author, etc.
In the following example, it's quickly seen that user_id 2 in XenForo is assigned to RWH but ID 2 is LPH in WordPress. If we do not make any changes then RWH will login and have all of the roles and capabilities of LPH. This isn't good. At the same time, Albert's user_id in XenForo is 6, the same ID in WordPress as Gracie. Albert would login and have all of Gracie's roles and capabilities.
The fix is to change the IDs on the WordPress side in two tables (users and usermeta tables). Do not make changes to the XenForo side.
First, find all of the involved IDs and user_ids. There are some subscribers that probably have the 1006 user_id in XenForo as well as user_id 9.
In the example above, this is a completed chart.
Once this information is known then it becomes clear how to move IDs around in WordPress.
Here are the proposed changes for our example.
Backup your database before making any changes.
Use phpmyadmin to change the ID in the WordPress users table as well as the user_id in the WordPress usermeta table. Change the WordPress information and you are done.
IMPORTANT: The above diagram shows xf_user_id. This is NOT the user_id in the XenForo database. The xf_user_id was added by older XenWord versions. This is shown because some people already activated XenWord prior to seeing this document.