yep.. i saw it too and am confused why the icon isnt there… ??
Yeah, looking for Pinterest as well and not finding it. Please advise.
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??
Looks like the author of the plugin uses the skyscraper version and didn’t test the “classic” version carefully.
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.
@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!
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?
Looking for the Pinterest button as well – not in to coding so I would appreciate if the developers updated the baseline to include Pinterest.
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
$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.
- The topic ‘[Plugin: Sociable] Where is Pinterest?’ is closed to new replies.