WordPress.org

Forums

NextGEN Gallery Voting
[resolved] How create a display image for top ten (7 posts)

  1. chris46
    Member
    Posted 3 years ago #

    Hi,
    is someone can help me ?
    I would like to display a topten of best voting.
    How can i do this ?

    sorry for my english i'm french

    Thanks a lot

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 3 years ago #

    Look at this thread: http://wordpress.org/support/topic/plugin-nextgen-gallery-voting-need-help-displaying-the-top-voted-images?replies=48

    It's quite long, but you should be able to find what you are looking for.

    [ Signature moderated. ]

  3. chris46
    Member
    Posted 3 years ago #

    i see your link but i don't know where put this code.

    I tried into function.php but i have an error.

    could you help me please ?

  4. chris46
    Member
    Posted 3 years ago #

    thanks

  5. MichaelKFrost
    Member
    Posted 2 years ago #

    Hi Shauno,

    The code provided worked fine. I would however like to know whether it will be possible to apply the same format as when a normal gallery page is opened.

    In my gallery.php file I have the following:

    <!-- Thumbnails -->
    	<?php foreach ( $images as $image ) : ?> 
    
    		<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
    			<div class="ngg-gallery-thumbnail" >
    
    				<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    					<?php if ( !$image->hidden ) { ?>
    					<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    					<?php } ?>
    				</a>
    
    			</div>
    		<?php echo nggv_imageVoteForm($image->pid); ?>
    		</div>

    Is it possible to get get this into the function for the top ten so that one have the same kind of layout and if possible also the voting. In that way users can look at the top say 10 and still vote for the best on that as well.

    Thanks

  6. shauno
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Micheal

    Unfortunately you currently cannot show the top 10 images in the normal gallery template. You would need to emulate the arguments that get passed to that template from the NGG show gallery function, and that would take a bit of work.
    I do want to add shortcodes to display top voted images, but I just don't have time to work on my free plugins right now. Hopefully one day in the future I can, but I wouldn't hold my breath :)

  7. MichaelKFrost
    Member
    Posted 2 years ago #

    Thanks for the response. It's however no longer required (the software, not your response) as I have uninstalled all the NextGen plugins as they are more a headache than a pleasure. An extremely good plugin or add on for WordPress but unfortunately just to full of bugs and or just to complicated.

    Guess it's true, you get what you pay for so we have reverted to a commercial solution that was cost effective and worked right out of the box without any problems of any kind.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery Voting
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic