PDA

View Full Version : Add a Pinterest button to your More Share Options Gold!



BirdOPrey5
04-21-2012, 12:46 PM
Thanks to a nudge in the right direction by Qapla.com member jimsflies I was able to adapt the Pinterest Bookmark code into a share button that works with this mod.

If you have the GOLD version of the mod simply paste this code into the Custom Button Code box in settings. Remember to leave 1 empty line between other buttons if you have more than one.



<img src="//assets.pinterest.com/images/PinExt.png" title="Pin It" border="0" onclick="javascript:void((function(){var e=document.createElement('script');e.setAttribute( 'type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document .body.appendChild(e)})());" />


Pressing this button will pop up a window where the user can choose any image or compatible video on the page as the shared thumbnail and then enter a description and pin your page to their wall.

Unfortunately there is no count available, but the button works. Requires javascript. Tested in Chrome, Firefox, and IE9.

jordi654
04-21-2012, 01:31 PM
I have a problem.

When i put the HTML on the "custom button code", and I enter to any thread, looks like this... :(

295

BirdOPrey5
04-21-2012, 07:18 PM
I have a problem.

When i put the HTML on the "custom button code", and I enter to any thread, looks like this... :(

295


Can you tell me which buttons specifically you are using so I can try to setup my forum the same way and see if I can duplicate the issue? A link to the forum would help too- pm me if you don't want to post it for any reason. Actually with a link I can answer the first question.