Seiken Densetsu Weekday-Program

Expanding the Mana Universe. For fans, by fans.

Moderators: Faalstar, Kefka

Post Reply
User avatar
Nedliv
Lullabud
Posts: 19
Joined: Sun Apr 18, 2010 5:36 pm
Location: Last Outpost

Seiken Densetsu Weekday-Program

Post by Nedliv »

Hi over there,

I'm almost alive and I coded some little mindhelper.
Assure you all remember the Day/Night-circle in SD3, right?

I liked that idea so much, so I coded a program, that's showing the current weekday in Seiken Densetsu-mode.
Not even much, this thing can do, but for helping keeping the right sequence of spirits in mind, it's fabulous :D

So, I translated my work and want to share it with you.

SD Days (english version)

Hope, you enjoy it :)

kind regards,
Nedliv
User avatar
DeadWolf
Spikey Tiger
Posts: 1456
Joined: Wed Jan 31, 2007 3:09 am
Location: Deceased

Re: Seiken Densetsu Weekday-Program

Post by DeadWolf »

I had a little script I used on my blog for the longest time that did the same thing. It was a simple switch of pictures based on what day of the week it was (Day of the week according to the server that is.) Here is the script if you are interested.

Code: Select all

function element($date=""){
	switch ($date)
	{
	case "Mon":
		$element = "<img src=\"/img/Luna.gif\" title=\"Today is Luna day\" alt=\"Today is Luna day\" /><br />Today is Luna day";
		break;
	case "Tue":
		$element = "<img src=\"/img/Salamando.gif\" title=\"Today is Salamando day\" alt=\"Today is Salamando day\" /><br />Today is Salamando day";
		break;
	case "Wed":
		$element = "<img src=\"/img/Undine.gif\" title=\"Today is Undine day\" alt=\"Today is Undine day\" /><br />Today is Undine day";
		break;
	case "Thu":
		$element = "<img src=\"/img/Dryad.gif\" title=\"Today is Dryad day\" alt=\"Today is Dryad day\" /><br />Today is Dryad day";
		break;
	case "Fri":
		$element = "<img src=\"/img/Jinn.gif\" title=\"Today is Jinn day\" alt=\"Today is Jinn day\" /><br />Today is Jinn day";
		break;
	case "Sat":
		$element = "<img src=\"/img/Gnome.gif\" title=\"Today is Gnome day\" alt=\"Today is Gnome day\" /><br />Today is Gnome day";
		break;
	case "Sun":
		$element = "<img src=\"/img/Mana_holy_day.gif\" title=\"Today is Mana Holy day\" alt=\"Today is Mana Holy day\" /><br />Today is Mana Holy Day";
	default:
		$element = "Timeless";
	}
	
	return $element;
}
Examples would be:

Code: Select all

//returns current date
$date = date("D");
echo element($date);

Code: Select all

//timeless when empty or garbage
echo element();

Code: Select all

//Returns monday
echo element("Mon");
User avatar
Nedliv
Lullabud
Posts: 19
Joined: Sun Apr 18, 2010 5:36 pm
Location: Last Outpost

Re: Seiken Densetsu Weekday-Program

Post by Nedliv »

aaw, that's cool.

Don't anybody think, that's a little weird? my rl-friends do think so ^-^;
Never mind, I like to "convert" the weekdays in my daily routine :D
Does spraying some mana magic in here, I think.

kind regards,
Nedliv
User avatar
Dr. Sheexy
Site Admin
Posts: 3870
Joined: Sun May 21, 2006 9:49 pm
Location: Texas

Re: Seiken Densetsu Weekday-Program

Post by Dr. Sheexy »

We used to have a little javascript weekday code on the main page. I think that was the first actual thing I wrote for the site, haha. It also used Lumina and Shade for the time of day. After the new layout we we kinda forgot about where to put it and never ended up using it. We should bring it back though.
Post Reply