After you build it do you bother checking it?

It may seem like all I do is sit around and bitch about how bad a lot of other websites are but if they weren’t so badly set up and maintained I wouldn’t be bitching. Just now I followed a link from within LeNell’s newsletter (a Wine and Spirit Boutique in Redhook Brooklyn) to Artisanal Cheeses (No Doctype) to Picholine. I wasn’t surfing for the purposes of finding flaws, I was just a regular site visitor for once in my life, looking to find something interesting on subjects I find interesting:cheese and booze.I had no problem with either site’s design.I found both to be engaging and attractive. But I sure do hate it when I click on what is obviously supposed to be a link but doesn’t work. Like Picholine’s restaurant menu. It was Flash but the links to parts of the menu didn’t work in Firefox –which amazes me–even if it isn’t as used as Internet Explorer it is used by almost half of your site visitors–and if you checked traffic stats you’d see this is true. Too big a number not to care if visitors using that browser can use your website!

So I switched to IE7 and clicked the link which again did nothing but opening the page in another window led me to a blank.pdf file. Why a pdf and why blank? And why not warn someone that it is a link to a pdf,first?
The short answer is laziness. It’s easier for some designers to load a .pdf than to make another page. It’s easier to design a .pdf than to design menu in a web page–a challenging task…
But what else is a restaurant web site supposed to show site visitors? This is something I see a lot: a designer choosing flash over substance and ending up delivering nothing. The site may as well have been a parked domain notice for all it’s prettiness.

When I see a site that doesn’t work it makes me think the site owners are careless and lazy. And I don’t want to eat food cooked by careless and lazy people.

Make your Twitter badge validate

If there is anything I hate more than unreturned emails it’s doodads that make my pages fail validation.3rd on my list are people who breathe audibly and 4th are people who eat audibly. Once I fell asleep while 2 of my pals were eating pizza and their chomping and slurping noises made me sick to my stomach…while I was sleeping!

Less is more

I am trying to rely less on plugins. After the recent upgrade and ensuing bruhaha over beloved plugins that didn’t work with 2.5, I am loathe to add new ones to my “have to have” list if I can help it. Many times a plugin is a labor of love and the author will work hard on getting it to work with the latest version of WordPress.

But the plugins that kinda sorta worked but that you loved probably won’t be.Then there are the plugins that haven’t worked since version 2.2.1. There are folks stuck on an old version of WordPress because they can’t bear to give up one little plugin (which was probably remade better by someone else,anyway).

It’s just a plugin

These folks are missing the point,I think. Plugins are meant to enhance your blog or site–not be the focus of it. If you are not upgrading because of a plugin or two of course that is your choice.But if you look around you’ll find a replacement. I researched a list of plugins I need for a client’s site and and found their WP 2.5 compatible doppelgangers,no sweat. If only that client would return my emails and give me the go ahead I can upgrade his site from 2.1., I’d be happier.

Old school

So I chose to use the html & javascript badge instead from Twitter. Only thing is, it has an “unfinished” <ul></ul> in the block of code and no ampersand in the javascript url. That amounts to 4 errors but it’s easy enough to fix.
I just mixed the block of code up until it validated and worked (kind of important,no?).
And anyway if you are using this in a text widget you don’t need the <h2 class=”twitter-title”>
so snip that right out and use the title space in the text widget instead.
*edited because the ampersand got parsed,duh*

The Twitter Badge

<div id=”twitter_div”>
<h2 class=”twitter-title”> Twitter Updates </h2>
<ul id=”twitter_update_list” </ul> </div>
<script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script>
<script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/ »»
MY_TWITTER.json?callback=twitterCallback2&count=5″></script></div>

Url was too long, »» shows the line break.

This is one culprit:
<ul id=”twitter_update_list” </ul> </div>
I added an empty set of li tags: <li></li> and put them inside the ul tags.
This is the other culprit. I added an ampersand:
MY_TWITTER.json?callback=twitterCallback2&count=5

A Twitter Badge that validates

<div id=”twitter_div”>
<ul id=”twitter_update_list”> <li></li> </ul> </div>
<script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script>
<script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/ »»
MY_TWITTER.json?callback=twitterCallback2&count=5″></script></div>

MY_TWITTER should be replaced with your Twitter username.

I don’t use Twitter enough to put a badge in my sidebar, I edited the block to be valid for my friend’s site.

WordPress 2.5 gallery needs work.

First let me say that I’m not knocking WordPress.
Here are some failings of the new gallery for WordPress 2.5.
The new function is terrific but it needs some work.
This is what I have found so far.

Style tags are inserted by the gallery shortcode into the post or page itself.This is very much not allowed, pages and posts with gallery shortcode will not validate because of this.
Clicking on archives in the sidebar or where ever you put your archives will show the gallery css as the excerpt of the post with a gallery in it, as well as the captions for each image.
The detailed list html is incorrectly nested in the post or page, post or page fails validation.
Alt text only gets inserted on single images.the gallery shortcode skips this, page/post fails validation.

Viewing source reveals this hidden comment:
See gallery_shortcode() in wp-includes/media.php.
Are we to check this file out so that we can see if we re-code ourselves? Fat chance!
Good news, there is a plugin to fix this.
Check the forums for updates on this issue and the plugin.

How to use the gallery in WP 2.5

2 posts ago I sort of skimmed this topic and while I got just one response I figured my post was vague enough for a do over.

That post wasn’t intended to be a How-To post but more of a heads up. I had not found any reasonable documentation of how to use image.php,myself. Matt Mullenweg showed us how to use the uploader but didn’t mention image.php. But I did find out that it is very easy to use. Easy is your good friend.
So if you are confused about how it works and what the heck image.php does and how it all comes together to show a gallery similar to Matt’s. I think I can help some people and confuse a few others. Just kidding.
Just a tidbit: image.php is like attachment.php.More on that later.

Caveat:Matt’s main photo page has fancy pagination- a whole other deal- and not a weapon in my arsenal, sorry.***It’s Gallery2***

My how-to will deal with image.php and how it acts to display the gallery.
Continue reading How to use the gallery in WP 2.5