summaryrefslogtreecommitdiff
path: root/account.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-01-07 19:21:28 +0000
committerDries Buytaert <dries@buytaert.net>2001-01-07 19:21:28 +0000
commit554d9b080b4be1c3ddfae75d79a0789da8c80cf2 (patch)
tree63db7660753774f5faccf8e095afb24c9e3fa14b /account.php
parent63a335e1ed034d99ab34c6d80a56453175a18202 (diff)
downloadbrdo-554d9b080b4be1c3ddfae75d79a0789da8c80cf2.tar.gz
brdo-554d9b080b4be1c3ddfae75d79a0789da8c80cf2.tar.bz2
- fixed 2 small bugs in account.php
- drastically improved administration section - drastically revamped story administration: added new feature to schedule the publishing of stories - applied correct naming conventions to submission.php - fixed 1 small glitch in boxes - somewhat expanded the documentation = changed one SQL table - updated the faq with info on drupal - ... and more things I forgot about
Diffstat (limited to 'account.php')
-rw-r--r--account.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/account.php b/account.php
index 15fa44e28..a9cd9850e 100644
--- a/account.php
+++ b/account.php
@@ -461,7 +461,7 @@ function account_track_comments() {
$output .= " </UL>\n";
}
- $output = ($output) ? "$msg $output" : "$info <CENTER><B>You have not posted any comments recently.</B></CENTER>\n";
+ $output = ($output) ? "$msg $output" : "$info <CENTER>You have not posted any comments recently.</CENTER>\n";
$theme->header();
$theme->box("Track your comments", $output);
@@ -473,7 +473,7 @@ function account_track_stories() {
$msg = "<P>This page might be helpful in case you want to keep track of the stories you contributed. You are presented an overview of your stories along with the number of replies each story got.\n<P>\n";
- $result = db_query("SELECT s.id, s.subject, s.timestamp, s.category, COUNT(s.id) as count FROM comments c LEFT JOIN stories s ON c.sid = s.id WHERE s.status = 2 AND s.author = $user->id GROUP BY s.id DESC");
+ $result = db_query("SELECT s.id, s.subject, s.timestamp, s.category, COUNT(c.cid) as count FROM stories s LEFT JOIN comments c ON c.sid = s.id WHERE s.status = 2 AND s.author = $user->id GROUP BY s.id DESC");
while ($story = db_fetch_object($result)) {
$output .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
@@ -484,10 +484,8 @@ function account_track_stories() {
$output .= "<P>\n";
}
- $output = ($output) ? "$msg $output" : "$info <CENTER><B>You have not posted any stories.</B></CENTER>\n";
-
$theme->header();
- $theme->box("Track your stories", $output);
+ $theme->box("Track your stories", ($output ? "$msg $output" : "$msg You have not posted any stories.\n"));
$theme->footer();
}
@@ -504,6 +502,7 @@ function account_track_site() {
$block1 .= "</TABLE>\n";
$block1 .= "<P>\n";
}
+ $block1 = ($block1) ? $block1 : "<CENTER>You have not posted any comments recently.</CENTER>\n";
$users_total = db_result(db_query("SELECT COUNT(id) FROM users"));