Held-O-Matic

by PapaScott on 05 June 2004

If you can’t tell from my post titles. I’m in a musical mood lately. When I started listening to Wir Sind Helden, I thought to myself that every line of their lyrics could be the tagline for a weblog. And now I’ve done it. My tagline is now a random Helden lyric. The script is literally 3 lines of PHP (stolen from the Hello Dolly plugin in WordPress), so I won’t bother to repeat it here.

Update 27 Sep 2004 I’ve switched musical directions. The lyrics are now Wouldn’t It Be Nice by the Beach Boys, but may return to the Helden in the future.

{ 5 comments }

Jean Pierre June 5, 2004 at 23:06

Looks great :)

Johannes June 6, 2004 at 00:06

Phantastic!

Ben June 18, 2004 at 00:06

Hey! Could you enlighten me as to how you did it exactly? I’m a bit of a novice when it comes to php, you see…

PapaScott June 18, 2004 at 06:06

function heldomatic() {
// Based on Hello Dolly by Matt Mullenweg
$lyrics="Blah 1
Blah 2
Blah 3" ;
// Here we split it into lines
$lyrics = explode("n", $lyrics);
// And then randomly echo a line
echo wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] );
}

Ben June 18, 2004 at 13:06

I found a plugin which does the same thing. But thank you for helping.

http://www.w-a-s-a-b-i.com/archives/2004/05/27/wordpress-random-witty-text-plugin/

Comments on this entry are closed.

Previous post:

Next post: