renambot
Forum Replies Created
-
There was a link support in 1.9.x for singlepic:
[singlepic id=42 link=”….”]
but this has been broken since v2, for all 31 updates.One of the reasons I’m not updating, and the lightox system still not functional.
Luc
It now breaks the wp-jquery-lightbox plugin ! It’s getting worse, it’s breaking other lightbox systems.
The ‘link’ option in single pic is still broken (now for 21 releases).Still running 1.9.x version for production.
Luc
you can try to add a link code inside a singlepic short code :
[ … link=”https://mysite.com/doc.pdf” … ]however, since 2.x it’s broken with several lightbox modes. So try which one works for you.
Luc
I uploaded a temporary fix to deal with NextGen v2.x:
https://luc.lakephoto.org/journal/dossier-de-presse/#downloadLet me know if that works.
Luc
It’s odd Henk. It should work with ‘wp-jquery-lightbox’. Double check that you have ‘no lightbox’ in nextgen, and have activated the ‘wp-jquery-lightbox’. Go to ‘settings’ in you wordpress site and see all the option for this plugin.
If it still doesn’t work, I’d guess something else is messed up in your site…my test page: https://test.lakephoto.org/blog/2013/08/09/testing1-2/
Luc
It still works for me, see:
https://test.lakephoto.org/blog/2013/08/09/testing1-2/If you updated nextgen, make sure to put back the template file. Upgrades will delete your custom templates.
Luc
Also on the lookout for an alternative…
while looking at the source code, I saw this:
– v1.x : 841KB 183 files 28 folders
– v2.x : 2.9MB 767 files 131 folders !!and the way I use NG, I don’t see any improvements…
L.
As last resort, you can set ‘no lightbox’ in nextgen, and install the ‘wp-jquery-lightbox’ plugin. That works well for me.
Luc
Combining your two codes made it work for me, picking one random image within a gallery:
[ngg_images gallery_ids='3' order_by='rand()' display_type='photocrati-nextgen_basic_singlepic']
I’m guessing singlepic takes the first (or last image) and the sorting option makes it random.
The example in the doc doesn’t seem to work (or is misleading).
Luc
It works with ‘singlepic’ and some of the lightbox modes (some of the modes render the destination link inside the lightbox instead of opening the link).
WP 3.6 test site with built-in 2013 theme
no lightbox:
– okno lightbox + ‘wp-jquery-lightbox’ plugin:
– oklightbox:
– doesnt scale to browser size
– navigation gets really confused if single picture and gallery in the same post (start to jump to every other picture after a while)
– does not handle singlepic with linkfancybox
– does not handle singlepic with linkhighslide
– adds singple pic into the gallery navigation (singlepic and gallery in the same post)
– does not handle singlepic with linkshutter
– okshutter2
– broken icons (next.gif not found and all the other ones)thickbox
– if there’s a caption, the navigation text (image xx of yy next/prev) is displayed outside the box
– does not handle singlepic with linkSome lightbox modes work now, but half of them are still broken (missing icons, wrong aspect ratios, do not open links properly,…). At least the default one works ok-ish.
Please, create a gallery, put ‘[nggallery id=xxxx]’ in a post and try all the modes one by one.
‘WP Jquery Lightbox’ + ‘no lightbox in NG’ is still the best option for me.
Luc
Not sure, but is it not available in the album templates ? (album-compact.php album-extend.php)
<!-- List of galleries --> <?php foreach ($galleries as $gallery) : ?> .... <?php endforeach; ?>
that should iterate over all the galleries of the specified album….
Luc
See: https://pastebin.com/MVkYhuhy
Copy and save the code as ‘gallery-captionexif.php’ in:
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/viewAs an example it just adds some exif data to the title field (alt-text / title).
In your post, use something like:
[nggallery id=42 template=captionexif]It should work with most lightbox system. My preference theses days is to disable lightboxing in NextGen and let ‘WP Jquery Lightbox’ plugin do the work (correctly).
Luc
The exif data is available if you’re up to write a new style for gallery or single pic display.
I did write a such a gallery mode using the now deprecated ngg-legacy template system (figure…).$meta = new nggMeta( $image->pid );
$exif = $meta->get_EXIF();// use for instance $exif[‘camera’] $exif[‘focal_length’]
// $exif[‘aperture’] $exif[‘shutter_speed’] $exif[‘iso’]
// put in alt and title of your imagefor instance, if you visit: https://luc.lakephoto.org/journal/2013/08/13/harvest-moon/
click on a image and see EXIF data in the bottom right.Luc