Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16100

    I try to add / enable functions “Like” + Twitter + other social media in the prettyPhoto modal windows.

    Is it possible?

    #90126

    Hi,

    It has something to do with the pp_social on the prettyPhoto js file but I’m not sure how to turn it on again. Let me tag the rest of the support team to help you out.

    Regards,

    Ismael

    #90127

    Hi,

    Please look at line 56 (yes, its a very long line) of jquery.Prettyphoto.js which is located in /js/prettyPhoto/js/ directory in the theme. About 33% into the line you will see :

    social_tools: '<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>' /* html or false to disable */
    });

    If you want to add additional social media (twitter + facebook are already present) you would add the button code in a similar style as you see the twitter/facebook above, and you would paste the code behind the very last </div> but in front of the very last ‘single quote’.

    Please take a look at the example here -> (drag the photo) http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

    And also check the many examples on the prettyPhoto developers forum, there are numerous ways you can integrate social media listed there.

    prettyPhoto Support Forum -> http://forums.no-margin-for-errors.com/categories/prettyphoto-support

    Thanks,

    Nick

    #90128

    Thanks Nick

    You are the best ! ;-)

    #90129

    Hi SPEAKnSPAN,

    Glad that Nick helped you. :)

    Cheers,

    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘[PROPULSION] Add Like + Twitter function in modal Windows’ is closed to new replies.