Needs review
Project:
Gallery Assist Lightboxes
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2009 at 18:51 UTC
Updated:
14 May 2010 at 11:29 UTC
Suddenly all paths to images from Gallery assist nodes changed from /drupal/sites/default/files/gallery_assist/UID/gallery_name_NID/image.jpg to /drupal/sites/default/files/gallery_assist/UID/gallery_name_NID/prev/image.jpg. So now all images are 550x550 pixels maximum.
Are there some settings which changed this path? At your demo site paths are normal...
Comments
Comment #1
dzhu commentedUpdate.
It was actually Gallery assist lightbox issue.
Here is the code example, from file gallery_assist_lightboxes_display.inc :
$my_item_link = l($my_img, $base_url .'/'. $item->ppath, array('attributes' => array('class' => 'prettyPhoto', 'rel' => 'prettyPhoto[gallery'. $item->gid .']'),'html' => TRUE));I have tried to change ppath variable to opath, and all pathes came back to normal.
But I have also found another strange thing, when I have tried just to turn off Gallery assist lightbox module, nothing was changed. Only after editing the file I have seen the result I needed.
Comment #2
dzhu commentedChanged project to Gallery Assist Lightboxes.
Comment #3
jcmc commentedissue or support request
fixed with update.
Comment #4
jcmc commentedComment #6
dzhu commentedThe same issue appeared in the new version, 1.3. This is an example of part of code, to show image with fancybox:
$my_item_link = l($my_img, file_create_url($item->ppath), array('attributes' => array('title' => $my_copy . $item->ptitle, 'rel' => $item->my_nid), 'html' => TRUE));I have changed ppath to opath because I don't want to pictures be downsized to the size of the preview...
$my_item_link = l($my_img, file_create_url($item->opath), array('attributes' => array('title' => $my_copy . $item->ptitle, 'rel' => $item->my_nid), 'html' => TRUE));Other parts of the code, for another light boxes, should be changed accordingly.
Comment #7
jcmc commentedHello dzhu,
Not all lightboxes support the resize feature.
I think, a configuration parameter satisfy your request. It is a good idea.
So can people choose beetwen original and preview path.
I will commit this feature to the dev. Please give me feedback after testing.
Regards
Comment #8
dzhu commentedI see...
So, in this case, it would be better to make and option in admin page.
Thank you for the response.