Here is marquee.php, it should work ok, I need to clean the code up some, just need to find a spare 10mins which always turns into an hour
Code:
<?php
// you may edit the below to suit your own needs
define('MARQUEE_SPEED', '2');
define('MARQUEE_WIDTH', '100%');
define('MARQUEE_HEIGHT', '145');
define('MARQUEE_NAME', 'Latest Posts');
define('THREAD_LIMIT', '20');
// no need to change anything below this line :)
error_reporting(E_ALL & ~E_NOTICE);
require ('global.php');
?>
<!-- Scrolling Marquee -->
<body bgcolor="#91BEDE" text="#000000" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
<marquee id="threadticker" direction=up scrollAmount=<?php echo MARQUEE_SPEED; ?> style="width:<?php echo MARQUEE_WIDTH; ?>;height:<?php echo MARQUEE_HEIGHT; ?>;border:0px solid black;
padding:0px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=<?php echo MARQUEE_SPEED; ?>">
<table border=0 cellpadding=4 cellspacing=0 width="<?php echo MARQUEE_WIDTH; ?>">
<tr>
<td colspan=3>
<font size=2 face="Verdana, Arial, sans-serif, Helvetica, Times">
<b><a href="<?php echo $bburl; ?>"><?php echo MARQUEE_NAME; ?></b></font>
</td>
</tr>
<?php
// connect to the database and pull the info we need.
$threads = $db->query_read("
SELECT threadid, forumid, title, replycount, lastposter, postuserid, postusername
FROM " . TABLE_PREFIX . "thread AS thread
ORDER BY thread.lastpost DESC LIMIT 10");
while ($thread = $db->fetch_array($threads)) {
// make sure the user has the permission to view the current thread.
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"]; {
// if he can, go ahead and output the goods.
$postctr++;
if ($thread['replycount'] == 0) {
$numreplies = "No Replies";
}
elseif ($thread['replycount'] == 1) {
$numreplies = "Reply";
}
else {
$numreplies = $thread['replycount'];
$numreplies .= " Replies";
}
echo "<tr>\n";
echo "<td width=\"$marquee_width\" style=\"border-bottom: 1px inset #000000; background-color: #4C6CA4\" onMouseover=\"this.style.backgroundColor='#607DAE';\" onMouseOut=\"this.style.backgroundColor='#4C6CA4';\">\n";
echo "<font size=1 face=\"Verdana, Arial, sans-serif, Helvetica, Times\">\n";
echo "<b><a href=\"$bburl/forums/showthread.php?s=&threadid=" . $thread['threadid'] . "\" target='_blank'>" . $thread['title'] . "</a></b><br>\n";
echo "Started by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['postusername'] . "\" target='_blank'>" . $thread['postusername'] . "</a><br>\n";
echo "Last Post by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['lastposter'] . "\" target='_blank'>" . $thread['lastposter'] . "</a><br>\n";
echo $numreplies;
echo "\n</font>\n";
echo "</td>\n</tr>\n\n";
}
}
?>
</marquee>
<!-- End Scrolling Marquee -->
I thought it just easier to cut and paste and replace entire contents of file.