WordPress NGG NextGen Gallery JW imagerotator slideshow problems

Category : Geek

I experienced some problems with the NextGen Gallery widget showing random images on http://www.metal-nights.de. There were simply no images showing up any more – the imagerotator flash keeps loading forever.

The reason for this were too many images when chosing “all images” as source for the rotator. The PHP callback providing the XML “image playlist” for the imagerotator.swf was empty because of out of memory-issues. This was the case if there were more than 1600 images in the database. The query delivered a fully parsed result set which was simply too large.

If you do not want to get rid of all your images, the only way to solve this issue is to limit the result set:

- open wp-content/plugins/nextgen-gallery/xml/imagerotator.php for editing

- look for
$thepictures = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 ORDER BY tt.{$ngg_options['galSort']} {$ngg_options['galSortDir']} ");

- change to
$thepictures = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 ORDER BY RAND() LIMIT 100;"); //tt.{$ngg_options['galSort']} {$ngg_options['galSortDir']} ");

This will return 100 random sorted images. This will be enough for about 10 minutes displaying the page without reload. You may even reduce the number to about 20.

The plus is that your page will speed up.

Enjoy.

English wikipedia anti black-out extension for Google Chrome

Category : Geek

Did you hear about the SOPA/PIPA blackout of the English Wikipedia?

Here is the solution for a workaround – I put a little extension for Google Chrome revealing the Wikipedia pages, the work of some minutes – actually my first chrome extension ever – but it was kind of interesting…

Install Extension – check it out at http://en.wikipedia.org!

Freaky, isn’t it?

Edit: Improved to version 1.1 – proper display of the wikipedia page now.

New DARK SUNS album “Orange” as full stream

Category : Metal

There was long time no signs that DARK SUNS are still active. This has changed immediatly with the announcement of the new album “Orange” which proves that the band has evolved even more into a progressive rock band with 70s psychedelic influences. Nevertheless, the band has its own unique sound with a very interesting mixture of different genres.
If you are into bands like Graveyard, Opeth and the sorts you should definitively check this band out.