Changeset 748902
- Timestamp:
- 07/31/2013 07:38:38 PM (12 years ago)
- Location:
- nextgen-gallery-voting
- Files:
-
- 2 edited
-
tags/2.6/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nextgen-gallery-voting/tags/2.6/readme.txt
r748607 r748902 7 7 Stable tag: 2.6 8 8 9 Adds the ability for users to vote and rate your NextGEN v1.x Galleries andImages. Simple options give you the ability to limit who can vote on what.9 Adds the ability for users to vote and rate your NextGEN Images. Simple options give you the ability to limit who can vote on what. 10 10 11 11 == Description == 12 **PLEASE NOTE: This plugin is intended for use with NextGEN Gallery version 1.x. It has not been tested on version 2** 13 I will be testing and releasing a version compatibile with NGG v2 in due course. 14 15 This plugin adds the ability for users to vote on NextGEN Galleries and Images. 12 **PLEASE NOTE:** This plugin was written for NextGEN Gallery 1.x, but recently NGG have released version 2.x. 13 I am working on bringing all the voting features up to date, but currently only the **Image** options work with NGG 2.x 16 14 17 15 = Features = 18 16 19 * Individually enable or disabled per gallery orimage17 * Individually enable or disabled per image 20 18 * Choose if registered and logged in users can vote 21 * Allow a user to vote as often as they want, or just once per gallery/image19 * Allow a user to vote as often as they want, or just once per image 22 20 * Show or hide the results from your users 23 21 * Choose from 3 ratings types: 1-5 Stars, 1-10 Drop Down, or Like/Dislike … … 30 28 31 29 == Frequently Asked Questions == 30 31 = Important note about NextGEN Gallery version 2.x = 32 This plugin was written for NGG 1.x. The recent release of NGG 2.x has lead to the gallery voting functions not being applicable anymore. 33 I am working on an update to fix this in the future, but please be aware that they currently DO NOT WORK. You can ignore any reference to 34 the gallery options in the FAQ below 32 35 33 36 = In a nutshell, what is this? = … … 36 39 current results. 37 40 38 = How do I add the voting form? =39 For Galleries it's easy. You just need to enable voting on the gallery, and the voting form will automatically be appended to the gallery.40 There is some basic styling, but the markup has got plenty of classes and ids that you should easily be able to hook into with your own stylesheets to make suit your site.41 42 41 = How do I make the voting form appear for images? = 43 For images there's an extra step. First you need to enable voing on the specific images you want. Then you need to add a tag to the gallery template from NextGEN Gallery. I'm going to use NextGEN version 1.9.6 to as the example, but it should be pretty much the same for all versions: 44 Between line 38 and line 53 in `/nextgen-gallery/view/gallery.php` is the loop that shows each image in a specific gallery. You need to add the following tag anywhere in that loop: `<?php echo nggv_imageVoteForm($image->pid); ?>`. 45 That will output the vote form where you put it. Personally I like to place it on a new line after the close `<a>` tag (new line created 45) 46 Do not put inside the `<a>` tag that wraps the image in some of the templates, or the link will conflict with the voting process. 42 You need to add a small tag, `<?php echo nggv_imageVoteForm($image->pid); ?>`, to the gallery output template to get the voting showing in 43 the galllery. 44 45 For NGG 1.x, you can find the gallery templates in the `/plugins/nextgen-gallery/view/` directory. For the default shortcode, `[nggallery id=x]`, you 46 add the tag to the `gallery.php` file. If you add the `template` attribute to your shortcode, you need to alter the appropriate template. eg: 47 If you use the `[nggallery id=x template="caption"]`, you need to add the tag to the `gallery-caption.php` template. 48 49 For NGG version 2.x, you need to add the tag to the `/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php` 50 template. This will only work for galleries inserted WITHOUT selectiong a template from the gallery display options. 51 52 Please be aware, the voting form needs to be placed inside the `foreach()` loop in those templates, as that loop is outputting each image. 53 I find the best place to put the tag is AFTER the `<div class="ngg-gallery-thumbnail">` is CLOSED. 47 54 48 55 = Can I style it? = -
nextgen-gallery-voting/trunk/readme.txt
r748607 r748902 7 7 Stable tag: 2.6 8 8 9 Adds the ability for users to vote and rate your NextGEN v1.x Galleries andImages. Simple options give you the ability to limit who can vote on what.9 Adds the ability for users to vote and rate your NextGEN Images. Simple options give you the ability to limit who can vote on what. 10 10 11 11 == Description == 12 **PLEASE NOTE: This plugin is intended for use with NextGEN Gallery version 1.x. It has not been tested on version 2** 13 I will be testing and releasing a version compatibile with NGG v2 in due course. 14 15 This plugin adds the ability for users to vote on NextGEN Galleries and Images. 12 **PLEASE NOTE:** This plugin was written for NextGEN Gallery 1.x, but recently NGG have released version 2.x. 13 I am working on bringing all the voting features up to date, but currently only the **Image** options work with NGG 2.x 16 14 17 15 = Features = 18 16 19 * Individually enable or disabled per gallery orimage17 * Individually enable or disabled per image 20 18 * Choose if registered and logged in users can vote 21 * Allow a user to vote as often as they want, or just once per gallery/image19 * Allow a user to vote as often as they want, or just once per image 22 20 * Show or hide the results from your users 23 21 * Choose from 3 ratings types: 1-5 Stars, 1-10 Drop Down, or Like/Dislike … … 30 28 31 29 == Frequently Asked Questions == 30 31 = Important note about NextGEN Gallery version 2.x = 32 This plugin was written for NGG 1.x. The recent release of NGG 2.x has lead to the gallery voting functions not being applicable anymore. 33 I am working on an update to fix this in the future, but please be aware that they currently DO NOT WORK. You can ignore any reference to 34 the gallery options in the FAQ below 32 35 33 36 = In a nutshell, what is this? = … … 36 39 current results. 37 40 38 = How do I add the voting form? =39 For Galleries it's easy. You just need to enable voting on the gallery, and the voting form will automatically be appended to the gallery.40 There is some basic styling, but the markup has got plenty of classes and ids that you should easily be able to hook into with your own stylesheets to make suit your site.41 42 41 = How do I make the voting form appear for images? = 43 For images there's an extra step. First you need to enable voing on the specific images you want. Then you need to add a tag to the gallery template from NextGEN Gallery. I'm going to use NextGEN version 1.9.6 to as the example, but it should be pretty much the same for all versions: 44 Between line 38 and line 53 in `/nextgen-gallery/view/gallery.php` is the loop that shows each image in a specific gallery. You need to add the following tag anywhere in that loop: `<?php echo nggv_imageVoteForm($image->pid); ?>`. 45 That will output the vote form where you put it. Personally I like to place it on a new line after the close `<a>` tag (new line created 45) 46 Do not put inside the `<a>` tag that wraps the image in some of the templates, or the link will conflict with the voting process. 42 You need to add a small tag, `<?php echo nggv_imageVoteForm($image->pid); ?>`, to the gallery output template to get the voting showing in 43 the galllery. 44 45 For NGG 1.x, you can find the gallery templates in the `/plugins/nextgen-gallery/view/` directory. For the default shortcode, `[nggallery id=x]`, you 46 add the tag to the `gallery.php` file. If you add the `template` attribute to your shortcode, you need to alter the appropriate template. eg: 47 If you use the `[nggallery id=x template="caption"]`, you need to add the tag to the `gallery-caption.php` template. 48 49 For NGG version 2.x, you need to add the tag to the `/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php` 50 template. This will only work for galleries inserted WITHOUT selectiong a template from the gallery display options. 51 52 Please be aware, the voting form needs to be placed inside the `foreach()` loop in those templates, as that loop is outputting each image. 53 I find the best place to put the tag is AFTER the `<div class="ngg-gallery-thumbnail">` is CLOSED. 47 54 48 55 = Can I style it? =
Note: See TracChangeset
for help on using the changeset viewer.