jump to navigation

Unthreaded Editable Tagline
April 15, 2008  Posted by Al Castle

trackback Categories: Castle, Friends, Marketing, Puter Stuff, Squirrels, TimeWaster, Web Design & Dev  

For a long time I had a bit of code in my blog header, just beneath the blog title (Unthreaded), that randomly choose and displayed a quote, quip or blurb that I had written. Things like “Castlemonkey Speaks of Lemon Scented Victory” or “Castlemonkey Speaks of hotdogs with no cream cheese” and so on.

Sure to become a bore quickly, I’ve added in some code to make the tagline for this blog editable. By anyone. [Currently I'm not requiring you to identify yourself or login to do so. This may change later.]

Edit the Unthreaded Tag line

Simply click on the text, whatever it may be, as anyone is free to change it, and you should see something like the picture above.

Type in whatever you like and click SAVE. The changes are global and saved to the database, meaning everyone who views the site right after you made that change, will see the new tagline. Until it’s changed again.

Dangerous huh?

Attribution Update: This idea was swiped from my amigo David. You can also see his version at Cranberry.

Share/Save/Bookmark

Comments»

1. Al Castle - April 15, 2008

To do a random message I wasn’t using a database. Just an array with sayings, shuffling and displaying. Nothing fancy.

< ?php

$quips = array( "Al Castle Rocks',
 'midgets rule & smell of cabbage',
'Lauren thinks latinos are hot',
'and so on' );

shuffle($quips);
$saying = $quip[0];

?>
2. The Midget - April 15, 2008

I don’t know what your comment above means, other than Lauren thinks you and Chris are hot.

3. poem - April 15, 2008

that’s awesome. and dangerous. just don’t piss me off ;)

4. Al Castle - April 16, 2008

I’ve added a page so that you can see all the quips to date in real time.

Click on the tagline quips tab at the top of the page. Or go here
http://blog.alcastle.com/tagline-quips/


Yes, I would like to receive notification on incoming comments!