i have, i realised the problem, i put $post[title] = $postitle rather than the other way around.
it's not actually working, my code is:
PHP Code:
$posttitle = $post['title'];
$postforumname = $post['forumname'];
if (strlen($posttitle) > 16)
{
substr($posttitle, 0, 17);
$posttitle = $posttitle . "...";
}
if (strlen($postforumname) > 16)
{
substr($postforumname, 0, 17);
$postforumname = $postforumname . "...";
}
$post['title'] = $posttitle;
$post['forumname'] = $postforumname;
but all it actually does is add "..." to the end of the string if it is more than 16 characters instead of cutting it to 17 and then adding it on the end.
ah i see it, i didn't put "$var = " before it.