Sorry, my bad, use this code:
Code:
$post=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid=$thread[threadid] ORDER BY postid");
$page=iif(strlen($post[pagetext])>30,substr($post[pagetext],0,30)."...",$post[pagetext]);
$page=bbcodeparse2($page,1,1,1,1);
(misplaced a parenthesis)
And in the bbcodeparse2() call you use 1 or 0 - 1 means it's parsed and 0 means it's not.