JQuery 1.3.2. & Lightbox-2 conflict

stimuliToday I found out why the Lightbox-2 plugin didn’t work on the straathofmanegebodems website. I had placed a JQuery script on the faq page to have a better overview of the questions in the faq. I had used jquery-1.3.2.min.js which interfered with the JQuery 1.3.2 javascript libs used by Lightbox-2 (packaged with the plugin).

I found this out by placing the wp_head tag last in the head, which made Lightbox-2 work and the faq to fail, while when I placed it above my custom faq javascript Lightbox-2 failed but my JQuery changes worked. I guess no wonder since the one or the other javascript lib will overwrite functions in the other.

Since I have a lot on my hands right now I fixed it by only including my script when browsing the faq, in this case the Lightbox plugin won’t work since I placed the script after the wp_head() statement.

Straathofmanegebodems going multilingual

wordpress logo

A while back I created a website for Straathof manegebodems (horse arena footing). One RFC stated multilingual support, not (yet) a default WordPress feature. After some research, broken plugins and messing up my test environment I found a plugin fitting my clients needs: the Language Switcher. (There are some different approaches for bi-/multilingual wordpress support, please visit the WordPress codex to determine yours)

After activation of the plugin on the settings page in the admin panel you will find options for: default language, replacement text for missing translations, time and date format etc.

The language switcher works from within the post, page etc. You simply place a [lang_xx] (xx must be replaced with an international code) tag in your post with matching [/lang_xx] at the end and the plugin takes care of the rest. A part of a post could look like this:

[lang_en]This is an English text[/lang_en]
[lang_nl]Dit is een Nederlandse tekst[/lang_nl]
This is a text shown for all languages.

With the following code switch I added some special features within my theme:

global $langswitch_lang_pref;
if( $langswitch_lang_pref == 'nl' )
...

For language switching you could use the widgets option, I chose to implement this feature myself by adding the flag images with the following coded url:

/post->post_name ?>/langswitch_lang/en/">

The $wp_query->post->post_name part makes sure your visitor stays on the same page while switching a language.

In short, a perfect basic plugin, and it surprised me for even translating page and post titles. I’ve probably used only 50% of all features packed in this plugin, because I read the plugin is also capable of translating the theme etc. Visit the plugin website for a very detailed tutorial.

India diary done! big up to mudslideshow!

Last February 2010 me and my girlfriend visited India. We visited the cities of Mumbai and Hyderabad and I just finished a diary of our trip.

It took me a while to get the pictures in nicely. I had googled for ‘Wordpres album plugins’ before and they all worked out nicely, but now I wanted a whole bunch of pictures cropped, uploaded and displayed… something not that easy to find in a plugin I thought. As it turns out the Mudslideshow fits these every needs!
After installing the Mudslideshow and Minimax plugins your only two simple steps away from showing your album in a blog post:

  1. Upload your pictures to Googles Picasa (you will need a google account for that task)
  2. Select the album within the post
  3. Optional: adjust the amount of pictures per row and/or the thumbnail size and/or slideshow viewer

Have fun reading and/or publishing your gallery!

Hello world! I’m back after rebuilding my blog ;(

wordpress logo

Welcome back to WordPress. This is your first10th+ post. Edit or delete it, then startresume blogging!

For some mysterious reason my WordPress blog got contaminated about 2 months ago. I couldn’t reach the admin pane any longer so I (instinctively) renamed all the plugins in the wp-plugins directory, hoping to preserve all the widget metadata. This seemed to work, although after naming the plugins back to the original name (with exception of some), I couldn’t add new ‘default’ WordPress widgets like a text box.

Some time passed and I had started writing more intensively, so I had an urge to upgrade my blog with more features. After adding a now reading plugin and some other stuff, the problems started again.
At this moment I’m rebuilding my blog, keeping track of the steps taken: Continue reading