PDA

View Full Version : Character cut off


Mythotical
01-29-2010, 08:59 PM
I can't seem to get the character cut off to work with the parser. What I want is to count bbcode include before it cuts off it counted after bbcode is parsed.

if (strlen($recent['message']) > '8')
{
$trimmedlength = strrpos(substr($recent['message'], 0, '8'), '...');
$message1 = substr($recent['message'], 0, $trimmedlength);
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$message = $parser->do_parse($message1, false, true, true, false, true, false);
} else {
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$message = $parser->do_parse($recent['message'], false, true, true, false, true, false);
}

That is what I have thus far, I have been playing with it trying to make it work but it just won't work. Any suggestions would be great.

Thanks
Steve

Mythotical
02-01-2010, 02:06 AM
Still need help with this.