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 March 31, 2007 02:01 AM | TrackBackThree 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 AMI 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 AMMinx 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 AMDude... 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 AMSorry 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 AMWillie:
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 PMCP:
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 1, 2007 02:41 PMHere's another one
http://www.???.com/xencor5/quote.htm
replace the ???with geocities
Posted by Madfish Willie at April 1, 2007 02:48 PMIf 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 2, 2007 04:46 AM