• Resolved surfsnapper

    (@surfsnapper)


    Is Nextgen gallery voting compatible with Nextgen Scroll Gallery?
    If I use the regular nextgen gallery the voting stars appear, however they do not with the next gen scroll galleries.
    I like nextgen-gallery-voting- thank you, is there a way I can make it work with Nextgen scroll gallery?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi
    It should be compatible with any method of showing images. You just need to find out where to output the voting tag.
    I see Scroll Gallery doesn’t use templating, and it catches it’s output into a variable before returning it to the shortcode handler (as short code functions should). This means you might need to use output_buffering to capture the output of the NGG Voting tag, and then inject it onto the output variable of Scroll Gallery.

    Looks like it should be do-able ??

    Thread Starter surfsnapper

    (@surfsnapper)

    Hello,
    Thankyou, sorry for my tardy reply. I did look to see if the scroll gallery had the same sort of file to insert the tag into, with no luck.
    I am very unfamiliar with all this and so unfortuneately can’t follow your advice as above.
    Kind regards

    Yes, as my previous post says, Scroll Gallery doesn’t use a templating system. That’s the first problem. Secondly, it doesn’t pass the picture ID around as would be needed. Then, it doesn’t seem to like extra output around the images (should be solvable with CSS, or maybe even an option in SG?).

    All of this means changing core SG files. Not rocket science. Do the following in nggScrollGallery.php:
    Add $aux["pid"] = $picture->pid; after line 200.
    Add $outI .= nggv_imageVoteForm($picture["pid"]); after line 344.

    [ Signature moderated. ]

    Thread Starter surfsnapper

    (@surfsnapper)

    Wow, thank you so much.
    However, (really sorry), the coding does not display the input line number, is there a way to find this?, or could you please tell me the scripting where to insert.
    I really appreciate your help, let me know if there is anything I can do in return.
    Kind regards

    Seriously? Use an editor with line numbers. Failing that, count.
    Sometimes I don’t think I’m paid enough for this… Oh, wait…

    [ Signature moderated. ]

    could some one help me out on

    question?
    pls

    could some one help me out on

    question?
    pls

    Thread Starter surfsnapper

    (@surfsnapper)

    Thank you for the information that other editors with line numbers were available (yes i know, as I said I am a total novice).

    I followed your advice, and must have got something wrong as it totally crashed my site with

    Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /home/content/69/8972169/html/wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php on line 201

    as the only page

    When you said to put the code after line 200, i assume start a new line (201) and put the code here??
    However once you do that line 344 would become 345 or did you adjust the line number to include the extra line?- or was I meant to put it at the end of line 200?
    Gallery voting would be great, but out of my abilities prehaps, how much would you charge for a plugin type thing that would work this?

    shauno

    (@shauno)

    Here is what your nggScrollGallery.php should look like in full:
    https://pastebin.com/VFWcwn1J

    Yes, I did account for the extra line created in the first step.

    Thread Starter surfsnapper

    (@surfsnapper)

    Thanks, I will have a look and try it when I have more time.
    Kind regards

    Thread Starter surfsnapper

    (@surfsnapper)

    Excellent, your a legend! it worked!!,
    Now I have voting on individual pics in my scroll gallery.
    Thank you so much, will spot you a couple of $ when I have more to spare- unless you fancy surf pic barda?.
    Kind regards

    shauno

    (@shauno)

    No stress, glad it’s working ??

    Thread Starter surfsnapper

    (@surfsnapper)

    it’s awesome!, just need someone to vote now”.

    Hay, at the risk of driving you insane,
    off the top of your head do you know of any (social) sharing plugins which display the buttons on individual images within a gallery? (in particular ngg scroll gallery), currently trolling through heaps and none jumping out with this info, will have to try each one?

    shauno

    (@shauno)

    I doubt you are going to get buttons on individual images with scroll gallery. The way the plugins interact with each other makes it unlikely.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘nextgen-gallery-voting’ is closed to new replies.