Income Map Template [en]

[fr] J'ai préparé un tableau pour m'aider à avoir une meilleure visibilité de quand je gagne de l'argent, par semaine et par mois. Il est à disposition si jamais quelqu'un d'autre le trouve utile.

One of the things I want to start doing in 2010 (now that my accounting is in order for 2009, thanks to Buxfer and my brother) is start tracking when I spend time doing “paid work”. Accounting helps me track when I get paid, but not when I am actually spending time doing the work — and in the light of my weekly planning experiments, I want to gain more visibility about how my weeks and months are structured.

After torturing my brain quite a bit, I’ve come up with this Income Map Template for 2010. I’ve made it publicly available as a Google Spreadsheet so you may copy it and use it if you wish (feel free to adapt it and let us know what works for you in the comments).

Income Map Template 2010

The challenge here is that some of my income arrives monthly (retainers), some of it is a project package (one price for a certain amount of work spread over a certain time) and some of it is one-off (giving a talk, or half a day of WordPress training). What I’m really interested in is seeing when I’m doing work that I get paid for, weekly.

This is not about cash flow, although it deals with money (Buxfer takes care of the cash flow), but about time management.

With the help of this spreadsheet, I hope to be able to easily answer the following kinds of questions in 2010:

  • how much paid work do I do in a given month?
  • how much of my income is one-off gigs, compared to regular clients (retainers or long-term projects)?
  • does my weekly income (one-off gigs, aside from retainers and long-term projects) vary a lot from week to week?
  • where should I set the limit to the number of engagements I take in a given week/month?

So, to freelancers out there, who are not clocking time all week: are these questions also interesting to you? Does this make sense? Do you do this kind of “money-earning time-tracking”?

Similar Posts:

Redirections in WordPress [en]

When I moved the Going Solo site away from WordPress.com (which did its job well, btw) so that I could jiggle it around and make the Lausanne and Leeds events into separate sites, I ended up with a whole bunch of URLs like http://going-solo.net/programme which actually referred to the Lausanne event, and needed to point to http://lausanne08.going-solo.net/programme.

If you’ve been reading me for a while, you probably know that I’m not shy to go and fiddle around with my .htaccess file, but I’m also getting increasingly lazy as the years go by. So, here are two WordPress plugins (well, one isn’t strictly a plugin, but let’s not get tangled up in semantics) which can come in handy:

  • Redirection plugin: use this when you just need a 301/302 (prefer the latter) redirect/move — if you head to http://going-solo.net/programme, you’ll see it at work. It has a handy interface to let you manage all your redirects, and also does 404 logging for you. I’ve discovered (and fixed) quite a few broken links since I installed it.
  • “Redirect to” page template (thanks, Mark): this is actually a page template which does nothing but redirect somewhere else. I use it on the main Going Solo site to create navigation tabs to Lausanne and Leeds which redirect to the other sites. Create a page with the right title, select “Redirect” as the page template, and add a custom field named “redirect” with the destination URL as value.

Have fun!

Similar Posts:

Ridding WordPress Plugins of Template Tags [en]

[fr] Cet article décrit une méthode permettant de se défaire des "template tags" qu'utilisent certains plugins. Plutôt que de copier le fameux template tag à 3 endroits différents dans son thème (comme c'était le cas auparavant pour Basic Bilingual), il est possible de modifier à peu de frais un plugin pour qu'il injecte automatiquement son contenu dans le blog.

If you’re like me and use a bunch of plugins to liven up your WordPress blog, you’ve probably noticed that adding template tags in your favourite (or favourite-of-the-week) theme files can quickly become a royal pain in the neck.

One of the things I wanted to do with [Basic Bilingual, and which I did with the last release](http://climbtothestars.org/archives/2007/11/30/basic-bilingual-03-for-multilingual-blogging/), was make the plugin inject the text for the “other excerpt” (the French text you can see at the top of this post) automatically into the templates and feeds.

Once I’d figured out how to do that, I realised I could modify other plugins, too. And I’m going to tell you how you can do it, too. This method should work for any plugin which generates a template tag, as long as you want the content generated by the plugin to go immediately after or before the post content. (I’m still working on advanced rules for cases where you want to make modifications elsewhere in the template.)

[Christine](http://www.neato.co.nz/)’s [Inline Tag Thing](http://www.neato.co.nz/wordpress-things/inline-tag-thing) put me on the track (thanks!), as it does just that. Here’s the trick:

1. create a function which concatenates (= “adds”) the plugin output to the content
2. add an action hook to the plugin to apply that function to “the_content”.

Fear not, I’ll explain all. You don’t need to really know much PHP to do this, as long as you’re comfortable wading through a bit of code and copy-pasting stuff and making a few small modifications.

Let’s take an example: [the Similar Posts plugin](http://rmarsh.com/plugins/similar-posts/), which I’m now using to point out posts related to the current one (normally, in a box at the top of the post if you’re on the website, and as a list at the end of the post if you’re reading [the feed](http://feeds.feedburner.com/ctts)).

Similar Posts provides a template tag, <?php similar_posts(); ?>, which you can paste in your template where you like the related posts to appear. Personally, I want them to appear on the main blog page, on the individual archive pages, and on the monthly, category, and taggy archive pages. This means I need to paste the tag into at least 3-4 different template files. And if I decide that I want the tag at the top of the post rather than the bottom, or I decide to remove it, there I go again. Not optimal.

So, here’s how I made it “better” (for me):

A. First, I looked at the plugin code to figure out where the template tag function was; in this case, quite easy, it’s the function called similar_posts(), logically. Here are the last two lines of this function, which do the actual data output:

print $result;
if (defined(‘POC_CACHE’)) print $cache_time;

I changed them to:

return $result;
if (defined(‘POC_CACHE’)) return $cache_time;

So that they didn’t print directly (ie, output text), but just return the value of the data we want to insert.

Then, I created the following function:

function sp_embed_similar_posts($content) {
$content = similar_posts() . $content;
return $content;
}

This function takes one parameter ($content), and sticks the output of similar_posts() in front of it. Now you see why we needed to change the other function so that it didn’t print. We’re just modifying the value of the $content string. This new function returns the modified value for the content (in our case, imagine it as being the content of your post with the code for the similar posts listing stuck in front.

Now all that is left to do is to tell WordPress to actually *use* that function at some point (plugins are usually a collection of functions, followed by a series of “hooks” which actually execute the functions at certain chosen moments). Here’s the action we’ll use:

add_action(‘the_content’, ‘sp_embed_similar_posts’);

Try it!

This will also add the list of similar posts to the feed.

So, in summary, here is what we have done:

– modified the template tag function so that it *returns* a value instead of *printing* it (in some plugins, you’ll find a function that already does that!)
– created a function to stick that value on the beginning or end of a parameter, $content
– add an action hook on the_content to execute the function.

Happy hacking!

Similar Posts: