WordPress.org

Ready to get started?Download WordPress

Forums

WordPress NextGen GalleryView
[resolved] more than one galleryview on a page (13 posts)

  1. sammond7
    Member
    Posted 2 years ago #

    I'm want to run multiple galleryview instances. Seems when I create a second one they glitch out.

    If I have more than one in the same post, they both only show one thumbnail, regardless of how many images are in the gallery.

    If I have one in each post but listing down a category page (ie multiple posts per page) they behave as above but also when i refresh the first gallery loses all formatting and shows the images at full size one after the other down the page.

    Can anyone offer any insight? Is there anywhere in particular I should be checking for issues?

    Cheers

    http://wordpress.org/extend/plugins/wordpress-nextgen-galleryview/

  2. istarnet
    Member
    Posted 2 years ago #

    I'm just starting to explore this. Some variables seem to have global scope when they should be local. For example, if you create a 600x400 slideshow and, beneath it, create a 400x600 one, then both slideshows will take on 400x600.

    This is a big problem on the front page where different posts may have slideshows with different aspect ratios. My workaround is to use GalleryView only for landscape-mode slideshows...

  3. sammond7
    Member
    Posted 2 years ago #

    Hi istarnet,

    the global variables scenario sounds very likely. The issue i'm experiencing is with the thumbnails, though. How does having landscape slideshows resolve this?

  4. istarnet
    Member
    Posted 2 years ago #

    sammond7, I looked into the plugin a bit. The shortcode is working properly to pass the correct values to each instance of the slideshow. The problems lie in the javascript code. Do you have a page showing the messed up thumbnails?

  5. sammond7
    Member
    Posted 2 years ago #

    Hi istarnet,

    http://sammond.com.au/ki/category/scarves-wraps/

    You'll notice 3 thumbs appear for each gallery. However, the top gallery should actually have 4. It seems that the javascript will set the number of thumbs from the gallery with the least amount of images.

    Hope this makes sense. Thanks for taking a look.

  6. istarnet
    Member
    Posted 2 years ago #

    I am pretty sure that the javascript has only one big problem. The storage for slideshow options (that ought to be local) is global. The effect is that the last call sets the options for all galleries on the page.

    In your case, the first gallery has four images. It could have a gazillion or more. The second gallery has three images. Thus, all slideshows are configured to display only three thumbnails. Last in rules.

    I'm not going to debug this because my client is satisfied with the current function. Good luck though. If you fix, post it!

  7. sammond7
    Member
    Posted 2 years ago #

    Thanks for your insight in to the issue thus far - I really appreciate it! Will post again if I can work it out :)

    Hopefully others have a similar issue and are little more experienced in jquery/javascript?

    Cheers ;)

  8. sammond7
    Member
    Posted 2 years ago #

    Hi All,

    I'm submitting an elance contract to get this issue fixed. Obviously, this costs money. Is anyone else in a situation where they need more than one gallery per page and therefore would benefit from seeing this resolved?

    If so, would anyone like to donate a small amount toward getting this working? Here is the job: https://www.elance.com/j/jquery-javascript-knowledge-needed-debug-wordpress-plugin/28543270/?backurl=aHR0cHM6Ly93d3cuZWxhbmNlLmNvbS9yL2pvYnMvcC0y

    Cheers,

    Sam

  9. sammond7
    Member
    Posted 2 years ago #

    got this one solved. let me know if you need the code.

    Cheers

  10. jack96161
    Member
    Posted 2 years ago #

    sammond7 -- I need a solution to the problem with multiple nextgen galleryview galleries on one page. Any suggestions?

    Thanks

  11. sammond7
    Member
    Posted 2 years ago #

    Hi Jack,

    To be honest, i'm trialling other gallery plugins as alternatives now since using an unsupported plugin seems a bit risky with respect to future proofing your website. However, here is the info you need to fix the thumbnail display:

    -------------------------------
    Original script author forgot to declare 'wrapper_height' variable inside plugin function. In javascript you don't need to declare variable but then implicitly global variable will be created and this is what happened here. Height of the thumbnails area had the value of the last gallery instance.

    Only modification I made was to add this declaration:
    var wrapper_height;

    beneath line 39: var wrapper_width;

    -------------------------------

    Let me know how you go.

    Cheers,

    Sam

  12. istarnet
    Member
    Posted 2 years ago #

    @sam, thanks for posting your fix. @jack, I have also abandoned this plugin. I found some display problems on (I think) IE7 and just threw up my hands. My new strategy is to use NextGen for sites that require major images gallery display but fall back to Media Library for sites with posts containing slideshows. With the Media Library I attach slideshow images and use Portofino gallery. This doesn't allow multiple slideshows within a single post but it does allow the multi-post page to contain a number of posts, each containing a single slideshow.

  13. jack96161
    Member
    Posted 2 years ago #

    Besides the multiple gallery problem, I had a number of issues with the GalleryView addon plugin which worked with previous releases. The ScrollGallery plugin seems to be more stable, but NextGen is getting to be seriously complicated and heavy-weight for most uses.

    I'm open to other solutions that allow a selection of images from a scrollable set of thumbnails that is supported and compatible with latest releases of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic