- As I'm working down my TODO list, I updated your themes:

$theme->comment() only takes 2 parameters ever since the comment
    system rewrite 2 months ago. Make sure to update your local tree
    before you start hacking away on your themes.
3-00
Dries Buytaert 2001-03-03 12:17:12 +00:00
parent 74d3c351ce
commit fa26457895
3 changed files with 4 additions and 11 deletions

View File

@ -52,10 +52,9 @@ function rating_help() {
function rating_list($limit) {
$result = db_query("SELECT userid, rating FROM users ORDER BY rating DESC LIMIT $limit");
$output .= "<TABLE CELLPADDING=\"2\" CELLSPACING=\"2\">\n";
$output .= "<TR><TH>Username</TH><TH>Rating</TH></TR>\n";
$output .= "<TABLE CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
while ($account = db_fetch_object($result)) {
$output .= "<TR><TD>". format_username($account->userid) ."</TD><TD>". check_output($account->rating) ."</TD></TR>";
$output .= "<TR><TD ALIGN=\"right\">". ++$i ."</TD><TD>". format_username($account->userid) ."</TD><TD>". check_output($account->rating) ."</TD></TR>";
}
$output .= "</TABLE>\n";
return $output;

View File

@ -259,7 +259,7 @@ PHP?>
echo comment_controls();
}
function comment($comment, $link = "", $thread = "") {
function comment($comment, $link = "") {
echo "<A NAME=\"$comment->cid\"></A>\n";
// Create comment header:
@ -312,9 +312,6 @@ PHP?>
// Print body of comment:
if ($comment) echo " <TR><TD BGCOLOR=\"#E7E7E7\" BACKGROUND=\"themes/jeroen/images/sketch.gif\">" . check_output($comment->comment, 1) ."</TD></TR>";
// Print thread (if any):
if ($thread) echo " <TR><TD BGCOLOR=\"#E7E7E7\" BACKGROUND=\"themes/jeroen/images/sketch.gif\">$thread</TD></TR>";
// Print bottom link(s):
echo " <TR><TD ALIGN=\"right\" BGCOLOR=\"#E7E7E7\" BACKGROUND=\"themes/jeroen/images/sketch.gif\"><FONT COLOR=\"#E09226\">[</FONT> $link <FONT COLOR=\"#E09226\">]</FONT></TD></TR>";
echo " </TABLE>";

View File

@ -145,7 +145,7 @@
print "<HR>";
}
function comment($comment, $link, $thread = "") {
function comment($comment, $link) {
print "<A NAME=\"$comment->cid\"></A>\n";
print "\n<!-- Comment: \"$comment->subject\" by $comment->userid -->\n";
@ -195,9 +195,6 @@
// Print body of comment:
if ($comment) echo " <TR><TD BGCOLOR=\"$this->bgcolor2\">". check_output($comment->comment, 1) ."</TD></TR>";
// Print thread (if any):
if ($thread) echo " <TR><TD BGCOLOR=\"$this->bgcolor3\">$thread</TD></TR>";
// Print bottom link(s):
echo " <TR><TD ALIGN=\"right\" BGCOLOR=\"$this->bgcolor3\">[ $link ]</TD></TR>";
echo " </TABLE>";