Drain Hole template: Listing the contents of a hole with nested file structure, v.1.0

April 27th, 2010 Comments off

Drain holes normal list template only lists the files in the hole without showing the nested file structure. It is as if all files are on the same level. I wanted to list files such that the file structure is visible, somewhat the way you can view the structure in the left pane of Windows Explorer. Therefore, I have written a template for Drain Hole that reveals the nested structure.

Categories: WordPress Tags:

WordPress twist: Combining NextGen and DrainHole

April 11th, 2010 Comments off

So, my WordPress Hack that ended up as a simple plugin which needed a few tweaks to the NextGen plugin turned out to be overkill. No surprise! The real problem was that the .htaccess file that Drain Hole suggested assumed that the Apache module mod_rewrite was around. Turned out it’s not. So all I needed to do was to provide another .htaccess file.

See also:

Categories: WordPress Tags:

WordPress hack: Combining NextGen and DrainHole

April 7th, 2010 Comments off

NextGen is a really well thought through plugin handling image galleries. It has one obvious drawback; It does not allow me to limit the access to the images themselves. Granted, you can limit the access to pages displaying the images using WordPress user settings, but not the images. Drain Hole is another well thought through plugin that among other things allows you to limit access based on wordpress user status. It does a lot more if you want it to, but I needed access limitation.

Good, then we combine them. Just install them and we’re off. Yeah, right! You could wish it would be that simple. It’s not. Their file placement and URLs do not fit, unless we adjust the way NextGen generates URLs. Therefore I have produced a dead simple plugin that, combined with adjustments to a few of the files in the NextGen plugin, does the trick. For details, go to

Categories: WordPress Tags:

Byrd in the Tomas Church

November 22nd, 2009 Comments off

Home again after singing in the Tomas Church. Ensemble CSV sang parts of Mass for Three Voices by William Byrd from the 1590’s. I have enjoyed singing in this ensemble since I joined about three years ago, and that joy has increased over the years. The interested might want to go to

Categories: Music Tags:

Mah Jong

October 23rd, 2009 Comments off

Friday evening is family evening. We bring out the china, make a good meal, play some family game and watch a movie. This time we played Mah Jong, and I won. Then Star wars Episode IV, i.e. the first Star wars movie from 1977. When we are on this topic, I have to take the opportunity to mention the following Youtube clip:

I simply love it. I can watch it over and over again.

Categories: Domestic Tags:

Intro

October 18th, 2009 1 comment

So, I have a web site with a blog. Presently, I’m primarily pondering about what it is supposed to look like. I’m taking the lazy road, searching for a suitable theme at WordPress. So far, I’m not pleased with the result. There’s an obvious risk that it ends up with me hacking my own theme. At the same time, my youngest son has declared that he wants a web site of his own. I guess I will have to help him a lot with that. And my wife is setting up her site, and she has ideas about another one. Something tells me that I will be constant web support for quite some time.

Categories: Uncategorized Tags: