This add-on extends the functionality of the FREE WordPress plugin
NextGEN Gallery Voting. Please be sure you have
at least version 2.6 of NextGEN Gallery Voting installed and working on your WordPress site before installing this premium add-on.
If you need any help or support getting the free plugin working, you can post on the support forum
here.
This add-on is packaged as a WordPress plugin. This means you can install it the same way you would install most plugins:
wp-content/plugins/
directory
After installing the add-on, you will now be able to select a new voting type for your galleries and images. This 'Like' voting type works
in the same way as free 'Like/Dislike', just without the 'Dislike' option. This allows you to offer Facebook style 'liking' of images.
You can also change the image used to perform the 'like', from the settings screen.
This plugin adds an option to each image that allows you to show the the voting form in the image popup in the default gallery view.
Please note: You have to have the "Shutter" effect enabled in NextGEN Gallery's settings, as this is the
only popup script currently supported.
Under NextGEN Gallery Voting's settings screen, you will now see a few more options.
Version 1.5 and above introduces a new feature, allowing your users to vote repeatedly on your images if you want. You can allow user to vote once per
day, once per week, once per month, or once per year. This option obviously only becomes available if you have either 'Allow 1 vote per person for this image'
or the 'Only allow 1 vote per person for this gallery' option selected.
This feature will also work with the 'Use cookies to enfore single vote' option turned on or off.
From the 'Manage Gallery' screen in NGG, you can click on the '[num] votes cast' link for each image to see more information about
all the votes for that image.
This plugin now adds the ability to delete individual votes, permanently removing form the database.
You can also manually add votes for the image. This can be useful if you take an offline poll using good 'ol pen and paper for example,
and want to represent those votes on the site.
Only the 'vote' field is required to be captured. If you don't choose a date, the current date will be assumed.
The add-on adds a new menu item under the "NGG Voting" admin section, labeled "Edit Messages"
This option allows you to edit the messages your users see during the voting process. For instace, in the screenshot below, I have changed the 'Like' terminology to represent 'Votes' instead (near the bottom of the list).
The new 'voting criteria' feature allows you to split up the voting for your images, allowing you to get votes on multiple 'criteria'. You first need to add the voting criteria you wish your users to vote on. Take note of each criteria's 'id' when adding them, as you will need it later when outputting the criteria to your users.
Once you have added the criteria you want, you will see the voting options in NextGEN Gallery's 'Manage Gallery' screen are tabbed, with the criteria you have setup. You can click between the tabs, setting the voting options completely independently of each other. The 'Overall' tab is the default criteria.
Once you have set which images you want to enable the specific criteria on, you need to alter the call that displays the voting form in the
NextGEN Gallery template. When you originally installed the voting plugin, you would have added a simple 'tag' to a display template. See
the FAQ for a reminder if you need.
You now need to include a tag for each criteria. So assuming you added 'Color' and 'Composition' criteria, with the IDs 1 and 2, as your
criteria, you would now add the following in the display template:
Rate the following:<br />
Color: <?php echo nggv_imageVoteForm($image->pid, 1); ?><br /> <!-- Notice criteria ID: 1 -->
Composition: <?php echo nggv_imageVoteForm($image->pid, 2); ?><br /><!-- Notice criteria ID: 2 -->
Overall: <?php echo nggv_imageVoteForm($image->pid); ?><!-- No criteria ID needed for 'Overall' -->
If you want to order the images in the template by the voting results, you can call the nggv_orderImages()
function. You need
to add this tag to the top of the display template, before the images are 'foreach' looped through and outputted.
The default call to the function will re-order the images from hightest rated, to lowest rated, using the 'overall' criteria. :
<?php nggv_orderImages($images); ?>
You can change the order to lowest-to-highest ('asc'), or highest-to-lowest ('desc'), by adding a second argument, like this:
<?php nggv_orderImages($images, 'asc'); ?>
Images that have NO votes, will always show at the end of the list, regardless of the ordering you have specified. You can alter this
functionality to show un-voted images 'first', or 'last', by adding a third argument:
<?php nggv_orderImages($images, 'asc', 'first'); ?>
Finally, all of the following ordering has been done with the default 'Overall' voting criteria. If you want to use a different criteria,
you can specify its ID as the fourth argument, like this:
<?php nggv_orderImages($images, 'desc', 'last', 2); ?> <!-- Where 2 is the criteria ID you want to order by -->
To summarize, this is a list of the function arguments and defaults:
You can export all voting results in a CSV file, directly from the 'Top Voted' screen. The 'Export' button will export the list of voting results that match the filter options selected.
From version 1.5, you can not only export the image averages, but the actual individual votes that make up that average. You just need to select the 'Individual Votes' radio button before clicking the 'Export' button.
For 'Averages', the following fields will get exported
For 'Individual Votes', the following fields will get exported
As of version 1.3, there is a Widget that can show your highest or lowest voted images. Based closely on NextGEN Gallery's own widget, you can choose how many images to show, if you want to use the cropped thumbnails or original dimension images, what galleries to pull the images from, and if you want the actual voting results to show with the images in the widget
[nggtags]
shortcode, and NextGEN Gallery option "The gallery will open the ImageBrowser instead the effect".