diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-07-13 07:21:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-07-13 07:21:57 +0000 |
commit | e214bd06c69c150aa1575e258ff8a65ccd8a6575 (patch) | |
tree | bab090bf022ddc2402ee5fb64c00def7e4d7fa3d /themes | |
parent | 75129c1fdda7585d16fe27e35bac8018bd8cfbee (diff) | |
download | brdo-e214bd06c69c150aa1575e258ff8a65ccd8a6575.tar.gz brdo-e214bd06c69c150aa1575e258ff8a65ccd8a6575.tar.bz2 |
Updates:
--------
* URI/URL enhancements to make the URLs more comprehensive and shorter.
* Fixed a bug in submit.php that slipped in during the latest commit.
* Changed a few tidbits on the calendar.
* Fixed a bug in most themes:
$tid --> $cid
COUNT(tid) --> COUNT(cid)
Updated most themes except for UnConeD's.
* Fixed a handful of problems with Jeroen's theme. However, Jeroen's
theme is still not working yet - some features are completly missing,
making the theme not very useful ...
Any known bugs left? If not, I'll head on tonight and add some new
features. I'll probably add basic admin tools to edit articles and
such. Once done, we can start on the comment moderation.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/jeroen/theme.class.php | 85 |
1 files changed, 54 insertions, 31 deletions
diff --git a/themes/jeroen/theme.class.php b/themes/jeroen/theme.class.php index 33b6f767a..866d7b623 100644 --- a/themes/jeroen/theme.class.php +++ b/themes/jeroen/theme.class.php @@ -50,9 +50,6 @@ ### Display admin blocks: displayAdminblock($this); - - ### Display referring sites: - displayReferrals($this); ?> </TD> <TD WIDTH="430" VALIGN="top" ALIGN="left"> @@ -308,7 +305,7 @@ </TD> </TR> <? - $result = mysql_query("SELECT COUNT(tid) FROM comments WHERE sid = $sid AND score < $thold"); + $result = mysql_query("SELECT COUNT(cid) FROM comments WHERE sid = $sid AND score < $thold"); if ($result && $number = mysql_result($result, 0)) { ?> <TR> @@ -326,12 +323,12 @@ ###### # Syntax.......: comment(...); # Description..: this function is used to theme user comments. - function comment($poster, $subject, $tid, $date, $url, $email, $score, $reason, $comment, $link, $thread = "") { + function comment($poster, $subject, $cid, $date, $url, $email, $score, $reason, $comment, $link, $thread = "") { include "config.inc"; if (!eregi("[a-z0-9]",$poster)) $poster = $anonymous; if (!eregi("[a-z0-9]",$subject)) $subject = "[no subject]"; - echo "<A NAME=\"$tid\">"; + echo "<A NAME=\"$cid\">"; ### Create comment header: echo "<TABLE BORDER=\"0\" CELLPADDING=\"4\" CELLSPACING=\"2\" WIDTH=\"100%\">"; @@ -350,7 +347,7 @@ ### Moderation: echo " <TD ALIGN=\"right\" ROWSPAN=\"3\" VALIGN=\"middle\" WIDTH=\"15%\">"; - echo " <SELECT NAME=\"meta:$tid\">"; + echo " <SELECT NAME=\"meta:$cid\">"; echo " <OPTION VALUE=\"-1\">Moderate</OPTION>\n"; for ($i = 0; $i < sizeof($comments_meta_reasons); $i++) { echo " <OPTION VALUE=\"$i\">$comments_meta_reasons[$i]</OPTION>\n"; @@ -503,43 +500,69 @@ <? global $PHP_SELF; - $this->box("Drop where?", "<TD ALIGN=\"left\" VALIGN=\"top\"><A HREF=\"index.php\">home</A><BR><A HREF=\"faq.php\">faq</A><BR><A HREF=\"search.php\">search</A></TD><TD ALIGN=\"right\" VALIGN=\"top\"><A HREF=\"submit.php\">submit news</A><BR><A HREF=\"account.php\">your account</A><BR><A HREF=\"webboard.php\">webboard</A></TD>"); - - if (strstr($PHP_SELF, "index.php")) { - global $user, $date; + $this->box("Drop where?", "<TD ALIGN=\"left\" VALIGN=\"top\"><A HREF=\"index.php\">home</A><BR><A HREF=\"faq.php\">faq</A><BR><A HREF=\"search.php\">search</A></TD><TD ALIGN=\"right\" VALIGN=\"top\"><A HREF=\"submit.php\">submit news</A><BR><A HREF=\"account.php\">your account</A></TD>"); + + if (strstr($PHP_SELF, "index.php")) { + global $user, $date; - ### Display account: + ### Display account: displayAccount($this); - ### Display calendar: + ### Display calendar: displayCalendar($this, $date); + ### Display calendar: + displayOldHeadlines($this); + ### Display voting poll: displayPoll($this); - - ### Display old headlines: - displayOldHeadlines($this); - } - elseif (strstr($PHP_SELF, "account.php")) { + } + elseif (strstr($PHP_SELF, "account.php")) { ### Display account settings: displayAccountSettings($this); - } - elseif (strstr($PHP_SELF, "article.php")) { - global $sid; - ### Display account: + ### Display account: + displayAccount($this); + } + elseif (strstr($PHP_SELF, "submit.php")) { + ### Display account: displayAccount($this); - - ### Display related links: - displayRelatedLinks($this, $sid); ### Display new headlines: displayNewHeadlines($this); - } - else { - ### Display new headlines: - displayNewHeadlines($this); - } + } + elseif (strstr($PHP_SELF, "discussion.php")) { + global $id; + + if ($id && $story = id2story($id)) { + if ($story->status == 2) { + ### Display account: + displayAccount($this); + + ### Display related links: + displayRelatedLinks($this, $story); + + ### Display new headlines: + displayNewHeadlines($this); + } + else { + ### Display results of moderation: + displayModerationResults($this, $story); + } + } + else { + ### Display account: + displayAccount($this); + + ### Display new headlines: + displayNewHeadlines($this); + } + } + else { + ### Display new headlines: + displayNewHeadlines($this); + } + ?> </TD> </TR> @@ -548,7 +571,7 @@ <IMG SRC="themes/Jeroen/images/footerleft.gif" WIDTH="20" HEIGHT="20" ALT=""> </TD> <TD WIDTH="100%" BACKGROUND="themes/Jeroen/images/footer.gif" ALIGN="center" VALIGN="center" HEIGHT="20"> - <FONT COLOR="<? echo $this->hlcolor2; ?>" SIZE="2">[ <A HREF="">home</A> | <A HREF="/faq.php">faq</A> | <A HREF="/search.php">search</A> | <A HREF="/submit.php">submit news</A> | <A HREF="/account.php">your account</A> | <A HREF="/webboard.php">webboard</A> ] </FONT> + <FONT COLOR="<? echo $this->hlcolor2; ?>" SIZE="2">[ <A HREF="">home</A> | <A HREF="faq.php">faq</A> | <A HREF="search.php">search</A> | <A HREF="submit.php">submit news</A> | <A HREF="account.php">your account</A> ] </FONT> </TD> <TD WIDTH="160" ALIGN="left" VALIGN="bottom" HEIGHT="20"> <IMG SRC="themes/Jeroen/images/footerright.gif" WIDTH="20" HEIGHT="20" ALT=""> |