sugardeath

Soft Pajama Pants and PHP Scripts

Posted on June 14, 2004

My mom just came back from the store and gave me a pair of pajama pants that are lighter and softer than the sweat pants I've been wearing.  They're really nice, soft, and (most importantly) large!  They're awesome, I won't be changing out of these for a looong time =P

Earlier, Jason asked me if I knew how to make a page (specifically, the main TF page) use a different style sheet based on the time of day.  Jason was trying to do it with mod or something like that.  I still have no clue what mod is, even though he tried to explain it to me.  So, after a nice Tribes 2 session, I hopped on google and searched for 'php time of day script.'  I came across this nifty script which displays different greetings based on the time of day.  Well, I just took it and stripped it down HEAVILY.  It now only checks to see whether it's before 10PM, or after 10PM, and displays the appropriate stylesheet. 

Also: I added a link to Questionable Content, a hilarious comic about the life of an introverted guy, his anthropomorphic PC, and a chick that moved in with him after she caught her apartment on fire.  It's awesome, and seeing as how they're only on comic #140, it'd be best to catch up now and read periodically, than to catch up once they hit #300 or so.

Filed under: Miscellaneous, PHP 4 Comments

Updates

Posted on June 13, 2004

Just some minor updates to the site that have accumulated over the past few days.

First, the permalink no longer shows when there is only one post on the page.  Second, it's not so obvious that there's a missing link (the admin-only "Edit this post") in the posted by line anymore.  Third, I centered the "next post | home | previous post" and changed the surrounding text from "< -" and "->" to "< <" and ">>", a little more obvious if you ask me, when a single post is displayed.  Fourth, added a few more links in the sidebar (2 more friends, 1 more news, and 2 more other), and I also added the appropriate link relationships (XFN) for anyone under the friends heading.

Das ist alles.

Update: Also got rid of the "posted by satoshi" because y'all know who's site this is, and i won't let anyone else post stuff on my site.  And the time no longer displays the swatch internet time (beat time, for you PSO players), just 24 hour time.

Yar!  Ph34r my l337 PHP skillz!

Posted on June 11, 2004

I finally decided to mess around with PHP, and here's what I made!  It's a VERY simple variable script, it just checks to see if a variable, $var, is equal to 'true' or not, and then displays text accordingly.  It's awesome.  I'm so proud of myself :-P.

Filed under: Miscellaneous, PHP 2 Comments