mweichert
Forum Replies Created
-
Hello!
Would one of you experiencing this problem mind posting the following please:
– Which theme you have activated
– A list of all plugins activated
– The version of WordPress installedThanks,
MikeHi Shauno,
The “Displayed Gallery” object allows to query for a list of images from multiple galleries, whereas the legacy templates in 1.9.x were designed to work with a single gallery, and therefore they don’t fit well with the design of NextGEN Gallery 2.0 and hence have been deprecated. We’ve done our best to keep this mechanism available for backwards compatibility, but to future-proof your code I’d suggest you review how to create a display type. I’ll post back with a link to a tutorial, but feel free to study our source code as well.
In the mean time, the $gallery variable in legacy templates will have the following properties:
- ID
- name
- title
- pageid
- anchor
- displayed_gallery (instance of C_Displayed Gallery)
- ID
- source
- container_ids
- excluded_container_ids
- entity_ids
- exclusions
- display_type
- display_settings (array)
- transient_id
- slug
- order_by
- order_direction
- returns
- maximum_entity_count
If you’re wanting to know what galleries are being displayed in the template, then perhaps you’d like to reference $gallery->displayed_gallery->container_ids
Cheers,
MikeHi there,
Thanks for the inquiry.
In NextGEN Gallery 2.0, there’s the concept of a “displayed gallery”. A displayed gallery can be thought of as a a query for a list of images, regardless of what galleries the images come from. A displayed gallery also associates a particular display type and display settings for this list of images.
Here’s an example of how you would construct a displayed gallery with the intention of fetching images from gallery #1:
$factory = $this->get_registry()->get_utility('I_Component_Factory'); $displayed_gallery = $factory->create('displayed_gallery'); $displayed_gallery->container_ids = array(1); $displayed_gallery->source = 'galleries'; $images = $displayed_gallery->get_included_entities();
The $images array contains image objects, each of which have a “galleryid” property. You can simply use this to reference the id of the gallery associated with each image.
Depending on what you’re trying to accomplish, it might make sense to reference $displayed_gallery->container_ids or iterating through the $images array and accessing the galleryid property: $image->galleryid
I hope that’s helpful. If not, please post back and I’ll try to explain further.
Thanks!
MikeThanks for the report, Col. I’ve prepared a new hotfix release for that issue.
If you’d be so kind to report back if this works, I’d very much appreciate it.
Thanks!
MikeHi there,
We’re having some issues with path/url generation, which is most likely causing some of our JS libraries to produce HTTP 404 errors. Would you mind providing a link to your site so that I may confirm?
Thanks,
MikeHi there!
That lightbox is actually the Pro Lightbox from NextGEN Pro:
nextgen-gallery.com/nextgen-pro
Cheers,
MikeHello there!
Thanks for your report. My guess is that thumbnail generation is failing on your site for some reason. If you view the gallery by navigating to “Manage Galleries” -> “Click on gallery name”, and scroll down to the list of images in that gallery, do your thumbnails display?
There’s some issues that are faster to resolve by us logging in and inspecting how the code is being run. If you’re willing, would you mind sending us temporary WordPress and FTP credentials using our bug submission form please? I’ll be sure to let you know of my findings.
Thanks again,
MikeHi coconurtaler,
Thank you so much for reporting this issue, and giving us the opportunity to work with you to get it resolved. We’ll do our best to diagnose the issue and resolve it as quickly as we can.
It appears that your shortcodes aren’t being interpreted correctly. Off the top, I’m not sure why. If you’d be willing to send temporary WordPress and FTP credentials for your site using our bug submission form, I assure that I’ll investigate this and get back to you.
Thanks again,
MikeHello,
I’ve created a hotfix for users experiencing the preg_match() issue. Please deactivate and delete the NextGEN Gallery plugin from your website, and download, install, and activate this version.
Please let us know if this hotfix resolves the issue.
Thanks,
MikeThanks, George! We appreciate your help and feedback.
Hi there,
I’m sorry to hear that you’re having issues. We’re trying to reproduce the problem that you and some others are experiencing above. If you’d be so kind to let us know who your hosting provider is that would be very much appreciated.
In the mean time, I understand you need to get your site working as it was. Please see our downgrade guide and download the previous version here.
Alternatively, we’re always able to resolve issues the fastest by getting temporary WordPress & FTP credentials to a site experiencing the issue. If you could provide those using our bug submission form, that would be most appreciated.
Thanks!
Sincerely,
MikeHi there!
Are you having this problem with NextGEN Gallery 2.0.0 installed?
Thanks,
MikeHello,
I’ve looked into this issue and believe that it has to do with PHP 5.2.1 and earlier. We’re working on a fix, but in the meanwhile perhaps you could contact your hosting provider and ask them if it’s possible to configure your site to run with a later version of the PHP interpreter.
For hosting providers that offer CPANEL, you can usually change this yourself from CPANEL by clicking on the “PHP Config” icon.
We’re sorry for the inconvenience.
Thanks,
MikeHi there,
If you have purchased NextGEN Pro, you’ll have access to the priority support form by visiting https://www.nextgen-gallery.com/support. You’ll be asked to login before you can view that page – use the login credentials sent to you via e-mail after you completed your purchase.
If you wouldn’t mind using the form above to report your issue, along with temporary FTP and WordPress credentials, that would be great and allow us to troubleshoot your issue quickly. Issues like the one you’re experiencing are our top priority.
Thanks!
MikeHi,
Does clicking ‘Add’ work?
Thanks,
Mike