[Express] Pinterest button

Did you try the Pinterest Action? Or is all of this exercise because you are trying to use a custom button?

Walter

On Mar 11, 2013, at 7:47 AM, KDE wrote:

Thank you, Caleb. That did the trick!

Still can’t get the code above to work for where I WOULD like someone to be able to pin an image. I get a pin button that connects to pinterest, but it doesn’t grab any image at all. I’ve also tried the code pinterest supplies and get a server error message with that.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No, I’m not trying to create a custom button. I was having problems with the widget code Pinterest supplies, so I tried the code above supplied by Delta Dave, not an action. It gave me a pin button, but did not grab an image to pin. Don’t know what I was doing wrong. I’ve got the pinterest code working now and they allow you to specify an image to be pinned.
That is found here: http://business.pinterest.com/widget-builder/#do_pin_it_button
Thanks very much.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I was having problems with the widget code Pinterest supplies

My reply, of course, was aimed at an Express user that cannot use the Pinterest action.

If you are a Pro user then the action is the way to go.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Aha, sorry I missed the obvious.

Here’s what the Action does, all of which you can do long-hand in Express:

  1. Add a link tag in the head to Prototype.js at http://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js
  2. Add a script to the head with the following code, at any point after the initial link to Prototype:
<script type="text/javascript">
document.observe('dom:loaded', function(){
  $$('.pin-it-btn').invoke('observe','click', function(evt){
    var pin = new Element('script',{
      type: 'text/javascript',
      charset: 'UTF-8',
      src: 'http://assets.pinterest.com/js/pinmarklet.js?r=' + Math.random()*99999999
    });
    this.insert({after: pin});
  });
});
</script>

The buttons are any sort of element you like, as long as they have the class attribute pin-ti-btn. So these could be images, or DIV elements as the Action draws them, with the background set to http://assets.pinterest.com/images/pinit6.png

That’s seriously all there is to it.

Walter

On Mar 11, 2013, at 9:39 AM, DeltaDave wrote:

I was having problems with the widget code Pinterest supplies

My reply, of course, was aimed at an Express user that cannot use the Pinterest action.

If you are a Pro user then the action is the way to go.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options