diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-03 12:17:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-03 12:17:12 +0000 |
commit | fa26457895a602d356c1878aefa1d1de0a86dfce (patch) | |
tree | b5008726b8f31d89b5fc6b4abf16e2b322a2888f | |
parent | 74d3c351ce30e351f171c215ce97817550c9f5ea (diff) | |
download | brdo-fa26457895a602d356c1878aefa1d1de0a86dfce.tar.gz brdo-fa26457895a602d356c1878aefa1d1de0a86dfce.tar.bz2 |
- 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.
-rw-r--r-- | modules/rating.module | 5 | ||||
-rw-r--r-- | themes/jeroen/jeroen.theme | 5 | ||||
-rw-r--r-- | themes/unconed/unconed.theme | 5 |
3 files changed, 4 insertions, 11 deletions
diff --git a/modules/rating.module b/modules/rating.module index 26c06fab1..90d84a93f 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -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; diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme index 6d9f80574..020b66f09 100644 --- a/themes/jeroen/jeroen.theme +++ b/themes/jeroen/jeroen.theme @@ -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>"; diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index 70c161bc3..ffe30408a 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -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>"; |