diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-11-25 12:56:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-11-25 12:56:04 +0000 |
commit | 086e72d4b101311fde20d26c5e04eb9bace91986 (patch) | |
tree | b41c616e52afaac11a4467d8ad61ef3097dbcd75 /includes | |
parent | 01018b68304e917836df9bdc051ef34e7da88ef0 (diff) | |
download | brdo-086e72d4b101311fde20d26c5e04eb9bace91986.tar.gz brdo-086e72d4b101311fde20d26c5e04eb9bace91986.tar.bz2 |
- Redid most of account.php and fixed quite some bugs!
Check out your new user account stuff and give me some feedback.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/config.inc | 4 | ||||
-rw-r--r-- | includes/function.inc | 5 | ||||
-rw-r--r-- | includes/widget.inc | 27 |
3 files changed, 24 insertions, 12 deletions
diff --git a/includes/config.inc b/includes/config.inc index 030d3b9d7..4c96aa9a6 100644 --- a/includes/config.inc +++ b/includes/config.inc @@ -83,7 +83,7 @@ $themes = array("Marvin" => array( "classic theme, white, basic design with a fresh look"), "Zaphod" => array( "themes/zaphod/zaphod.theme", - "classis theme, yellow, structured, advanced navigation"), + "classic theme, yellow, structured, advanced navigation"), "UnConeD" => array( "themes/unconed/unconed.theme", "modern theme, gray and blue, high coolness factor")); @@ -129,7 +129,7 @@ $submission_rate = array("comment" => "60", // 60 seconds = 1 minute # the maximum length (i.e. the maximum number of characters) a # story, a diary entry, or a comment is allowed to be. # -$submission_size = 6000; // 6.000 characters is more or less 150 lines +$submission_size = 12000; // 12.000 characters is more or less 300 lines # # Watchdog history: diff --git a/includes/function.inc b/includes/function.inc index 3c3cd3afe..8f9336603 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -18,6 +18,11 @@ function load_theme() { return new Theme(); } +function discussion_score($comment) { + $value = ($comment->votes) ? ($comment->score / $comment->votes) : (($comment->score) ? $comment->score : 0); + return (strpos($value, ".")) ? substr($value ."00", 0, 4) : $value .".00"; +} + function check_field($message) { return str_replace("\"", """, stripslashes($message)); } diff --git a/includes/widget.inc b/includes/widget.inc index 61d1d97db..51a17ff2c 100644 --- a/includes/widget.inc +++ b/includes/widget.inc @@ -103,7 +103,7 @@ function display_calendar($theme, $date) { } function display_account($theme) { - global $user; + global $user, $site_name; if ($user->id) { @@ -113,15 +113,22 @@ function display_account($theme) { } ### Display account settings: - $content = "<LI><A HREF=\"account.php\">view your information</A></LI>"; - $content .= "<LI><A HREF=\"account.php?op=user\">edit your information</A></LI>"; - $content .= "<LI><A HREF=\"account.php?op=page\">customize your page</A></LI>"; - $content .= "<LI><A HREF=\"account.php?op=discussion\">track your comments</A></LI>"; - $content .= "<LI><A HREF=\"submission.php\">moderate submissions</A> (<FONT COLOR=\"red\">". submission_number() ."</FONT>)</LI>"; - $content .= "<LI><A HREF=\"diary.php?op=view&name=$user->userid\">update your diary</A></LI>"; - $content .= "<LI><A HREF=\"account.php?op=logout\">logout</A></LI>"; - - $theme->box("$user->userid's account", "$content"); + $content .= "<LI><A HREF=\"account.php?op=track&topic=comments\">track your comments</A></LI>\n"; + $content .= "<LI><A HREF=\"account.php?op=track&topic=stories\">track your stories</A></LI>\n"; + $content .= "<LI><A HREF=\"account.php?op=track&topic=site\">track $site_name</A></LI>\n"; + $content .= "<P>\n"; + $content .= "<LI><A HREF=\"submission.php\">submission queue</A> (<FONT COLOR=\"red\">". submission_number() ."</FONT>)</LI>\n"; + $content .= "<P>\n"; + $content .= "<LI><A HREF=\"account.php?op=edit&topic=diary\">edit your diary</A></LI>\n"; + $content .= "<LI><A HREF=\"account.php?op=edit&topic=user\">edit your information</A></LI>\n"; + $content .= "<LI><A HREF=\"account.php?op=edit&topic=page\">edit your settings</A></LI>\n"; + $content .= "<P>\n"; + $content .= "<LI><A HREF=\"account.php?op=view&topic=diary\">view your diary</A></LI>\n"; + $content .= "<LI><A HREF=\"account.php?op=view&topic=info\">view your information</A></LI>\n"; + $content .= "<P>\n"; + $content .= "<LI><A HREF=\"account.php?op=logout\">logout</A></LI>\n"; + + $theme->box("$user->userid's account", "$content", "NOWRAP"); } } |