[wptab name=’Overview’]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.[/wptab]
[wptab name=’Code’]There are two places to change the code. Ultimately the new line would fit below the XenForo_Helper_String.
[php]
$body = ‘[quote]’ . XenForo_Helper_String::autoLinkBbCode(XenForo_Html_Renderer_BbCode::renderFromHtml(nl2br($content))) . "[/quote]";
$body = XenForo_Helper_String::wholeWordTrim($body, 500);
[/php][/wptab]
[end_wptabset]