When showing posts on the frontpage TP cuts the posts to a number of characters set in your frontpage setting: "Number of characters to display per forum-post: "
Now there is a code that cuts the text at the last ">" character or " " chracter (space) found BEFORE the end of the string...
This bit of code in Tportal.php.
$length = $context['TPortal']['frontpage_limit_len'];
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '>'));
if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['readmore'] = '... <p class="tp_readmore"><strong><a href="'. $scripturl. '?topic='. $row['id']. '">'. $txt['tp-readmore']. '</a></strong></p>';
It cannot deal with all cases though: especially the
<br /> which has a space in itself..
What you see happens when the last bit of the
<br /> string is cut off. Let's say the length is set to 100 characters: the last > is on place 101: it is then cut at the last space found, leaving a partial tag "<br ..."
It has been in the code of TP since before I even knew TP existed, and the cutting of the tag is normally not even visible to users but you have added a style to the 'readmore' tag, which is now not showing because of the open <br ...