Add this code in your phpinclude template:
PHP Code:
$latestposts=$DB_site->query("SELECT postid,LEFT(pagetext,20) AS text FROM post ORDER BY dateline DESC LIMIT 10");
while ($latestpost=$DB_site->fetch_array($latestposts)) {
if ($marquee) {
$marquee .= " "; // String to seperate between each link
}
$marquee .= "<a href=\"showthread.php?s=$session[sessionhash]&postid=$latestpost[postid]\">$latestpost[text] ...</a>"; // Link and text for post
}
Now you can use $marquee in your marquee tag for the content.
This will only select the first 20 characters of the post, and add ... after it (with a link to the post).