57 F
Los Angeles
Saturday, November 23, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
TechnologyWebdesignNew XenScripts Code To Post Trimmed Text

New XenScripts Code To Post Trimmed Text

[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]

Latest news

Related news