Duplicated searchresults when using EventCalendar3 in WordPress

If you use the Eventcalendar Plugin in Wordpress you may experience duplicated or even more searchresults if a blogpost is in more than one category. To get rid of this problem change the following in eventcalendar3.php:

function ‘ec3_filter_posts_where’ add the following to the first if statement

|| $wp_query->is_search

It should look like this afterwards:

if($wp_query->is_page || $wp_query->is_single || $wp_query->is_search )
Posted in: Uncategorized by Thorsten No Comments

The Gimp: Making Colors in a GIF Transparent

Sometimes when working with an image you want to make a certain color transparent. When working with a gif file this would make a round circle look round on any color background. This is actually very simple once you do it once. Finding the information for this took me a while so I thought I would pass it on to anyone that was interested.

1. Open the image in gimp

Posted in: Uncategorized by Thorsten No Comments ,

vimdiff essentials

Change window: Twice Ctrl+W
Scale both windows to the same size: Ctrl+W,=
Put “Diff” to the other window (“diff put”): dp
Get “Diff” from other window (“diff obtain”): do

Posted in: Uncategorized by Thorsten No Comments , ,