Floating Sun » Wordpress http://floatingsun.net Mon, 07 Jan 2013 02:53:26 +0000 en-US hourly 1 http://wordpress.org/?v=3.5.1 Thematic: the final word in WordPress themes http://floatingsun.net/2009/03/04/thematic-the-final-word-in-wordpress-themes/?utm_source=rss&utm_medium=rss&utm_campaign=thematic-the-final-word-in-wordpress-themes http://floatingsun.net/2009/03/04/thematic-the-final-word-in-wordpress-themes/#comments Thu, 05 Mar 2009 07:13:48 +0000 Diwaker Gupta http://floatingsun.net/?p=1019 Related posts:
  1. Using Google Webfonts with Thematic
  2. Welcome to WordPress 2.0
  3. New look
]]>
Modular, Extensible

I’m a sucker for clean, well-designed code. I like modular, extensible architectures. I like change.

As a consequence, I struggle periodically with the theme of my website. Not that I am a designer and it is certainly not the most productive use of my time, but what can I say. The point is, I was never really happy with the infrastructure I had at my disposal (I am never happy with the designs that I come up with, so thats another story). Until now.

One of the main barriers in designing a custom theme is that you don’t want to scratch. It is just too much work, and why do it when so many others have already done all the hard work for you? It pays to be lazy! So I have always looked around for good starting points to build up custom themes on.

I started out with Sandbox, a semantically rich theme that allowed extensive customization just using CSS. However, styling via CSS can only get you so far. Sometimes you really do want to make changes to the underlying PHP, for instance.

My next setup involved a base copy of Sandbox on which I layered my changes. In order to accommodate changes to the underlying Sandbox code, I used Mercurial with patch queues (the mq extension). This was much nicer, since it was easy to keep up with changes to the core Sandbox and leverage the work that was being done by others. But it was still cumbersome, since once in a while I would run into conflicts that I would have to merge manually. And it was still not a clean setup.

My ideal setup would have been to keep my changes completely distinct and isolated from the underlying theme. A setup that would allow the underlying theme to evolve independently, while my changes continue to work without any additional work.

Thanks to improved support for child themes in WordPress 2.7, and some fantastic work done by these fine folk, I have realized this ideal setup.

You see, I recently started working on a new website for my wife (it is not live yet, but will be soon). In the process of building her website, I was exploring the so-called WordPress Theme Frameworks. After some playing around, I settled on using Thematic. I started out by cloning the Thematic repository. Locally, I was using git-svn to manage the code changes. Thanks to git-rebase, it was not that hard to keep my changes up-to-date relative to a rapidly evolving Thematic code base.

But soon enough, Thematic had enough hooks, filters and features that I could do all the modifications without modifying a single line of Thematic itself. Now, all my changes are contained entirely within a child theme. How it is possible? Well, Thematic happens to be pretty much the most child-theme friendly framework that I could find. It is really easy to customize.  Several child themes are already available for immediate use, and it is trivial to develop your own child theme.

This blog is going to run on a Thematic child theme. Changes are going to be incremental, but I don’t need to worry about keeping them in sync with Thematic, and I get to leverage the improvements being done in the core them for free! You can also take a sneak peak at how we are using Thematic for my wife’s new website

]]>
http://floatingsun.net/2009/03/04/thematic-the-final-word-in-wordpress-themes/feed/ 14
Code updates http://floatingsun.net/2007/08/14/code-updates/?utm_source=rss&utm_medium=rss&utm_campaign=code-updates http://floatingsun.net/2007/08/14/code-updates/#comments Tue, 14 Aug 2007 17:09:41 +0000 Diwaker Gupta http://floatingsun.net/2007/08/14/code-updates/ Related posts:
  1. Two WordPress Widgets
  2. Fresh look
  3. WordPress Widgets
]]>

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!

]]>
http://floatingsun.net/2007/08/14/code-updates/feed/ 0
700 and counting http://floatingsun.net/2007/07/02/700-and-counting/?utm_source=rss&utm_medium=rss&utm_campaign=700-and-counting http://floatingsun.net/2007/07/02/700-and-counting/#comments Mon, 02 Jul 2007 20:31:41 +0000 Diwaker Gupta http://floatingsun.net/2007/07/02/700-and-counting/ Related posts:
  1. Show some love to the fuzzy orange icons
  2. The Quixtar Post
  3. Code updates
]]>

I’ve just upgraded this blog to WordPress 2.2.1. But mostly I’m writing this post so that my post count can be **700** :-D This blog is now a little [[http://floatingsun.net/2004/04/30/to-blog-or-not-to-blog/|more than 3 years old]], with around 1200 comments to boot. While I have no intentions to climb to the A-list, it gives me a warm fuzzy feeling nonetheless.

]]>
http://floatingsun.net/2007/07/02/700-and-counting/feed/ 2
Fresh look http://floatingsun.net/2007/06/20/fresh-look/?utm_source=rss&utm_medium=rss&utm_campaign=fresh-look http://floatingsun.net/2007/06/20/fresh-look/#comments Thu, 21 Jun 2007 05:01:40 +0000 Diwaker Gupta http://floatingsun.net/2007/06/20/fresh-look/ Related posts:
  1. WP-Dokuwiki development update
  2. New look
  3. Forrest
]]>

If you have been checking out my website on a daily basis the past few days (yes yes, I know many of you have nothing better to do! :p ), you will have noticed that it has undergone several changes. The most visible of course, is the new look. So if you’ve been hiding in the comfort of your feed readers, here is your chance to get out and enjoy the fresh new look on [[http://floatingsun.net|floatingsun.net]] :-)

A few days back I had [[http://floatingsun.net/2007/05/29/watch-out/|announced]] that changes were upon us. I usually don’t follow up to claims like that fully, but this time around I think I’ve done a pretty good job.

The first major change I made was to re-organize the content on the website. As I outlined in a [[http://floatingsun.net/2007/06/07/update-your-bookmarks/|previous post]], this much needed change was actually suggested by a friend first. I think now the content structure is much cleaner. No more do static pages (on code, articles, research etc) have to live under “/blog”. The “blog” itself (basically the conventional reverse chronological ordering of posts) has been moved to “/weblog” instead. I had to do this because I didn’t want existing links to content under “/blog” to break.

Of course, to make everything work I had to do some [[wp>.htaccess|htaccess]] magic under “/blog” to make sure all links are redirected properly. I’m also trying to be a good samaritan and sending the [[http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection|HTTP 301 code]] (moved permanently) so that search engines and other crawlers can fix their indexes appropriately. This should also hopefully make sure that my search engine rankings are not affected.

Also, if you noticed, I have gone back to a different [[http://codex.wordpress.org/Using_Permalinks|permalink]] structure. A long time back, I [[http://floatingsun.net/2005/08/16/permalinks-updated/|had argued]] that having a post ID based permalink was better. In hindsight, I don’t think it worked out very well. First of all, having the post title in the URL seems to work better for search engines. Secondly, if people link to my posts, having the title in the URL itself gives potential visitors some idea what the post is about, instead of having to grabble with a bunch of random looking numbers. And finally, most analytics software (in particular, [[http://analytics.google.com|Google Analytics]], [[http://awstats.sf.net|AWstats]], Slimstat/Measuremap/Mint etc) don’t work very well with numerical URLs — as in, many of them implicitly assume some kind of content information to be present in the URL.

Anyways, as before I didn’t want my old links to break. So I used the //excellent// [[http://www.deanlee.cn/wordpress/permalinks-migration-plugin/|permalinks migration plugin]]. It works like a charm, right out of the box! Its a little funny, because people accessing old URLs will actually go through two indirections before getting the real URL: first “/blog” will be stripped out of the URL, then the numerical URL with post ID will be re-directed to its new sanitised URL (with the post title). The migration plugin also sends 301 re-directs, so hopefully all will be well in search engine land. Though looking at the stats from the past few days, I think there has been a //slight// dip in hits — but that might just be coincidental.

The second major change is the new look. I’ve always wanted a theme that uniquely mine, but since I always ended up using [[http://getk2.com|k2]] or some other standard theme, it never quite happened. The fact that I’m pretty bad when it comes to colors and design doesn’t help either. Fortunately for me, recently the [[http://www.plaintxt.org/themes/sandbox/|Sandbox theme]] got some love and I decided to give it a shot again (yes, I’ve tried sandbox earlier on this blog, but it didn’t last). The great thing about Sandbox is that it has a very rich semantic markup, and so its possible to do a lot just by using CSS. Since I didn’t want to muck around with PHP much, thats one less thing to worry about.

And so this theme was born. It is unimaginatively named floatingsun and it is unlikely that I will make a public release anytime soon. It is definitely not completely original in the sense that layout (and even the color theme) has been inspired by the beautiful [[http://www.binarymoon.co.uk/projects/regulus/|Regulus]] theme. But it //is// unique in the sense that I pretty much did the CSS from scratch, including the layout and the colors. For colors, I played around a lot with some color schemes (check out [[http://kuler.adobe.com|Kuler]]) and eventually decided to pick up colors from the [[http://www.oxygen-icons.org/|Oxygen]] [[http://kde-artists.org/Oxygen-palette|color palette]].

I’m also integrating various plugins into the theme as and when I go along. I’m maintaining all my changes as a patch on top of sandbox, so when a new version of Sandbox comes out, its easy for me to upgrade. I’m also looking forward to the recently announced [[http://www.sndbx.org/|Sandbox Design Competition]] — while I fully intend to stick to this layout/color combo for some time, there’s no harm in picking out the best from from the lot and incorporating them in my theme :-D

I’ve also ditched most of the bundled widgets. Instead, I’m using some fabulous plugins by [[http://rmarsh.com/about-2/|rmarsh]] — [[http://rmarsh.com/plugins/similar-posts/|similar posts]], [[http://rmarsh.com/plugins/recent-posts/|recent posts]], [[http://rmarsh.com/plugins/recent-comments/|recent comments]] etc. None of these plugins come with widget support, so I hacked up simple wrapper widgets that call the plugins. I’ll put up the code for these widgets shortly. One of the best things about these plugins is that they can use the [[http://rmarsh.com/plugins/poc-cache/|Plugin Output Cache]] plugin, so hopefully that’ll ease up the load on the server even more.

I’ve not used any background images so far. The icons all belong to the [[http://famfamfam.com/lab/icons/silk/|silk icon set]]. I’m still debating if I should spend time trying to come up with a logo — we’ll see how that goes. Its still a work in progress, there are a bunch of things I still need to do, most notably styling of comments, post meta-data and better UTW integration.

I’d love to hear any comments/suggestions on this new look!

]]>
http://floatingsun.net/2007/06/20/fresh-look/feed/ 6
Update your bookmarks http://floatingsun.net/2007/06/07/update-your-bookmarks/?utm_source=rss&utm_medium=rss&utm_campaign=update-your-bookmarks http://floatingsun.net/2007/06/07/update-your-bookmarks/#comments Thu, 07 Jun 2007 17:14:37 +0000 Diwaker Gupta http://floatingsun.net/2007/06/07/811/ Related posts:
  1. Code updates
  2. WP-Dokuwiki development update
  3. Paritrana Update
]]>

As I mentioned in an earlier post, I am in the process of re-organizing my domain. The first phase of that is complete, as is witnessed by the ugly looks of this website. Any URLs under http://floatingsun.net/blog/ should correctly redirect to http://floatingsun.net/ — let me know if you see any problems. I’m expecting I will lose some search engine karma due to this shift, but hopefully I will be back in the ranks before too long.

I am also trying to rebuild a theme on top of [[http://www.plaintxt.org/themes/sandbox/|Sandbox]], so I’ll be keeping a close watch on the [[http://www.sndbx.org/|Sandbox design competition]]. This new site is also running the latest and greatest [[http://wordpress.org|Wordpress 2.2]].

Thanks for your patience.

]]>
http://floatingsun.net/2007/06/07/update-your-bookmarks/feed/ 3
Still around http://floatingsun.net/2007/04/02/still-around/?utm_source=rss&utm_medium=rss&utm_campaign=still-around http://floatingsun.net/2007/04/02/still-around/#comments Mon, 02 Apr 2007 20:11:46 +0000 Diwaker Gupta http://floatingsun.net/blog/2007/04/02/798/ Related posts:
  1. WP-Dokuwiki 0.2
]]>

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.

]]>
http://floatingsun.net/2007/04/02/still-around/feed/ 0
Winds of change http://floatingsun.net/2007/01/23/winds-of-change/?utm_source=rss&utm_medium=rss&utm_campaign=winds-of-change http://floatingsun.net/2007/01/23/winds-of-change/#comments Wed, 24 Jan 2007 07:24:55 +0000 Diwaker Gupta http://floatingsun.net/blog/2007/01/23/792/ Related posts:
  1. Still around
  2. The need for change
  3. Whats with __MACOSX in Zip files?
]]>

If you’ve been kind enough to visit my blog a couple of times today you would have noticed that I’ve been playing around (a bit too much perhaps) with the look, plugins and such around here. Yes my friends, change is upon us yet again. I’ve just upgraded to WordPress 2.1 and I was getting bored with K2. So I’ve been looking around for some interesting WordPress themes. Right now I’m using Cutline, which is pretty pretty but there are some little things I don’t like yet. So bear with me while I try to figure things out over the next couple of days. Stay tuned!

]]>
http://floatingsun.net/2007/01/23/winds-of-change/feed/ 1
Sandbox enticing http://floatingsun.net/2006/08/08/sandbox-enticing/?utm_source=rss&utm_medium=rss&utm_campaign=sandbox-enticing http://floatingsun.net/2006/08/08/sandbox-enticing/#comments Wed, 09 Aug 2006 00:31:25 +0000 Diwaker Gupta http://floatingsun.net/blog/2006/08/08/707/ Related posts:
  1. Update your bookmarks
  2. Fresh look
  3. Thematic: the final word in WordPress themes
]]>

I’m getting increasingly excited at the prospect of a lean, mean, clean theme build on top of [[http://plaintxt.org/themes/sandbox/|Sandbox]]. Watch out for some change soon! :)

]]>
http://floatingsun.net/2006/08/08/sandbox-enticing/feed/ 0
Live from Wordcamp http://floatingsun.net/2006/08/05/live-from-wordcamp/?utm_source=rss&utm_medium=rss&utm_campaign=live-from-wordcamp http://floatingsun.net/2006/08/05/live-from-wordcamp/#comments Sat, 05 Aug 2006 17:22:57 +0000 Diwaker Gupta http://floatingsun.net/blog/2006/08/05/700/ Related posts:
  1. Two WordPress Widgets
  2. Long live Gordon Bell
  3. Code updates
]]>

I’m at [[http://2006.wordcamp.org|Wordcamp]] over at the [[http://swedishamericanhall.com|Swedish American Hall]] here in San Francisco. I’ll try to keep this post updated as I go along, but I’m not planning on staying the whole time. But you can surely find tons of information about it (search tag ‘wordcamp’)

* **Widgets Showcase**: I was surprised that so many people in the audience knew so little about Widgets. Clearly they’re not as popular as I thought. I guess a lot of people are hesitant in experimenting with the structure of their blogs (//if it ain’t broke, don’t fix it//). The [[http://rawsugar.com|Raw Sugar]] folks grabbed a fair amount of time in the 1-hr slot and a guy from [[http://goodstorm.com|Good Storm]] talked briefly about their widget. It was also surprising to see that only about 2-3 people in the room had written a widget! I was one of them, but since my widgets are trivially simple, I really didn’t feel like “show-casing” them :) For people who are interested in my widgets, head over to Code -> WordPress Widgets on the menu above.
* **Blog Promotion**: This one started out real bad. I thought it would be heading nowhere. But eventually this //Prince Campbell// dude got the audience going — it was a very interactive, lively discussion. Interestingly though, the discussion diverged from “how to make a blog popular” to “what IS a blog”. People were talking about how Flickr and YouTube can be viewed as blogs and whether having a lot of comments is a pre-requisite for a blog. I don’t know about others, but the following things really stand out for me: passion, attention to detail and a good sense of humor. And I think people missed the point that not all blogs //need// to be compelling. I mean, my blog probably ain’t compelling to very many. But I don’t want it to be, I don’t need it to be. I blog because I want to. For people who make a living out of blogging, this might be an issue. At some point people were discussing whether getting into traditional media helps. Sure, it may help a bit, but I doubt its a driving factor. I mean, how many newspapers have talked about Scoble?
* **State of the Word**: This one was pretty cool. I think Matt did a great job talking and listening to people. The session quickly morphed into “Whats wrong with WordPress” or “How could WP be improved” with most of the discussion being driven by the audience. I’m sure there are people who took detailed notes for this session, so I’ll just throw out some of the stuff I remember:
* Continue on making installation a breeze
* Really focus on making upgrades easier/painless
* Improve documentation. Richer documentation — screencasts, videos, audios — that kind of stuff
* Central directory for themes and plugins
* Directory of paid services and consultants
* Make theme customization easier
* Organize/improve the codex
* …

I’m actually planning to leave shortly after lunch since I have to go to the Santana concert in the evening and I want to catch some sleep before that. Unfortunately all of the //really// good talks that I was interested in are in the afternoon (Om Malik is talking, there is a talk about Blog Architecture and one about High Performance WordPress) so it’ll be a shame that I’ll miss them :-( But hopefully others will cover these talks in some detail.

]]>
http://floatingsun.net/2006/08/05/live-from-wordcamp/feed/ 3
Two WordPress Widgets http://floatingsun.net/2006/07/31/two-wordpress-widgets/?utm_source=rss&utm_medium=rss&utm_campaign=two-wordpress-widgets http://floatingsun.net/2006/07/31/two-wordpress-widgets/#comments Tue, 01 Aug 2006 06:29:47 +0000 Diwaker Gupta http://floatingsun.net/blog/2006/07/31/693/ Related posts:
  1. WordPress Widgets
  2. Code updates
  3. Projects
]]>

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]]

]]>
http://floatingsun.net/2006/07/31/two-wordpress-widgets/feed/ 2