Archive for April, 2009
Baby View
Today we did a “pretecho” (an ultrasound in both 2D and 3D) at BabyView in Haaksbergen in Holland.
It was really amazing to see my son like this….
Check the pictures in my gallery… or with the link here: http://picasaweb.google.com/debrass/BabyviewHaaksbergen#
Wordpress – Plugins – kPicasaGallery
I am a Picasa user, I dislike Flickr and it’s entire setup, thus I love the kPicasa Gallery Wordpress plugin.
As my good colleague needed to have pages per user and he also is a frequent Picasa user; and taking also into consideration that I would like to have similar setup on my own domain, i.e. one page per user and a (sub)page for their own gallery, I thought of using kPicasa Gallery for this.
In fact is it REALLY simple to display another Picasa users gallery on a page. Normally, you have to place the tag KPICASA_GALLERY on your page to have the kPicasa Gallery shown and it will use the settings from Wordpress’s kPicasa Gallery settings page.
To display another Picasa users gallery simply use KPICASA_GALLERY(username: PICASA_EMAIL_ADDRESS). You simply fill in the email address the Picasa gallery was registered with and that’s is.
Check my test here: Kelly’s Gallery
WordPress – Show Posts by User/Author/Displayname
A good colleague of mine is using his domain with WordPress for his entire family, but want to have a page per family member showing only their posts.
Although this might not be the exactly right solution, it could be done by:
- Installing the plugin Exec-PHP for WordPress which allows to excute PHP code in widgets, posts and pages and can work on multi userlevels with restrictions.
- Find the display name of the user who’s posts you want to display.
- Create a page in WordPress and insert the code:
<?php query_posts(‘display_name=INSERT_DISPLAY_NAME_HERE’); ?>
<?php while (have_posts()) : the_post(); ?>
<h4><?php the_title(); ?></h4>
<?php the_content(); ?>
<?php endwhile;?>
- Now go to the page…. My test is here PeterDB’s Page
I will try to update the code so it shows the posts in the same style as the front page, so more to come.
WordPress – Install Theme
Although my hosts and WordPress itself has some pretty good themes included, it is nice to add more.
You can get more here: http://wordpress.org/extend/themes/
There is the easy way to install the themes, i.e. just download the theme file, unzip on your computer, then upload the extracted folder and files to the wp-content\themes folder on your host.
But then there is also the smart and so much easier way of doing it:
- Find the theme that you want and copy the URL to the theme download. For Pixeled the currently most popular theme, that URL is http://wordpress.org/extend/themes/download/pixeled.1.9.1.zip
- SSH to your host
- Navigate to the folder WP-Content\Themes
- Use the commend wget <URL> && unzip <DOWNLOADED_FILE> && rm <DOWNLOADED_FILE>. For Pixeled that command “wget would be http://wordpress.org/extend/themes/download/pixeled.1.9.1.zip && unzip pixeled.1.9.1.zip && rm pixeled.1.9.1.zip”
- Now hit enter, it will download the theme, unzip it and delete the file all in one command.
Back at work
So, I am finally back at work after having been away since the 18th of March. Today will only be a short day, since I need to go to the final post-op doctors visit at 14:00. When I have some time I will take the time and effort to write in more detail about the whole tonsilectomy surgery.


