diff options
author | natrak <> | 2001-07-24 08:49:57 +0000 |
---|---|---|
committer | natrak <> | 2001-07-24 08:49:57 +0000 |
commit | 845888fef98672ca832a032208905c95e8a5b5b1 (patch) | |
tree | 9d6680182a74df10c692a9a7cfd46844372b6e4f | |
parent | 13bfd9ca6450a17d25b6716438b981830a0e3467 (diff) | |
download | brdo-845888fef98672ca832a032208905c95e8a5b5b1.tar.gz brdo-845888fef98672ca832a032208905c95e8a5b5b1.tar.bz2 |
account.php
- real name is now shown to all users.
page.module
- improved the locale support.
comment.inc
- added a wrapper table for comment_thread_max() as suggested by nick.
-rw-r--r-- | account.php | 1 | ||||
-rw-r--r-- | includes/comment.inc | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/account.php b/account.php index f288eb889..e05772c0f 100644 --- a/account.php +++ b/account.php @@ -203,6 +203,7 @@ function account_user($uname) { elseif ($uname && $account = account_get_user($uname)) { $output .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n"; $output .= " <TR><TD ALIGN=\"right\"><B>". t("Username") .":</B></TD><TD>". check_output($account->userid) ."</TD></TR>\n"; + $output .= " <TR><TD ALIGN=\"right\"><B>". t("Real name") .":</B></TD><TD>". check_output($user->name) ."</TD></TR>\n"; $output .= " <TR><TD ALIGN=\"right\"><B>". t("E-mail") .":</B></TD><TD>". format_email($account->fake_email) ."</TD></TR>\n"; $output .= " <TR><TD ALIGN=\"right\"><B>". t("Homepage") .":</B></TD><TD>". format_url($account->url) ."</TD></TR>\n"; $output .= " <TR><TD ALIGN=\"right\"><B>". t("Bio") .":</B></TD><TD>". check_output($account->bio) ."</TD></TR>\n"; diff --git a/includes/comment.inc b/includes/comment.inc index 428245a02..b88ceadfc 100644 --- a/includes/comment.inc +++ b/includes/comment.inc @@ -239,10 +239,10 @@ function comment_thread_min($cid, $threshold) { $result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid"); while ($comment = db_fetch_object($result)) { - print "<UL>"; + print "<ul>"; print comment_view($comment); comment_thread_min($comment->cid, $threshold); - print "</UL>"; + print "</ul>"; } } @@ -252,10 +252,10 @@ function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) { $result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid"); while ($comment = db_fetch_object($result)) { - print "<UL>"; + print "<table width=100%><tr><td><ul>"; comment_view($comment, (comment_visible($comment, $threshold) ? comment_links($comment, 0) : 0)); comment_thread_max($comment->cid, $mode, $threshold, $level + 1, $dummy + 1); - print "</UL>"; + print "</ul></td></tr></table>"; } } |