2006-01-26, 04:00 PM
My Code:
I've paste this into my stylesheet.css:
But it's still not using class topics
<?php
require_once ("global.php");
require_once("./forum/inc/functions_post.php");
$limit = 5; // The amount of annoucements to show
$mysqlhost = "***";
$mysqlusername = "***";
$mysqlpassword = "***";
$mysqldbselect = "***";
$prefix = "mybb_";
$fid = 2;
mysql_select_db($mysqldbselect, mysql_connect($mysqlhost, $mysqlusername, $mysqlpassword));
$message['post'] = postify($message['post'], $allowhtml="yes", $allowmycode="yes", $allowsmilies="yes", $allowimgcode="yes", $archive=0);
$query = $db->query("
SELECT t.tid,t.subject
FROM mybb_threads t LEFT JOIN mybb_posts p ON (t.tid = p.tid)
WHERE t.fid=2
AND t.visible=1
AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT $limit")
or die($db->error());
while($news = $db->fetch_array($query))
{
echo "<p class=\"topics\"><a href=\"./forum/showthread.php?tid=".$news['tid']."\" target=\"_blank\">".$news['subject']."</a></p>";
}
?>
I've paste this into my stylesheet.css:
}
.topics {
padding-left: 25px;
font-size: 9pt;
font-family: Trebuchet MS;
}
.topics a {
color: #91E902;
text-decoration: none;
}
.topics a:active {
color: #F5F5F5;
}
.topics a:visited {
color: #F5F5F5;
}
But it's still not using class topics