Yep,, I found the bug why you can’t set original. I will fix that in the next release.
Secondary : I insert the fixed width/height parameter, which should be not used for original images. Thefore I need to remove it form widgets.php line 399 :
$out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height']. '" title="'.nggGallery::i18n($image->alttext).'" alt="'.nggGallery::i18n($image->alttext).'" />';
The rest should be done with CSS…
See revision 463
Thanks for posting that.
I just tried the code, and after stripping out the “nggGallery::i18n” parts it seems to work. The change is that width & height are no longer given in HTML, right? I suppose there must also be a way to calculate height & width, because that would be better for page loading?
Another thing comes to my mind: Is there a way to link an image to the gallery it belongs to? like putting a “see more of this series” link next to the image?
Thread Starter
sam_m
(@sam_m)
Thx Alex,
Will be waiting for this fix very eagerly.
I tried changing widgets.php as per revision 463. I added all the changes as in the revision (line 296, line 394, line 399)
But I got this on the widget control panel error instead of the widget being added:
%BEG_OF_TITLE%
Gallery%END_OF_TITLE%
I realise it is to do with the change on line 394. This causes the above error.
@alexmde – what did u actually change in widgets.php? You said you stripped out “nggGallery::i18n”
Can you paste the code here as you have it? Thx.
So, nothing works for me currently with respect to these changes mentioned by Alex. I hope the fix will be out very soon.
A related suggestion: please wrap the individual widget <a href="..."><img ... /></a> tags in <div>...</div>. That way it is much easier to format them nicely, see eg http://wordpress.org/support/topic/234911?replies=1
@sam_m: alexrabes original code from this thread didn’t work for me, which is why I took out the parts I didn’t quite understand… and then it worked. My output code now looks like this and it’s working:
if ( $options[$number]['show'] == 'original' )
$out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height']. ' title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
else
$out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
echo $out . ''."\n";
Hi Alex,
I’m not sure id this is the right place to post this.I upgraded to wordpress 2.7.1 and upgraded Nextgen gallery to the latest version as well. After the upgrades my nextgen widget is showing all the description text under and along side the thumbnails. The pop-up divs are no longer working as well. I tried to downgrade nextgen gallery back but that didn’t seem to fix it. Here’s a link to what it looks like for now I have it disabled on my site. http://www.farmidable.com/nextgen-widget
Nextgen gallery is a great plugin I hope someone will know how to fix this.
Hi all,
I have a thumbnail problem too with nextgen gallery 1.1.0 and wordpress 2.7.1 here.
I upload picturs to a gallery but when nextgen create the thumbnails I become an error message:
pict0081.jpg (Error : Exceed Memory limit. Require : 56.6 MByte)
What’s the problem? Please, help me.
Greetings, Bernd
Hi Alex…. THANKS for the plugin – it is so great.
Same Issue – I’m trying to figure out a hack of widget.php
Alex…I have used the NextGen Gallery loyally for the past two years and have yet to have an issue. But I set up a new WP site Yesterday (version 2.7.1) and keep getting the following error call when I update any page:
Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'searchnggallerytags' was given in /homepages/15/d204323068/htdocs/wp-includes/plugin.php on line 166
Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'searchnggallerytags' was given in /homepages/15/d204323068/htdocs/wp-includes/plugin.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /homepages/15/d204323068/htdocs/wp-includes/plugin.php:166) in /homepages/15/d204323068/htdocs/wp-includes/pluggable.php on line 850
When I deactivate the NGG plugin the error messages cease.
Any ideas???
ID 1: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 2: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 3: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 4: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 5: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 6: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 7: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 8: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 10: A failure occurred
[more]
[object JSXMLHttpRequest]
ID 12: A failure occurred
[more]
[object JSXMLHttpRequest]
9 and 11 worked…
Thread Starter
sam_m
(@sam_m)
Hi Alex et all,
Has this been fixed in 1.2.0 of nextgen?????
I upgraded today and when I set the image size in the widget to 0 x 0 … the result is as before tiny boxes. No change š
So, how do you make it work?
Sam
i have the same problem with the nextgen widget:
– stretching of the thumbnails
– can’t setting ‘original images’
this two problems in my site are fixed with 1.2.0 š
thx alex!
only a little (old) problem is always here: it’s difficult to change the setting ‘high’, because i can’t take the setting-field (firefox 3.0.7). the courser ever jump out off the field. it’s not a big problem, only annoyed š
jela
No, nothing is fixed. I have the same problem as allways. The widget is streching the portrait Thumbnails.
Who can help?
In the Code i can read a Todo:
“//TODO:For mixed portrait/landscape it’s better to use only the height setting, if widht is 0 or vice versa “
Please tell me, when it?s done or what workaraound will help.
Greets