mu.nu - We're sorry we accidentally destroyed your panties.

March 31, 2007

Rotating Taglines

Is there any way to have the tagline/blog description be randomly selected from a pre-set list of variable phrases? I'd like to replace "Apathetic curmudgeonry from the Western District of the Commonwealth of Virginia" with something else, but the thing I have in mind would benefit from my aforementioned idea.

Thanks!

Posted by: Country Pundit at 02:01 AM | Comments (420) | Add Comment | Trackbacks (Suck)

1 Three solutions I can think of:

Javascript
PHP
Minx

If you don't know Javascript or PHP, best to wait for Minx. Or someone might have a nice working example that you could just paste into your template. Anyone?

Posted by: Pixy Misa @ at March 31, 2007 03:00 AM

2 I had thought about a Javascript thing, but it's beyond my abilities. Thanks for confirming that it might work!

Posted by: Country Pundit @ at March 31, 2007 03:23 AM

3 Minx has a nifty [quote:random] tag.

You create a template which is just a list of quotes, and then you put [quote:random templatename] in your template somewhere, and viola! I just set up one on my blog.

Posted by: Pixy Misa @ at March 31, 2007 04:34 AM

4 Dude... go to my blog... pull a source file... grab the 'getquote' code and the "onload= " line and put it where you want it to show up.

My code rotates a drinking toast in the sidebar, but you could place the code whereever you want it to rotate...

Good Luck!

Posted by: Madfish Willie @ at March 31, 2007 04:52 AM

5 Sorry Pixy.. didn't read the comments before I posted my reply... however, the code in my blog should work with a current MT template...



Posted by: Madfish Willie @ at March 31, 2007 04:55 AM

6 Willie:

I stole the code from your site (both parts of it) and stuck the large snippet in the template where span class="description" was, but it doesn't seem to have worked.

What am I doing wrong?

Posted by: Country Pundit @ at March 31, 2007 02:03 PM

7 CP:

Go here for some code you can modify for your site... you have to be php enabled to run it...

http://www.ftls.org/en/examples/php/random_txt.php3

Posted by: Madfish Willie @ at April 01, 2007 02:41 PM

8 Here's another one

http://www.???.com/xencor5/quote.htm

replace the ???with geocities

Posted by: Madfish Willie @ at April 01, 2007 02:48 PM

9 If I have to ask what PHP-enabled is, that would be a good sign that I'm not, right? Meanwhile, I think I've got the GC one working just fine. I really appreciate your help, MFW and PM.

I would have never figured this out myself.

Posted by: Country Pundit @ at April 02, 2007 04:46 AM

10 This blog site has a lot of very useful stuff on it! I like your blog,welcome to my blog cheap ralph lauren!

Posted by: cheap ralph lauren @ at June 30, 2011 08:21 AM

11 I am certainly thankful to you for providing us with this invaluable info. My spouse and I are truthfully grateful, precisely the computer data we needed.

Posted by: ray ban sunglasses @ at July 04, 2011 09:14 AM

Hide Comments | Add Comment






Processing 0.0, elapsed 0.0089 seconds.
22 queries taking 0.0054 seconds, 33 records returned.
Page size 10 kb.
Powered by Minx 0.8 beta.