A-  A  A+ RSS Feed

Deep Thoughts by Robert Felty

thoughts on wordpress, latex, cooking et alia

Archive for the 'javascript' Category

Monday, August 25th, 2008

Collapsing monopoly

I am happy to announce the release of my fourth collapsing X plugin for WordPress. This one is Collapsing Links, which was requested by several users of my other plugins. With the development of this plugin, I finally added the ability to have multiple instances of the widget. This took some careful study of some of the default wordpress plugins, and forced me to completely re-design how the plugin options are handled. In addition to the ability to have multiple instances of the plugin, the re-design also reduced the number of database queries, since now all the options for the plugin are stored in one row in the database. For more details, look at the Collapsing Links page.

Now that I have figured out these details, I plan on re-working the remaining plugins to allow multiple instances of the widgets as well. Expect to see these updates over the next few weeks.

There is one downside to having multiple instances of the widgets. In the current versions of Collapsing Archives, Categories, and Pages, you can use the plugin either as a widget or standalone. In future versions of the plugin, it will only work as a widget. When I originally wrote these plugins, widgets were new, and not standard for wordpress. Now they seem pretty ubiquitous, so hopefully this shouldn’t pose too much of a problem.

I hope that other people find the plugin useful. I must say that I enjoy developing wordpress plugins, since it a great way to utilize many different languages all at once — xhtml, css, javascript, php, and sql.

Thursday, December 20th, 2007

Releasing the Collapsing Archives WordPress Plugin

Finally getting around to releasing some more plugins. I started using the Fancy Archives plugin by Andrew Rader about the same time I started using his Fancy Categories plugin (maybe in the reverse order actually). I have been modifying it for some time now, and it seems appropriate to release it as a new plugin. The functionality is best described by simply looking at my archives list on this blog. The default wordpress archives list is a simple unordered list. This plugin gives it some dynamic capabilities, similar to the default on Blogger. I have decided to keep increasing the version number from what Andrew was using, so I am calling this version 0.6. Here are the main highlights:

  • Changed name from Fancy Archives to Collapsing Archives
  • Changed author from Andrew Rader to Robert Felty
  • Added option to link to archives.php
  • Added option to list in chronological or reverse chronological order
  • Added triangles which mark the collapsing and expanding features
    That is, clicking on the triangle collapses or expands, while clicking
    on a month or year links to the archives for the said month or year
  • Changed behavior from starting all expanded and then collapsing on page
    load to the opposite
  • Removed the rel=’hide’ and rel=’show’ tags, because they are not xhtml
    1.0 compliant. Now uses the CSS classes instead

You can download it from the WordPress plugin repository.

Wednesday, December 19th, 2007

Releasing the Collapsing Categories WordPress Plugin

I started using the Fancy Categories plugin by Andrew Rader about 6 or 8 months ago. I have been slowly modifying it for some time now, and it seems appropriate to release it as a new plugin. (Note that I thought that Andrew Rader disappeared as well, but I now have found him at his new home at void*. The functionality is best described by simply looking at my categories list on this blog. The default wordpress categories list is a simple unordered list. This plugin gives it some dynamic capabilities, similar to the default on Blogger. I have decided to keep increasing the version number from what Andrew was using, so I am calling this version 0.2. Here are the main highlights:

  • Changed name from Fancy Archives to Collapsing Archives
  • Changed author from Andrew Rader to Robert Felty
  • Added triangles which mark the collapsing and expanding features That is, clicking on the triangle collapses or expands, while clicking on a month or year links to the archives for the said category. This uses html entities (dings) instead of images, for a variety of reasons
  • Lists the titles of posts, instead of just listing subcategories
  • Removed the rel=’hide’ and rel=’show’ tags, because they are not xhtml 1.0 compliant. Now uses the CSS classes instead
  • MOST IMPORTANTLY — it is compatible with both the pre 2.3 database which uses categories, and the 2.3+ database structure which uses the tag taxonomy

You can download it from the WordPress plugin repository.