WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest Lightbox
adding facebook and twitter buttons (18 posts)

  1. smmarde
    Member
    Posted 2 years ago #

    Is ther the possibilty to add the facebook and twitter button as well? I am just starting to learn some jQuery and don't get the pointwhere i could build in the code for facebook / twitter buttons.

    http://wordpress.org/extend/plugins/pinterest-lightbox/

  2. travis.hoglund
    Member
    Plugin Author

    Posted 2 years ago #

    I am working on adding other Social Media Icons as well along with a light/dark theme. When you see v1.1 released it will include these changes :)

  3. Johnny82
    Member
    Posted 2 years ago #

    How long will we have to wait? I've been searching for a lightbox plugin with social media buttons for ages now! I appreciate your effort anyways. #impacientme

  4. Johnny82
    Member
    Posted 2 years ago #

    Ps.: Will you add share- or like buttons or an option to choose?

  5. Russ Robinson
    Member
    Posted 2 years ago #

    If you are successful with your plans for version 1.1, it will be an absolute game-changer. Seriously, there are TONS of people looking for this exact functionality, as you probably already know. You could make a small fortune.

  6. canwild
    Member
    Posted 2 years ago #

    I used jsbeautifier.org to de-minimize the JavaScript and added Facebook, Twitter and +1 buttons using iframes as a hack until version 1.1 is released.

    http://canadawilderness.com/photo-contest/2011-photo-contest

  7. brody13
    Member
    Posted 2 years ago #

    @canwild... Care to share your code? This is awesome.

  8. canwild
    Member
    Posted 2 years ago #

    This is just a hack but...

    If you have de-minimized the javascript you should see around line #66 a long line of code that starts with "return [Q.href,....". I replaced that line (all the way to the closing "]") with the following to add the Facebook and Twitter buttons. All this does is add a couple of iframes for displaying the Facebook and Twitter buttons.

    return [Q.href, '<span style="float: left; margin-right: 20px; display: block;"><a href="http://pinterest.com/pin/create/button/?url=' + document.URL + '&media=' + Q.href + '&description=' + Q.title + '" class="pin-it-button" count-layout="horizontal" target="_blank"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></span><span>' + Q.title + '</span><iframe src="http://www.facebook.com/plugins/like.php?href=' + document.URL + '&layout=button_count&show_faces=false&width=10&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="display:inline; border:none; overflow:hidden; width:100%; height:21px;" allowTransparency="true"></iframe><iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url=' + document.URL + '&via=xtapit&text=' + document.title + '" style="width:115px; height:21px;"></iframe><div style="clear:both;"></div>']

    Adding the Google +1 button was trickier and requires a new php script in the plugin directory and changes to pinterest-lightbox.php

  9. canwild
    Member
    Posted 2 years ago #

    I ended up removing the Facebook and Twitter buttons from the light box because they were tagging the page rather than the image. I found the info on http://www.brettshumaker.com/nextgen-gallery-tweet-and-like-buttons/ was helpful.

  10. vickistep
    Member
    Posted 2 years ago #

    Very much looking forward to v1.1 and the addition of Facebook/Twitter share! This is much needed by many. Thank you!

  11. travis.hoglund
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry I have been MIA guys - I am working on v1.1 and cleaning up the code. There will be options in the admin interface for controlling which social networks are activated and how they behave. I will keep you all posted.

    Thanks for your support and hope you are enjoying the plugin thus far!

  12. kellyrnh
    Member
    Posted 2 years ago #

    I am really interested in the social sharing option as well. Any chance this will be ready soon? ;) Thanks!

  13. beezwings
    Member
    Posted 2 years ago #

    Any word on adding FB and Twitter buttons? This would be great!

  14. Johnny82
    Member
    Posted 2 years ago #

    I. Cannot. Wait! The plugin is great already but it seems that 1.1 will turn it into a killer app.

  15. Johnny82
    Member
    Posted 1 year ago #

    How's your progress? I'm on vaca next week and will come back with lots of pictures. It would be lovely if my friends could 'like' them with a facebook button. ;)

  16. aly22
    Member
    Posted 1 year ago #

    Am also very hopeful that the addition of FB/Twitter will soon be added to this fantastic plugin. Any update, Travis?

  17. Johnny82
    Member
    Posted 1 year ago #

    I don't want to annoy you but will it ever happen? There is no other plug-in with facebook yet. It would be awesome to have such feature!

  18. beezwings
    Member
    Posted 1 year ago #

    Try this plugin: http://sharemygallery.com/

    It has pintrest, twitter, google+, and facebook.

    You can see it on my website at: http://wenchen.org/photos-and-video/wenchen-retreat-center-photos/

    I use it in conjunction with easy fancybox plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic