summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-03 12:14:03 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-03 12:14:03 +0000
commitd487fbb6199f99f24b4b2a79725192a61ff93188 (patch)
tree1e28c01d6ced80ed2eea13cc539ac3af0b5df2b4
parent1035c6fc86f25759e9298b78e8bd232fdc912c41 (diff)
downloadwebsite-d487fbb6199f99f24b4b2a79725192a61ff93188.tar.gz
website-d487fbb6199f99f24b4b2a79725192a61ff93188.tar.bz2
website-d487fbb6199f99f24b4b2a79725192a61ff93188.tar.xz
website-d487fbb6199f99f24b4b2a79725192a61ff93188.zip
Updated header and added in cutenews for dynamic news display.
-rw-r--r--cutenews/data/Default.tpl93
-rw-r--r--default.css15
-rw-r--r--images/header.pngbin26516 -> 27865 bytes
-rw-r--r--includes/common.php5
-rw-r--r--index.php60
5 files changed, 113 insertions, 60 deletions
diff --git a/cutenews/data/Default.tpl b/cutenews/data/Default.tpl
new file mode 100644
index 0000000..c58d22a
--- /dev/null
+++ b/cutenews/data/Default.tpl
@@ -0,0 +1,93 @@
+<?PHP
+///////////////////// TEMPLATE Default /////////////////////
+$template_active = <<<HTML
+<div class="news">
+ <div class="news_date">{date} by {author}</div>
+ <h3>{title}</h3>
+<!--<div class="news_avatar">{avatar}</div>-->
+ <div class="news_body"><p>{short-story}</p></div>
+</div>
+HTML;
+
+
+$template_full = <<<HTML
+<table border="0" width="420" cellspacing="1" cellpadding="3">
+<tr>
+<td width="100%" style="text-align: justify">
+<b>{title}</b>
+</td>
+</tr>
+<tr>
+<td width="100%" style="text-align: justify">
+<font style="font-family:georgia, verdana, arial, sans-serif; color:#666; font-size:14;">{full-story}</font></td>
+</tr>
+<tr>
+<td width="100%">
+<table border="0" style="border-top: 1px dotted #f2f3f3" width="408" cellspacing="0">
+<tr>
+<td width="220"><i><font style="font-family:georgia, verdana, arial, sans-serif; font-size:11; color:black;">{date} by {author-name}</font></i><br> </td
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br />
+HTML;
+
+
+$template_comment = <<<HTML
+ <table border="0" width="400" height="40" cellspacing="" cellpadding="3">
+ <tr>
+ <td height="1" style="border-bottom-style: solid;border-bottom-width: 1px; border-bottom-color: black;">by <b>{author}</b> @ {date}</td>
+ </tr>
+ <tr>
+ <td height="40" valign="top" bgcolor="#F9F9F9" >{comment}</td>
+ </tr>
+ </table>
+<br>
+HTML;
+
+
+$template_form = <<<HTML
+ <table border="0" width="342" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="49" height="1">
+name:
+ </td>
+ <td width="289" height="1"><input type="text" name="name" tabindex="1"></td>
+ </tr>
+ <tr>
+ <td width="49" height="1">
+mail:
+ </td>
+ <td width="289" height="1"> <input type="text" name="mail" tabindex="2"> (optional)</td>
+ </tr>
+ </center>
+ <tr>
+ <td width="51" height="1">
+ <p style="text-align: left;">smile:</p>
+ </td>
+<center>
+ <td width="291" height="1" >
+{smilies}
+ </td>
+ </tr>
+ <tr>
+ <td width="340" height="1" colspan="2"> <textarea cols="40" rows="6" name="comments" tabindex="3"></textarea><br />
+ <input type="submit" name="submit" value="Add My Comment" accesskey="s">
+<input type=checkbox name=CNremember id=CNremember value=1> <label for=CNremember>Remember Me</label> |
+ <a href="javascript:CNforget();">Forget Me</a>
+ </td>
+ </tr>
+ </table>
+
+HTML;
+
+
+$template_prev_next = <<<HTML
+<p style="text-align: center;">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
+HTML;
+$template_comments_prev_next = <<<HTML
+<p style="text-align: center;">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p>
+HTML;
+?>
diff --git a/default.css b/default.css
index 72601a1..f09c1d6 100644
--- a/default.css
+++ b/default.css
@@ -121,7 +121,16 @@ h1 {
font-weight: bold;
color: #3c3c3c;
border-bottom: 1px solid #9f9894;
+ /*
+ border-right: 1px solid #9f9894;
+ border-top: 1px solid #f2e6df;
+ border-left: 1px solid #f2e6df;
+ */
font-size: 11pt;
+ /*
+ background-color: #d1c7c0;
+ padding: 2px 5px 2px 5px;
+ */
}
#sidebar {
@@ -206,7 +215,7 @@ h1 {
#sidebar .banners {
text-align: center;
- padding: 7px 7px 2px 7px;
+ padding: 13px 7px 8px 7px;
}
#sidebar .banners img {
@@ -296,13 +305,13 @@ h1 {
font-style: italic;
float: right;
color: #57565c;
+ font-size: 8pt;
}
.news_author {
font-size: 8pt;
- font-weight: bold;
color: #57565c;
- display: none;
+ border-bottom: 1px solid #9f9894;
}
.releases {
diff --git a/images/header.png b/images/header.png
index cc71590..770c13a 100644
--- a/images/header.png
+++ b/images/header.png
Binary files differ
diff --git a/includes/common.php b/includes/common.php
index 93aef07..4af598b 100644
--- a/includes/common.php
+++ b/includes/common.php
@@ -72,17 +72,22 @@ function placeHeader($page_title)
</div>
</div>
+ <!--
<div class="section_topleft">
<div class="section_bottomleft">
<div class="section_topright">
<div class="section_bottomright">
<div class="section">
<h3>Server Status</h3>
+ <p style="font-size: 7pt;">
+ animesites.de
+ </p>
</div>
</div>
</div>
</div>
</div>
+ -->
<div class="section_topleft">
<div class="section_bottomleft">
diff --git a/index.php b/index.php
index cecc891..b9135e7 100644
--- a/index.php
+++ b/index.php
@@ -1,63 +1,9 @@
<?php
- include("includes/common.php");
+ include('includes/common.php');
placeHeader("News");
-?>
- <div class="news">
- <div class="news_date">08 Apr 2005</div>
- <h3>Bugfix bugfix release 0.0.11.2</h3>
- <div class="news_body">
- <p>The 0.0.11.1 release was too soon, an often occuring crash on exit and sometimes on startup crept in. That's why we've now released 0.0.11.2 which fixes this problem. We've also made the damage indicators float upwards.</p>
- </div>
- <div class="news_author">Bjørn Lindeijer</div>
- </div>
-
- <div class="news">
- <div class="news_date">07 Apr 2005</div>
- <h3>The Mana World 0.0.11.1 bugfix release</h3>
- <div class="news_body">
- <p>Quite a few annoying bugs that were relatively easy to fix were discovered right after the release of 0.0.11. That's why we've decided not to wait until 0.0.12 and instead release a 0.0.11.1 bugfix release just a few days from 0.0.11. See the changelog for details.</p>
- </div>
- <div class="news_author">Bjørn Lindeijer</div>
- </div>
-
- <div class="news">
- <div class="news_date">03 Apr 2005</div>
- <h3>The Mana World 0.0.11 released</h3>
- <div class="news_body">
- <p>This release marks a long due update to the world map, adding some more space to walk around and two new kinds monsters to fight with. Other than that highlights include smoother walking and support for walking diagonally and with the mouse, the upgrade to Guichan 0.3.0 and several stability fixes. See the changelog for details.</p>
-
- <p>Meanwhile we have started development of our own server. It's still in very early stages but we're hoping to make good progress with that in coming months. Now could be the right time to check if you can help in its development.</p>
-
- <p>Finally a note to those who have existing config files (for Linux users this is ~/.manaworld/config.xml): for the moment our server host has changed from animesites.de to www.lindeijer.nl!</p>
- </div>
- <div class="news_author">Bjørn Lindeijer</div>
- </div>
- <div class="news">
- <div class="news_date">29 Mar 2005</div>
- <h3>New Domain</h3>
- <div class="news_body">
- <p>Thanks to the contributions of our fans we finally managed to buy a domain for our project. Feel free to update your bookmarks with:</p>
+ $number = 6;
+ include('cutenews/show_news.php');
- <p><a href="http://themanaworld.org/">http://themanaworld.org/</a></p>
-
- <p>The Mana World Development team would like to thank everyone who's contributing to this project and who's helping to make it the best MMORPG ever! laughing</p>
- </div>
- <div class="news_author">ElvenProgrammer</div>
- </div>
-
- <div class="news">
- <div class="news_date">05 Mar 2005</div>
- <h3>0.0.10 Released!</h3>
- <div class="news_body">
- <p>Don't let the numbering fool you, it's still a quality release. Sorry for all the chaps that were waiting for 0.1.0, but we're still kinda far from that release.. We're now going to maintain our almost monthly release schedule so you all can make lame jokes about "that time of the month".. wink</p>
-
- <p>For those who will want to see the 0.1.0 someday soon, please help us. Once again our greatest need at the moment is the need for artists. So if you can draw (I'm counting stick figures as drawing so don't be afraid, we won't bite you) please contact us. Join the forums and come and greet us on the IRC channel (#manaworld on freenode).</p>
-
- <p>Well then, I now have to leave you waiting for the 0.0.11 release (or you can always just use the CVS to get our latest results without waiting for us to package a release version for you).</p>
- </div>
- <div class="news_author">Rotonen</div>
- </div>
-<?php
placeFooter();
?>