Title: nextgen-gallery-voting
Last modified: August 20, 2016

---

# nextgen-gallery-voting

 *  Resolved [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/)
 * 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)

 *  [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582386)
 * 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](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582639)
 * 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
 *  [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582643)
 * 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.](http://codex.wordpress.org/Forum_Welcome#Signatures)]_
 *  Thread Starter [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582645)
 * 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
 *  [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582648)
 * 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.](http://codex.wordpress.org/Forum_Welcome#Signatures)]_
 *  [Moin Shaikh](https://wordpress.org/support/users/moin5050/)
 * (@moin5050)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582649)
 * could some one help me out on [](http://wordpress.org/support/topic/manging-image-from-admin-panel?replies=1)
 * question?
    pls
 *  [Moin Shaikh](https://wordpress.org/support/users/moin5050/)
 * (@moin5050)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582650)
 * could some one help me out on [](http://wordpress.org/support/topic/manging-image-from-admin-panel?replies=1)
 * question?
    pls
 *  Thread Starter [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582683)
 * 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](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582686)
 * Here is what your nggScrollGallery.php should look like in full:
    [http://pastebin.com/VFWcwn1J](http://pastebin.com/VFWcwn1J)
 * Yes, I did account for the extra line created in the first step.
 *  Thread Starter [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582687)
 * Thanks, I will have a look and try it when I have more time.
    Kind regards
 *  Thread Starter [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582688)
 * 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](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582689)
 * No stress, glad it’s working 🙂
 *  Thread Starter [surfsnapper](https://wordpress.org/support/users/surfsnapper/)
 * (@surfsnapper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582690)
 * 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](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582691)
 * 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.

## Tags

 * [nextgen Scroll gallery](https://wordpress.org/support/topic-tag/nextgen-scroll-gallery/)

 * 14 replies
 * 3 participants
 * Last reply from: [shauno](https://wordpress.org/support/users/shauno/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/nextgen-gallery-voting-2/#post-2582691)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
