• XEN DEVELOPMENT is a developer's resource for new developers wanting to build XenForo 2 add-ons. Experienced developers are also welcome to share their experienes and knowledge. This site is not affiliated with XenForo or a replacement for the official XenForo developer forums.

Blog Post XenWord Pro 2018 Development Thread

LPH

Flight Director
Staff member



This thread is for discussing the development of XenWord Pro 2018.

FEATURES
  • Cookie-based login to WordPress using a XenForo user account.
  • A thread is created for select WordPress posts.
  • WordPress comments are copied to XenForo 2
  • XenForo 2 replies are posted to WordPress
  • A few widgets are available to help integrate WordPress and XenForo.
This thread is not for posting bug reports. Please use the bug reports forum.
 

LPH

Flight Director
Staff member
2018.06.22 has been installed on this site. The first post is an example of using the new feature for posting a summary custom field to XenForo rather than an excerpt, link, or complete WordPress post.

Changelog
( 26 ) 2018.06.2 - June 22, 2018
Support for a new WordPress custom field written to XenForo
 

LPH

Flight Director
Staff member
Delayed releasing the next version after a report was made regarding a blank page after installation. The toolbar was enabled for the release and apparently, this may be the culprit.
 

LPH

Flight Director
Staff member
Spent the day tracking down the WooCommerce conflict which involves the following line in WooCommerce:

PHP:
add_filter( 'editable_roles', 'wc_modify_editable_roles' );
The function removes administrator which is needed in the XenWord user mapping and called in the xenword init file.[/php]

The fix is in the xf2-init.php, line near 1400:

Change:
PHP:
$xenword_editable_roles = array_reverse( get_editable_roles() );
To:
PHP:
$xenword_editable_roles = array_reverse( wp_roles()->roles );
 
Last edited:

LPH

Flight Director
Staff member
Rewrote the login class for XenWord. This supports WooCommerce and several plugins which enhance WooCommerce.

Released 2018.07.03

( 26 ) 2018.06.30 - June 30, 2018
Rewrote Login class to support WooCommerce and plugins
Support for a new WordPress custom field written to XenForo
Connected WordPress Toolbar -- Still testing
Rearranged Login.pph: return '' when user_id and ID match
Removed user_dashboard_url filter
 
Top