Nextgen Gallery Image Display Errors in Internet Explorer
November 19, 2008 by Shane Hartman
Filed under wordpress
When I made my first NextGen Gallery in Wordpress and clicked one of the thumbnails in IE7, the Gallery displayed the image at the bottom of the browser. About one third of the image and the menu options (close, next, prev) were obscured. VERY ANNOYING.
Rather than debug the default thickkbox presentation code immediately, I installed a different presentation plugin and declared victory.
But Nextgen still uses the thickbox presentation method when view is clicked in the gallery administrative interface. ARRGGGH! Alright, we will debug the damn thing...
I pretty quickly determine the problem to be in this code:
Line 310, thickbox/thickbox.js[inline] [/inline]
Note that this version of thickbox is not the same as the distribution thickbox, it has been modified for the nextgen gallery and is included as a subdirectory of the plugin. The problem, however, is not the fault of the plugin but jQuery which it uses. The jQuery.browser.version statement is returning 6.0 in my browser, even though the version is 7.0.6 which causes the code to execute some IE6 only css hacks. Apparently Microsoft changed something which broke jQuery. You can read about that jamazon.co.uk, which I found when googling for a solution to the problem.
The solution is to modify the thickbox/thickbox.js file included with nextgen as follows (add these lines to the top of the file after the comment header):
$.browser.msie6[inline] [/inline]
Then change:
Line 310, thickbox/thickbox.js[inline] [/inline]
Also note that nextgen doesn't actually load thickbox/thickbox.js. For efficiency, it loads thickbox/thickbox-pack.js. which is thickbox.js with all whitespace removed. So you can run a javascript packing filter like jsmin to produce the packed file or just save the patched thickbox.js to thickbox-pack.js for small loss of efficiency.
You can download my patched files here thickbox-patch.zip.
Shutter Reloaded Plugin and Nextgen Gallery
November 19, 2008 by Shane Hartman
Filed under wordpress
Nextgen Gallery Plugin
November 18, 2008 by Shane Hartman
Filed under wordpress
Start by reading David Potter's Introduction to the plugin.
The biggest issue I ran into is increasing the memory limit for PHP as whole. Fix that by setting
php_value memory_limit = 48M
in php5.ini AND add the statement
define('WP_MEMORY_LIMIT', '48M');
to wp-config.php
Setting the value in php5.ini only seems to affect the root directory. So uploading large images still ran out of memory until I also modified wp-config.php.
I also had to increase the php_value max_execution_time in php5.ini as processing some pictures batches takes minutes. Once its setup, using it in posts and pages is simple:[ slideshow=id,width,height ] [ album=id,extend ] or [ album=id,compact ] [ gallery=id ] [ singlepic=id,width,height,mode,float ] [ imagebrowser=id ] [ tags=name,name,name ] [ albumtags=name,name,name ]In real code, omit the blank spaces after and before the brackets. There is no way to escape the sequence to prevent the plugin from processing when I try to quote the code here. Introducing spaces causes the gallery plugin to pass over the text.
Yet another blog….
November 9, 2008 by admin
Filed under technology

