kaigou: this is what I do, darling (W] split infinitives)
[personal profile] kaigou
Plugin is done, and has the dorkiest name ever because it was really late by the time I got to this point and I was tired and couldn't think of anything better so I came up with... well, yeah.. BUT ANYWAY.

It's called Squee*, and it rotates through a fade-in-fade-out of whatever quotes or reviews or excerpts you want. The quote can have an attribution attached, which can either link to a specific post, or to an author (if you've got a multi-author blog), or not link at all. Or it can link to an external address, like to someone else's review of your work. Or it can just have a simple text line after the quote, like if you've got quotes about writing and don't need them to link anywhere but still want to include who-said-it. Or it can just be the quote.

The optional text-only line can also be offset, style-wise, if you want an extra line to appear under the attribution for a quote, meaning you can make it small-font, bold, italic, or blockquote. And while I was at it, I also put in options for what to go between post-title and post-author ("posted by", black square, circle, arrow, etc).

Which generally means you can mix and match until you find a presentation you like, although any presentation you pick will apply to all quotes, so choose wisely. And so on.

Also includes capabilities to set the fade-script, specifically: length of time to show a quote, speed of shift from one quote to the next, and several options for the way the quotes rotate (random, random-start, sequence).

Possibly the craziest part is that it will do a sort of tag-cloud like effect, where it will calculate the font size for you, so no matter how many (or few) words/characters are in a quote, the quote will continue to take up roughly the same amount of space (though you have to figure out what to set the "height" value as, in the script's settings, and fiddle to make sure your maximum & minimum fonts sizes don't go outside that box). If you don't want a variety of font sizes, then set the maximum font size and minimum font size to the same size, and then all quotes will be that size. (In pixels, btw; the math for ems was wayyyy too messy.)

The zip-file contains everything the plugin uses; download, unzip, and upload to your wp-content/plugin folder, then activate in the plugins menu. You'll then see the new menu option for Squee in the Settings menu, and there are instructions at the top of that page on how to get Squee to appear where you want, and lines to copy/paste into your header.php file and your style.css file. I may simplify that further (that is, make those automatic) at some point, but for now, it's definitely beta-version, so let me know if anything breaks. I tested it on three different sites and layouts, but all of those were 2.7.1, so I've no idea if it'll work in older versions.

I didn't think it'd be useful for much of anyone, then I realized that having a clickable fade-in-out quote might be good if (with author-cap on) I wanted to direct readers to reviews about my stuff. Or maybe have a selection of inspirational quotes. Or just quotes from posts I've done (or from guest authors). For that matter, the quotes could be any/all of the above. (However, right now if you select internal links, meaning it links to your own posts, it will disregard external links -- I need to fuss with that a bit more, if someone tells me they'd find themselves using both options.)

http://www.karinoyo.com/media/squee-quote-rotater.zip

I need to convert this over to a post on my main WP install, just so the plugin has a consistent home. I'm not sure I'll deal with subversion and apply it to the WP Plugin library -- mostly because I'm not sure it's something a huge number of folks would want, and besides, it's using a jquery script I didn't write, and I do think I should drop a line to that author to let him know I've tailored his script to fit WP. It's all GPL, anyway.

So, if you're curious and willing to give it a shot and have WP2.7.1, let me know if it works for you. Or doesn't. Although I hope it does. I think it does. It should. OH. Righto, example currently installed at http://www.scimitarsmile.com, just on the main page. (If someone wants to know how to make it appear only on one page -- like the front page, or on a search page, or at the top of posts, etc, let me know and I'll explain that bit in more detail.)

*It's actually an acronym. That's the dorky raised-military part.

Date: 1 Jun 2009 01:37 am (UTC)
From: [identity profile] difrancis.livejournal.com
Very cool! I downloaded. Now I need to figure out how to implement. Not my strong point, given the brain melt. But will try. How are you?

Date: 4 Jun 2009 03:37 pm (UTC)
From: [identity profile] kaigou.livejournal.com
Hey, for brain melt, try landscaping your yard in 90' weather. More like total body melt -- been meaning to post but mostly working in yard, then coming back in and sitting in front of the fan while I suck down enough water to equal my body weight, and that's a fair amount right there. *melts*

If you have questions, just email me with them, and I'll try to help you through it. Been thinking that maybe instead of offering so many differing options, I should just do examples -- like "which do you want it to look like?", and let people pick the image that corresponds, rather than make them puzzle out what it means to say yes here and no there.

But, like I said, still in beta. Eventually it will be finished -- and on the plus side, I'm learning tons, and that will really help with the long-sidelined (too long, maybe) story database project I told you about a few months ago.

whois

kaigou: this is what I do, darling (Default)
锴 angry fishtrap 狗

to remember

"When you make the finding yourself— even if you're the last person on Earth to see the light— you'll never forget it." —Carl Sagan

October 2016

S M T W T F S
      1
2345678
91011 12131415
16171819202122
23242526272829
3031     

expand

No cut tags