Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author shauno

    (@shauno)

    NextGEN Gallery Voting is for NextGEN Gallery. You need to enable voting on the galleries or images you want, and then a small ‘tag’ code to the gallery template.

    Please see the FAQ for more info on how it works.

    Thread Starter chuckdillon

    (@chuckdillon)

    I was not able to place the php code snippet for image voting could you add anything to you last post. I will add a snap shot of my placement if that would help.

    Thank You Shauno

    Plugin Author shauno

    (@shauno)

    Did you read the FAQ linked in my last post? What specifically can’t you get working?

    Thread Starter chuckdillon

    (@chuckdillon)

    Yes I put the following <?php echo nggv_imageVoteForm($image->pid); ?>
    in /plugins/nextgen-gallery/view/ at the top where i found
    Editing nextgen-gallery-voting/ngg-voting.php (active) is where i put the

    Plugin Author shauno

    (@shauno)

    I think a screenshot of the placement will be helpful, because I’m not sure I understand what you have done so far.

    Thread Starter chuckdillon

    (@chuckdillon)

    Thanks Shauno hope this helps i took a screen shot with Snagit but
    don’t know how to add a image to the forum here

    <?php
    /*

    <?php echo nggv_imageVoteForm($image->pid); ?>

    Plugin Name: NextGEN Gallery Voting
    Plugin URI: http://shauno.co.za/wordpress/nextgen-gallery-voting/
    Description: This plugin allows you to add user voting and rating to NextGEN Galleries and Images
    Version: 2.7.5
    Author: Shaun Alberts
    Author URI: http://shauno.co.za
    */
    /*
    Copyright 2014 Shaun Alberts (email : shaunalberts@gmail.com)

    Plugin Author shauno

    (@shauno)

    You dont add the code to the voting plugin, you add it to the gallery template. Please read the FAQ, it explains what to do, and what file to add the tag to.
    It even links to a detailed break-down of many of the common settings and releated templates, so you know exactly which file to edit. Here is a copy/paste excerpt from the FAQ with the basics. The FAQ goes into more details, please read it.

    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 template. This will only work for galleries inserted WITHOUT selectiong a template from the gallery display options. NGG v2.x templating system can be confusing for some users. Please see this page for more info on which templates are used.

    Thread Starter chuckdillon

    (@chuckdillon)

    Hi again Shauno

    This is where i put the php code from FAQ’s
    But i still don’t have vote options for the gallery images
    i upload

    <div class="ngg-gallery-thumbnail">
                <a href="<?php echo esc_attr($storage->get_image_url($image, 'full', TRUE))?>"
                   title="<?php echo esc_attr($image->description)?>"
                   data-src="<?php echo esc_attr($storage->get_image_url($image)); ?>"
                   data-thumbnail="<?php echo esc_attr($storage->get_image_url($image, 'thumb')); ?>"
                   data-image-id="<?php echo esc_attr($image->{$image->id_field}); ?>"
                   data-title="<?php echo esc_attr($image->alttext); ?>"
                   data-description="<?php echo esc_attr(stripslashes($image->description)); ?>"
                   <?php echo $effect_code ?>>
                    <img
                        title="<?php echo esc_attr($image->alttext)?>"
                        alt="<?php echo esc_attr($image->alttext)?>"
                        src="<?php echo esc_attr($storage->get_image_url($image, $thumbnail_size_name, TRUE))?>"
                        width="<?php echo esc_attr($thumb_size['width'])?>"
                        height="<?php echo esc_attr($thumb_size['height'])?>"
                        style="max-width:none;"
                    />
                </a>
            </div>
    
                       <?php echo nggv_imageVoteForm($image->pid); ?>
    Plugin Author shauno

    (@shauno)

    That looks correct, if you are using the default settings when insert the gallery into the page.

    Have you actually enabled voting on the images in that gallery? You enable the voting from the NGG ‘manage gallery’ screen.

    Thread Starter chuckdillon

    (@chuckdillon)

    can the gallery and work together with
    gallery voting on a static page of does
    it have to be on a blog post page

    to reply to your last response no
    i need to do that

    Thank You

    Plugin Author shauno

    (@shauno)

    The voting can work on any page, you just need to pass the correct image id to the voting tag. You can hard code that number if you want. For example, you can put the following tag anywhere in your site, and it will show the voting for the NextGEN image with the ID=1:

    <?php echo nggv_imageVoteForm(1); ?>

    Hello,

    I am sorry to bring this topic up again. I was able to makea simple picture gallery but I don´t seem to get the voting to work.

    I posted the <?php echo nggv_imageVoteForm($image->pid); ?> like chuckdillon showed it in his post.

    I did not understand the part of this tag:
    <?php echo nggv_imageVoteForm(1); ?>

    I tried to post it below the gallery in the page with the ID of one of the pictures but still nothing.

    Please be so kind and give me an idiot proof explanation on how to get this voting work. Thank you so much for your time and patience.

    Yes, Me to please – Where exactly do I put the PHP Code ?

    Plugin Author shauno

    (@shauno)

    Please read the FAQ. It explains what to add where, as best I can.

    Hi,
    This is the exact same issue we are having. I have done all of your suggestions and followed the FAQ and still voting is not working.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘NexGen Gallery Voting/ NexGen Gallery’ is closed to new replies.