November 2007

You are currently browsing the monthly archive for November 2007.

There are a few more tweaks and bug fixes in Tarski 2.0.3, all of which are detailed in the changelog.

The update notifier has been the subject of a few improvements, including adding support for PHP‘s own file_get_contents function for people whose servers don’t have libcurl installed. Its error handling has also been made more robust, so when required PHP components aren’t available it will let users know what the issue is and how to resolve it.

If you want to use images as links but don’t like borders, the new imagelink2 image class will let you do that simply and easily.

There are a few text changes in this version, so if people could provide updated translations (shouldn’t take long) that would be wonderful.

Bugs and suggestions to the forum please.

Tags: , , , , , , , , , , , , ,

Thus far Tarski’s wonderful translators have posted new translations for the following languages:

  • Bosnian
  • German
  • Spanish
  • Bahasa Indonesian
  • Dutch
  • Swedish
  • Brazilian Portuguese
  • Danish

If you’ve done a previous translation for Tarski, I’d be very grateful if you could update it for the new version. If you haven’t, and you’re able to translate Tarski into a language missing from the list, why not have a go? All translations, both new and updated, should be posted on the forum. Cheers!

Tags: , , ,

Forumgoer Detective has posted a thread about Tarski-specific plugins, saying

Maybe if we share our tarski plugins we could find some useful things. In my case i have a very simple but effective plugin, so i don’t have to worry about hacking tarski core files

I’ve added what I hope is a useful tip about hijacking the Tarski sidebar.

November 12, 2007 by Benedict Eastaugh | Permalink

With any major Tarski release, I know that there are bugs which won’t rear their ugly heads until it’s in the wild. Tarski 2.0.1 fixes the ones that have shown themselves so far. Details are in the changelog.

Jordan is the man to thank for the major fixes: he’s written a new, more efficient feed parser for the update notifier that should eliminate the memory limitation issues a couple of people had, and added an increased level of robustness to the options updater.

There are also fixes for a couple of CSS bugs, one where the navbar would disappear when only title and tagline were set to not display, and another where the next/previous post navigation disappeared in Internet Explorer.

Lastly, Tarski’s stylesheets are now added via the wp_head hook, and they can now be filtered. This means if you want to replace the stylesheets entirely, and just use the markup skeleton, you can do it without editing header.php. You could also use it to, for example, add per-page stylesheets or change the URLs to point to a separate file server.

Bugs, suggestions etc. to the forum as always.

Tags: , , , , , , , , , ,

This plugin removes the tagline that usually appears in the home page title; I wrote it following a request in the forum. Get the code here, save it as remove_tagline.php in your plugins directory, and activate it as normal.

November 8, 2007 by Benedict Eastaugh | 2 comments

I’ve written a small plugin that changes the separator character in Tarski’s document titles. You can get the code here; just save it as title_sep_swap.php in your WordPress install’s plugins directory. The code provided changes the separator to the pipe character, but you can make it use whatever you prefer by changing the second argument of the define call on line 11.

November 6, 2007 by Benedict Eastaugh | Permalink

Tarski’s development reflects my own view of best practice: steady, incremental improvement rather than the occasional total rewrite. Sometimes, however, a small revolution is needed, and Tarski 2 provides one.

The new version includes a raft of changes. Taking a look under the hood one might be tempted to say that it’s an entirely new theme, but the experience should remain largely the same, both for admins and users.

Tarski’s options code has been rewritten from the ground up, making all sorts of new features possible. You can now select different widgets for posts and pages than are displayed on the rest of the site. It’s also possible to delete Tarski’s options entirely; however, they’ll remain in the database for another two hours, so if you delete your options by accident, you’ll be able to restore them within that window.

People shouldn’t have to learn PHP in order to use WordPress, or Tarski, but until now a modicum of technical know-how was required in order to add links (other than WordPress pages) to Tarski’s navbar. Now you can simply designate one of your blogroll links categories, and all the links in that category will be appended to your Tarski navbar.

Several people in the forum wanted tags to display everywhere, not just on single post pages, so we’ve added an option for that to the Tarski Options pages. The same goes for reversing the order of the title: now you can have the title of a post appear before the name of your site, just by ticking a box on the Options page. Finally, you can choose to link to either Atom or RSS feeds.

WordPress has automatically generated both types for quite a while now, but Tarski hasn’t linked to them—an oversight I’m very happy to have corrected. In addition to the site feed, the following page types now have automatically generated feed link elements in the document head: category archives; tag archives; day, month and year archives; and finally, searches.

Another request was for Microformat support. A couple of things made it into Tarski 1.6, but Tarski 2 brings hCard to posts and comments, and hAtom to posts.

Tagging also gets a boost with proper support for tag intersections and unions. Templating functions for this kind of thing aren’t even in the WordPress core yet, and it’s nice to be ahead of the curve for once. To see it in action, go and have a look at what’s tagged with bugs or features, or bugs and features. Before Tarski 2, all you’d get is the first tag’s name in the title. Now the title lists all the tags, and whether it’s an intersection (and) or a union (or).

With all the rewritten code comes a new structure: the files in Tarski’s library directory have been completely reorganised. Included code libraries (right now, just the Feedparser library which does the heavy lifting for Tarski’s version checking mechanism) go into library/includes, while PHP classes (and supplementary functions) go into library/classes (right now it’s just the Version and Options classes).

All Tarski’s CSS files, apart from style.css and the alternate styles, go into library/css, while JavaScript files are in library/js. Finally, Tarski’s large functions library has ended up in library/helpers. This new structure makes development easier, since it’s easier for me to remember where everything is, and it cleans up a lot of horrible, messy code that had been hanging around (in many cases) since the first release of Tarski, back in March 2006.

We’ve come quite a way since then, and I’d just like to take a moment to thank everyone who’s helped along the way. People who’ve suggested ideas and reported bugs in the forum; people who’ve helped test Tarski; people who’ve provided code, or artwork, or a critical eye. Jordan Liggitt in particular deserves a lot of gratitude for his hard work on this release. He’s helped make Tarski easier to translate; written a migration routine to carry your options over into the new system; caught various bugs in the new code; and contributed a number of thoughtful suggestions on safeguarding against CSS namespace corruption and improving Tarski’s sidebar options.

Again, thanks to everyone who’s contributed to Tarski in some way, and I hope you enjoy using the new version.

Bugs and suggestions should be posted, as always, on the forum.

Tags: , , , , , , , ,