Sociable Plugin with WordPress MU
Sociable plugin for wordpress needs some hacking to work with WordPress Multi User.
A while back we posted some tips on how to get it working, Sociable Plugin Error.
You will still need to comment out line 1049 in file Sociable.php
Line 1049: // require_once("yoast-posts.php");
If you do not comment this line out before installing it will cause fatal errors in php5 (other php versions have not been tested).
In addition you will need to create hard links instead of using php variables.
Line 29: $sociablepluginpath = 'http://shootingsportsblog.com/wp-content/mu-plugins/';
Obviously you will need to substitute your own domain name in with proper canonicalization
We changed -
- Line 529:
$imagepath = $sociablepluginpath.'sociable/images/'; - Line 757:
wp_enqueue_script('sociable-js',$sociablepluginpath.'sociable/sociable-admin.js',array('jquery','jquery-ui-core','jquery-ui-sortable'));- Note: Apparently this file does not exist in the most recent release. It does not cause a fatal error and only prevents drag and drop organization in the admin area.
- Line 765:
wp_enqueue_style('sociablecss',$sociablepluginpath.'sociable/sociable-admin.css') - Line 772:
wp_enqueue_style('sociablecss',$sociablepluginpath.'sociable/sociable-admin.css') - Line 780:
echo '<link rel="stylesheet" href="'.$sociablepluginpath.'sociable/sociable.css" type="text/css" media="screen" charset="utf-8"/>'; - Line 918:
<img src="<?php echo $sociablepluginpath.'sociable/images/'.$site['favicon']; ?>" alt="" width="16" height="16" />
Sociable Plugin should be working in WordPress Multi User. If you know a different way to hack and make WPMU and sociable work together please let us know.








Hey, I haven’t had this problem with WPMU, but I started using WPMU only a couple months ago, so maybe it was already fixed.
However, i’ve installed BuddyPress and now the plugin is annoying because it puts “Share and enjoy” below every post in the activity stream! and it doesn’t work on profile pages either.
Wish there was a way to disable it on buddy press pages and leave it enabled just for blog pages.
Any ideas?