wluke:
I created a table preview with setting of mediumtext not null in
the database
Then I used:
$page=iif(strlen($message>500,substr($message,0,50 0)."...",$message);
$DB_site->query("INSERT INTO thread (.....,preview) VALUES (..................,'".addslashes(htmlspecialchars ($page))."')");
in the newthread.php file
and
$threads=$DB_site->query("SELECT .....,preview FROM thread..
from forumdisplay.php
and took out the
$post=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid=$thread[threadid] ORDER BY postid");
$page=iif(strlen($post[pagetext])>500,substr($post[pagetext],0,500)."...",$post[pagetext]);
$page=bbcodeparse2($page,1,1,1,1);
$page=strip_tags($page);
and replaced it with:
$page=bbcodeparse2($page,1,1,1,1);
$page=strip_tags($page);
Should that do it?
Parker
|