Tag Archive for 'theme_switcher'

27
Jan

Die, spammers, DIE!!!

Over the last few days, I’ve noticed a few spam comments slipping by SpamKarma2. At least a few of the bastards seem to have figured out a way around the javascript payload test. These have all been direct comments, not trackbacks or pingbacks. SK2 still works pretty well, as it’s catching about 20+ spams for each one it allows through, so I’m thinking about supplementing SK2 with WP-Gatekeeper.

I had some trouble with Gatekeeper earlier, but I think it was primarily due to the fact that I have multiple themes on my blog. (I also saw a note in the Gatekeeper changelog about a bug that blocked trackbacks and/or pingbacks in the version I was using.) I’ve upgraded Gatekeeper to RC4, and I’m going to disable the theme switcher (and my other themes). Then I’ve got to hard-code a call to Gatekeeper’s challenge routine in my comment form(s).

Sounds like a job for this weekend, since it’ll probably take a few hours to get all this done. God, I hope that You have a special circle of Hell set aside for spammers!

12
Sep

Samir’s ‘Steam’ theme available

A few months ago I installed Steam as one of my blog’s themes. I got an email from Eric S. Raymond yesterday asking for a copy of the theme, since the original author doesn’t seem to have it available any longer. I’m happy to oblige! The following files are available:

  1. Samir’s “as-released” Steam 1.5;
  2. A patch file which adds theme-switcher support to Steam 1.5;
  3. Steam 1.5.1, which is merely 1.5 with the above patch.

I figured that I might as well write up a little “how-to” as long as I was going through the effort of packaging this theme. This isn’t necessarily “best practices”, it’s just what I did and it seemed to work.

The patch was created per this article. The 1.5.1 theme was packaged using gnutar: tar -czvf steam-1.5.1.tgz steam-1.5.1/*

To use this theme, download Steam 1.5.1 to your WordPress’ wp-content/themes directory. If your web browser doesn’t automatically extract the files, use gnutar: tar -xzf steam-1.5.1.tgz If you have Ryan’s wpthemeswitcher installed, activated, and your current theme supports it, you should be all set. Otherwise, go to your blog’s admin page then select “Presentation” then “Themes”, then select the theme you’d like to use, (presumably Steam 1.5.1).

Hope this helps!

31
Aug

Footer plugin requirements, notes

A few days ago, Joseph and I were talking about bolting statcounter onto our blogs. He’s the one that pointed out statcounter to me, and all he needed to do was add the statcounter script to his theme’s footer.php file. This would probably work for any single-theme site, but I’m still running multiple themes on my blog. I need to do one of the following if I want to use statcounter:

  1. Drop all but one theme. There are several good reasons for this, most important of which is maintenance. This would allow me to add the statcounter script to the remaining theme’s footer.php and I’d be done.
  2. Add statcounter to all my themes. This probably wouldn’t be too bad, except for maintenance–whenever a new version of one of my themes came out, I’d have to manually reapply my changes.
  3. Write a plugin to insert the statcounter script in the footer of every page. This would be the most work up front, but it would give me a good excuse to learn how to write plugins for WordPress.

I found some useful resources for plugin authoring. The WordPress codex has a section on writing plugins. Owen’s tutorial is a great introduction–just read it and start hacking! :) Carthik’s Plunge into Plugins article has lots of good advice, but isn’t a tutorial–check it out after/while you get started with Owen’s page. More good info is available on the Codex page Writing a Plugin.

I’ve started working on this plugin, and I’ve already been bitten by the “extra blank line” problem. (Admin interface was reporting “Cannot modify header information - headers already sent by…” error. Note to self–scroll to the bottom of each PHP file, and make sure the PHP close tag is right at the bottom of the file.) I have the code to insert arbitrary text into the footer, but I still need to add the Options menu which would allow J. Random User to edit the text to be inserted. (Right now, the text is hard-coded in the “plugin”, which I have installed and activated on this blog. Check the bottom left corner of any blog page for the statcounter.)

I don’t see any reason for this plugin to be statcounter-specific. It would be more useful to provide some sort of generic footer plugin which would allow HTML or javascript to be inserted in the footer. We’ll see how it goes. If I’m happy with it by the end of the night or later this week, I will go ahead and release it.

17
Jun

New theme(s) installed

I went searching for a new theme yesterday. Don’t get me wrong–the default theme is very nice, easy to read, etc., but I just couldn’t bring myself to use the “just another WordPress blog” theme. Also, I wanted a theme that took advantage of the full width of the browser window.

The WRC Theme Viewer is an awesome tool for checking out a huge number of available themes, and I went through every single one of them. (Took me a while, even with a fat pipe at home.) I found about 20 themes that had feature(s) I liked and/or looked nice. I’ll list all ~20 of them, along with my impressions, in another post. But the two that I decided to install are Elvgren and Borderline Chaos.

I love Denis Somar’s Elvgren theme. The layout suits me, especially the article appearance. The font styles and colors for the articles are very well-chosen, IMO. The Elvgren prints are gorgeous, but they are also the reason I chose not to make this my default theme–the bandwidth required for this theme could be a killer for some users. (Until very recently I had been stuck with a 33kb/s max pipe, and bandwidth considerations are still very important to me!) But since I like this theme so much, I installed a theme switcher plugin so that my readers (all 2 of them) can choose their preferred theme. (More on this below.) This theme worked great for me “right out of the box”, so I haven’t tweaked it (yet).

I chose Marianne’s Borderline Chaos as the site default. I love the bold, striking look of it! And the theme overhead (wrt bandwidth) is almost nil. There were a few things I needed to tweak on this theme. On the nit-picky side, I didn’t like the way my blog title wrapped, so I made that box a fixed width instead of using a width percentage. But the major problem I had with this theme was lack of a “Site Admin” link. Perhaps I’m a complete moron and there’s a knob for this somewhere, but I didn’t find it upon cursory inspection. So I added a “Meta” sidebox and put the appropriate stuff inside it. This caused me to run out of box styles, and instead of doing the simple thing (adding another sidebox style in style.css) I let a brain-o slip and renumbered all the sideboxes, getting rid of the “Pages” sidebox. I’ll go back and fix this tonight. Sigh.

Theme switching (along with everything else about blogging and WordPress) is new to me. I found this tutorial for Ryan Boren’s wpthemeswitcher to be a big help. Who would have thought that theme switching could be this easy? I added theme-switcher code to the WordPress default theme, so now all my themes (except Classic) can be selected on-the-fly by individual readers.

Many thanks to all the authors/designers mentioned in this post! Pingbacks are on the way, but I’ll be leaving comments on everybodys’ blogs “in person” as well.




December 2008
M T W T F S S
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031  

Tags

abramoff accessibility acetylene activism aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy anti failure any browser apache apple apple pie applescript arden arcade arden park ariana arnold ashland astronomy attic attika audio avid reader backup baen bart bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card cabinetry caira caitlin california candamir caroline carpet cat cateye cdrom celebration cellular phone century cheese chicken chico chimney chinese chipotle chocolate christmas chumby city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports datarescue date format death delicious monster democracy now Democrat demolition dessert dickens diff disaster discrimination discworld dishwasher diskwarrior dixie belle dock doors downing street memo drm dryer drywall dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news feed feedreader fence finder firefox first4internet first amendment fishmeal flash flickr flooring foreign exchange foundation fox and goose framing freebsd freedback fyq garage garden geek geotag geourl gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween ham handspring hardwood harry potter headmeta high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html humor hvac ilovejackdaniels impeach inspection insulation intel internet ipod ipodder iq iraq isight itunes ivins iwantsandy java city javascript joint chiefs joseph jott journalized blue judges cup kctc khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard lhc liberal library linkedin ljurban lodi logic logo lungren maaloufs mac macaroni macbook mailinator malware map marin markdown mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving munchkin murray mushroom music mynetflix mysql naked lounge nerd score netflix network new urbanism new year New Yorker nofollow nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palast palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portupgrade potato powerbook printer programming project gutenberg pryde punk puzzle qiana quilt quilt shop quiz quote r5 records racism radio railroad recent comments recipe redalt remodel resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad san francisco sandwich santa cruz scam scandal school days scplugin security session report shakespeare shuffle sigma siriradha sitemap snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village van zant veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj yaaarr yard