Support » Plugin: Pinterest Lightbox » [Plugin: Pinterest Lightbox] adding facebook and twitter buttons

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author travis.hoglund


    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 🙂

    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

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

    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.

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

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

    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="' + document.URL + '&media=' + Q.href + '&description=' + Q.title + '" class="pin-it-button" count-layout="horizontal" target="_blank"><img border="0" src="//" title="Pin It" /></a></span><span>' + Q.title + '</span><iframe src="' + 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="' + 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

    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 was helpful.

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

    Plugin Author travis.hoglund


    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!

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

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

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

    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. 😉

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Pinterest Lightbox] adding facebook and twitter buttons’ is closed to new replies.