One of the challenges to the XenScripts bridge is avoiding duplicate content, yet getting the readers from the forums to see the complete post. The following code modifies xf_thread_creation_system.php so that the body of the WordPress blog posting is trimmed to 500 words. This avoids the duplication.
Changelog
First modification of XenScripts
Alternative Discussions
XenScripts Discussion
PHP:
$body = $XF->visitor->get('username') . ' submitted a new blog post:';
$body .= "\n\n[URL='" . get_permalink($post->ID) . "']" . $title . "[/url]\n\n";
$body .= '[quote]' . XenForo_Helper_String::wholeWordTrim(XenForo_Helper_String::autoLinkBbCode(XenForo_Html_Renderer_BbCode::renderFromHtml(nl2br($content))), 500) . '[/quote]';
Changelog
First modification of XenScripts
Alternative Discussions
XenScripts Discussion