• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

New XenScripts Code To Post Trimmed Text

LPH

Flight Director
Flight Instructor
LPH submitted a new blog post on Tux Reports Network:

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.

Continue reading on the blog post
 

LPH

Flight Director
Flight Instructor
The code does have a problem if there is a php block within the cut off area. As you can see above, the forum post had to be modified.
 

Albert

Technology Writer
The look of the resource threads is a much nicer link. Are you thinking of modifying the code to look like it?
 
Top