Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: dzhu commentedChanged project to Gallery Assist Lightboxes.
Comment #3
jcmc CreditAttribution: jcmc commentedissue or support request
fixed with update.
Comment #4
jcmc CreditAttribution: jcmc commentedComment #6
dzhu CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: dzhu commentedI see...
So, in this case, it would be better to make and option in admin page.
Thank you for the response.