Ready to get started?Download WordPress


Where is Pinterest? (11 posts)

  1. progresst
    Posted 1 year ago #

    You show Sociable now supports Pinterest but I do not see it as an option when you config the plugin? what am I missing?


  2. misteralexcruz
    Posted 1 year ago #

    yep.. i saw it too and am confused why the icon isnt there... ??

  3. DinoSupafly
    Posted 1 year ago #

    Yeah, looking for Pinterest as well and not finding it. Please advise.

  4. gabstero
    Posted 1 year ago #

    is somebody from Sociable actually reading this thread? Same question here - how come Pintrest isn't included yet there are so many now defunct social buttons still in??

  5. ianjohn27
    Posted 1 year ago #

    Looks like the author of the plugin uses the skyscraper version and didn't test the "classic" version carefully.

  6. ianjohn27
    Posted 1 year ago #

    Here's how to get it working. I think. Line 1040 of class-sociable_Admin_Options.php change from

    $sociable_known_sites = get_option( 'sociable_known_sites' );


    $sociable_known_sites = Sociable_Globals::default_sites();

    Insert this code into the default_sites array in class-Sociable_Globals.php

    "pinterest" => array('favicon' => 'pinterest.png',
    	'url' => 'http://pinterest.com/pin/create/button/?url='.$permalink.'',
    	"title" => "Share on Pinterest",
    	'blank' => '_blank'						),

    Now a ton of new social networks show up. Seems to work for me. Now, once you've got that fixed, go find a better plugin! and post a comment here to let us all know.

  7. alexcmei
    Posted 1 year ago #

    @ianjohn27, I see the Globals entries like this:

    'Ping.fm' => Array(
                        'favicon' => 'ping.png',
                        'url' => 'http://ping.fm/ref/?link=PERMALINK&title=TITLE&body=EXCERPT',
                        'spriteCoordinates' => Array(271,37),

    trying to fit your code into class-Sociable_Globals.php
    yes, its odd the author doesn't add Pinterest, its huge!

  8. robertallen
    Posted 1 year ago #

    I tried this code, but for some reason when you click on the icon it just takes you to the web page you are at.

    Is there something that I'm missing in that code? Do I need spriteCoordinates or something?

  9. ajamm
    Posted 1 year ago #

    +1 for Pinterest button.

  10. kangenguru
    Posted 1 year ago #

    Looking for the Pinterest button as well - not in to coding so I would appreciate if the developers updated the baseline to include Pinterest.

  11. whatleycc
    Posted 1 year ago #

    I found a way to fix it for the Classic view. It involves 2 steps,
    1) need to update the spirtes image to now include Pinterest
    2) update sociable.php
    find $sociable_known_sites = array(
    it's roughly around line 797

    add to the array

    'Pinterest' => array(
    'favicon' => 'pinterest.png',
    'url' => 'http://pinterest.com/pin/create/button/?url=PERMALINK',
    'spriteCoordinates' => Array(
    '16' => array("-192px","0px"),
    '32' => array("-385px","0px"),
    '48' => array("-577px","0px"),
    '64' => array("-769px","0px")

    You may need to modify the spriteCoordinates depending on how you update the sprite. Sorry it's not showing up like normal code above. Can't seem to get the tick-marks to work correctly.

    If anyone wants the graphics & code I did, feel free to email me directly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic