Before you ask please READ THIS

Image voting

edited January 2015 in Hypershot Posts: 65
Hi,
I would like to integrate a voting module (thumb, stars...) to my website. I am using the brick view for all my albums and would like for each image to allow my visitors to vote.
I checked many plugins but could not make them work with hypershot. Do you have any idea how toimplement this?
Thanks for your support and kind regards,
Charles

Comments

  • AirAir
    Posts: 10,970
    Hello :-)

    Out of the box none plugin will work with bricks view. It depends on plugin you use, but it(theme) will require probably some HTML/PHP and JS customization to make it work.

    Such work would be deeper theme customization, but as I said it depends on plugin cause some may be smart enough that such customization would be only adding shortcode.

    With kind regards.

  • Hi!
    Thanks for your fast reply. Ok, I will check this but I don't have time for coding... Regarding the plugins I effectively found one that is using the gallery shortcodes but I don't understand where and how this 'gallery' shortcode should be added... If any idea please let me know.

    Kind Regards
  • AirAir
    Posts: 10,970
    Gallery shortcode? I thought you wanted rating :-)

    I have just checked code and all HTML for bricks in single album are created in JavaScript so there you should mess around. File js/script.js line ~1875
    
                                html += '<div class="brick">';
                                html += '<a class="'+slide.type+'" rel="album" href="'+slide.image+'"';
                                html += (typeof slide.id === 'undefined'? '' : ' data-id="'+slide.id+'"');
                                html += (with_social_icons ? ' data-social-id="'+item+'"' : '');
                                html += ' target="_blank"><img src="'+slide.thumb+'" />'+cover+'</a>';
                                html += '</div>';
    
    With regards.
  • Hi Air,
    Yeah as I understood some pluggins which aim to include the voting functions on images are using this 'gallery' shortcode but their doc is not clear for me;
    Thank you for pointing out the relevant js code, I gonna have a look but would prefer an integrated solution rather than such coding.
    Kind regards,
  • AirAir
    Posts: 10,970
    charlyzbox said: but would prefer an integrated solution rather than such coding
    Can't have everything I suppose ;-)

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!