WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Voting in Fancybox pop-up images? (18 posts)

  1. flickh
    Member
    Posted 1 year ago #

    So nextgen-gallery-voting is a great plugin.

    My problem is that in gallery view, when someone clicks on an image, it pops up and there's no way to vote. to vote, you have to close the image, find it in the gallery, and then vote. With several similar images, that's tricky to do - votes might go to the wrong pic, and lazy viewers might just give up without figuring it out.

    I tried putting the voting code in every .php file in the Nextgen folder... with no luck - though I was grasping at code straws.

    Here's what I mean:

    http://ourfootprintrenfrew.somethingcollective.ca/2012/10/03/brians-photos-from-the-renfrew-ravine-festival/

    (OR http://tinyurl.com/9ru4rs8 )

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi flickh

    I'm glad you like the plugin.
    That suggestion has come up before, and it's really something I want to implement. The problem is the popup is generated by 3rd party javascript that my voting plugin doesn't have enough control over to inject the required html.

    Hopefully I will find a nice way of handling this in the near future, sorry.

  3. flickh
    Member
    Posted 1 year ago #

    Alright! Thanks for the reply.

    Is that js somewhere in the wordpress folders that I could add it myself?

  4. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    As far as I remember, NGG uses the js that is included with the WP core. But you would need to catch the click event for the gallery image popoup, and then find a way of getting the associated voting form, and injecting it into the markup generated by the js.

  5. orces
    Member
    Posted 1 year ago #

    this is an awesome plugin thanks for it.

    I am after same functionality but would also be happy if the voting would show up when a single image is opened without the js.

    E.g. When I enable:
    Show ImageBrowser xThe gallery will open the ImageBrowser instead the effect.

    Shows the clicked images. It would do the job for me already if I could have the rating option there.

    Hope you can help me out here.

    Thanks a lot!

  6. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi orces

    You can add the voting tag <?php echo nggv_imageVoteForm($image->pid); ?> to the imagebrowser.php template in NGG's view directory.
    The ajax loader image loads all stupidly by default, but you should be able to hide it with your CSS.

  7. csborgman
    Member
    Posted 1 year ago #

    Hello,

    I did what you suggested in your last post here: add the voting tag <?php echo nggv_imageVoteForm($image->pid); ?> to the imagebrowser.php template in NGG's view directory.

    But I can't seem to get rid of the loader.gif using CSS:
    .nggv-star-loader {
    display: none !important;
    }

    If I refresh my browser, it's not there, but after I click on the NEXT button that damn loader shows up again.

    Any suggestions?

  8. csborgman
    Member
    Posted 1 year ago #

  9. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi csborgman
    The CSS should hide the loading gif on all pages. Perhaps when you click 'next' the site is loading a cached version of the CSS for that page.
    I can't seem to see you site to check, as only your header loads.

    You can also just put the voting form tag outside of the ".ngg-imagebrowser" div. Then the NGG CSS won't mess with the loading gif.

  10. MikeMza
    Member
    Posted 1 year ago #

    Ah pity :( Was hoping that this might be implemented in the premium version..

  11. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    It's very high on the priority list, don't worry :)

  12. artheme
    Member
    Posted 1 year ago #

    I am placing that image voter php script, but still, the like and dislike button does not appear on the popped up image.

    Any solution?

  13. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi artheme

    If you read the thread you are posting in, you will see that the plugin does not add the voting to the popup. It can only add the voting to the gallery list, and the 'image-browser' templates.

  14. artheme
    Member
    Posted 1 year ago #

    I am new to Nextgen gallery. What is image browser?

  15. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    It's a setting in NGG that allows you to not show the large image in a popup, but in the page with scroll buttons for next and previous.

  16. artheme
    Member
    Posted 1 year ago #

    Thank you for your answer...

  17. MikeMza
    Member
    Posted 1 year ago #

    I'll be holding thumbs that you figure something out :)

  18. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    This has officially been added to the Premium add-on!
    It only works with the default popup ("Shutter" effect), but that's what most people seem to be using.

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic