MyBB Community Forums

Full Version: best way to limit post content for summary output?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have several forums output to the "announcement" portion of the portal, but some of them have very large amounts of text.

what is the best way to limit the text that is output without breaking any mycode that may be present? i do not want to edit the actual message, just limit it to the first XXX characters (and add a (read more...) link) in the portal page only.

I can code the changes to the portal file and settings option for defining the amount of text to allow, but that actual limiting of the message is what I am worried about.

I could simply sub-string it, but that could break any mycode if I cut off or drop a tag
anyone?