Tagged: widgets

Code updates

I have finally gotten around to updating my [[http://floatingsun.net/code/wordpress-widgets|Wordpress widgets]] — UTW Related Posts and Sub pages — to work with the latest version of WordPress. If you have been using these widgets, please try them out and let me know if they work for you.

There are some changes in the theme itself. I have modified Sandbox slightly to present the meta info about posts slightly differently. For posts with a lot of comments, the comments should now appear paged. I have a version of comments-paged.php for Sandbox (for use with the [[http://www.keyvan.net/code/paged-comments/|Paged Comments]] plugin) — if you need it, drop me a note.

A new release of WP-Dokuwiki is around the corner as well, so keep an eye out for it!

Still around

I was shocked to see how infrequently I’ve blogged since the [[http://floatingsun.net/blog/archives/|beginning of 2007]]. Maybe its good in a way — I had enough things to keep me busy in my real life that I didn’t have too much time for my online self. The past few weeks I was swamped with some paper deadlines. Now that those are done, I’m trying to catch up with the rest of my life, and eventually got around to poking with my blog again. A lot of other things have happened in the meantime and I’ll try to gradually cover them in subsequent posts.

Meanwhile, I have started hacking together my own theme on top of [[http://getk2.com|K2]]. Right now I’m maintaining it has a set of [[http://www.selenic.com/mercurial/wiki/|Mercurial]] [[http://www.selenic.com/mercurial/wiki/index.cgi/MqExtension|mq]] patches on top of the SVN-trunk of K2. So far its working out alright, we’ll see how it goes moving forward. The only major changes I’ve made so far are the new [[http://floatingsun.net/blog|Home]] page and some typographical tweaks. The Home page has two columns, and they support [[http://widgets.wordpress.com|widgets]] and K2 modules — so you can pretty much put arbitrary content in the columns. I also whipped up my own text widget, which would apply the content filters to the text — the default text widget outputs raw text, which I didn’t like. I want to be able to use my [[http://floatingsun.net/blog/code/wp-dokuwiki/|WP-Dokuwiki]] plugin wherever possible.

I’m still trying to figure out fonts and color schemes. I’m so bad at color schemes, really! I’m really digging Adobe’s new online tool though — [[http://kuler.adobe.com|Kuler]]. I’ll also beg/borrow/steal the features I like from some of the other really neat WordPress themes out there, like [[http://cutline.tubetorial.com|Cutline]], [[http://squible.com|Squible]], [[http://deanjrobinson.com|Redoable]] etc.

Finally, I know that I’m probably spending too much time unnecessarily on the look and feel of the blog. I’m not really a designer, so this is my attempt to fool myself into believing that I can atleast try. But I will start focusing on content very soon now.

Two WordPress Widgets

As you can see, I’ve moved back to [[http://getk2.com|K2]] and I’m actually running off of [[http://code.google.com/p/kaytwo/source|the SVN sources]]. So I started checking out [[http://automattic.com/code/widgets/|Wordpress Widgets]] and found myself needing a [[http://floatingsun.net/blog/code/wordpress-widgets/|couple of my own]]. So here they are — perhaps some of you will find them useful:

* [[http://floatingsun.net/blog/code/utw-related-posts.php|UTW Related Posts Widget]]
* [[http://floatingsun.net/blog/code/subpages.php|Subpages Widget]]

WordPress Widgets

=== UTW Related Posts ===

There does exist a [[http://israelsson.nu/blog/projects/wpw-related-posts/|related posts]] widget that uses the [[http://www.w-a-s-a-b-i.com/archives/2006/02/02/wordpress-related-entries-20/|related posts plugin]]. However, I wanted a widget that would use [[http://www.neato.co.nz/ultimate-tag-warrior/|Ultimate Tag Warrior]]. So I wrote up one to use that. Note that you need to have the UTW plugin installed to use this widget.

[[http://floatingsun.net/data/code/utw-related-posts.phps|UTW Related Posts]]

Though I have been using this widget for a couple of weeks now, I didn’t release it immediately. It seems another [[http://saboya.org/344/|UTW related posts]] widget was released in the meanwhile. I love open source! :-)

=== Subpages ===

When I started using the widgetised sidebar in K2, I realized that my subpages were no longer showing up when I was viewing a page. So I wrote a subpages widget — it only shows up on a page, and only if the page has some subpages.

[[http://floatingsun.net/data/code/subpages.phps | Subpages Widget]]

**Update 8/13/2007**: Updated to work with WP2.0+

**Update 9/1/2006**: I’ve added another option called “Sibling Title” to the widget. This will control the “label” for the siblings section.

**Update 8/19/2006**: I’ve added a “Show siblings?” option to the widget. When checked, it will additionally display the list of pages at the same level as the current page (hopefully). Please check it out and let me know if anything breaks.

==== Previous versions ====
* [[http://floatingsun.net/data/code/subpages-0.3.phps | Version 0.3]]
* [[http://floatingsun.net/data/code/subpages-0.2.phps | Version 0.2]]
* [[http://floatingsun.net/data/code/subpages-0.1.phps | Version 0.1]]