you could
try this in index:
// Display Code
begin_frame("Member of the Month");
echo '<table border="0" cellspacing="0" cellpadding="0" class="forumline" align="left" width=400><tr><td>';
echo "<div align='left'><b><font color=red>Last Months Winner Was</font></b> <br /></div>";
$lastmotmget = SQL_Query_exec("SELECT motm.id, motm.last_winner_points, users.username, users.class FROM motm LEFT JOIN users ON motm.id = users.id WHERE last_winner ='1' && year = " . date("y"));
if (mysql_num_rows($lastmotmget) > 0) {
$lastmotmgot = mysql_fetch_array($lastmotmget);
$lastmotm = $lastmotmgot[0];
$usrwp = $lastmotmgot['last_winner_points'];
// $username_motm = class_user($lastmotmgot['username']); // <-- Use this if you have class_user function
// $username_motm = "<font color='" . get_class_color($lastmotmgot['class']) . "'>" . $lastmotmgot[username] . "</font>"; // Use this if have get_class_color function
$username_motm = $lastmotmgot['username']; // use this if totally stock:(
echo "<div align='left'><a href=account-details.php?id=" . $lastmotmgot[id] . ">" . $username_motm . "</a> with <font color=yellow>" . $usrwp . "</font> points.<br />and won 300 Seed points.<br /> <br /></div>"; // edit this line to reflect your bonus
} //mysql_num_rows($res) > 0
else {
echo "<div align='left'><b><font color='DarkGoldenRod'>There was no Last Months Winner</font></b> <br /></div>";
}
//////////////////////////////////
///// Member of the Month Hack by Biglad //////
/////// Show Current Top 5 ///////
echo "<b><font color=red>Top 5 for ";
echo date(F);
echo "<br /></b></font>";
$sql32 = "SELECT motm.id, motm.points, users.username, users.class FROM motm LEFT JOIN users ON motm.id = users.id WHERE points > '0' && month = " . date("m") . " && year = " . date("y") . " ORDER BY points DESC LIMIT 5";
$mysql_result_motm = SQL_Query_exec($sql32);
if (mysql_num_rows($mysql_result_motm) > 0) {
echo '<table class="ftable" border="0" cellspacing="0" cellpadding="0">';
while ($row_motm = mysql_fetch_array($mysql_result_motm)) {
$id_motm = $row_motm['id'];
$pos = $row_motm["points"];
$usrname = $row_motm['username'];
// $username_motm = class_user($usrname); // <-- Use this if you have class_user function
// $username_motm = "<font color='" . get_class_color($row_motm['class']) . "'>" . $lastmotmgot[username] . "</font>"; // Use this if have get_class_color function
$username_motm = $usrname; // use this if totally stock:(
echo "<div align='left'><tr>";
echo "<td><a href=account-details.php?id=$id_motm>" . $username_motm . "</a></td><td width='70'> - Points <font color='DarkMagenta'>" . $pos . "</font></td>";
echo "</tr></div>";
//echo "<strong><div align='left'><a href=account-details.php?id=$id_motm>".$usrname."</a> - POINTS ".$pos."</strong><br />";
} //$row_motm = mysql_fetch_array($mysql_result_motm)
echo "</table>";
} //mysql_num_rows($mysql_result_motm) > 0
echo '</td></tr></table>';
end_frame();
or code it yourself...
I know works fine on the themes I have and I have close to 90 themes...
just an few shot.. i dont feel like going there all 90.................