Forums

Sociable
Image URLs wrong with Multisite + domain mapping (3 posts)

  1. jeremy.einfeld
    Member
    Posted 5 months ago #

    I have a couple sites using Sociable on a WordPress multisite instance using MU Domain Mapping. The main multisite instance URL is not publicly accessible, so any image links have to be at the mapped domain.

    The problem:
    Sociable icons had a URL source of "mymultisiteparent.com/SUBSITE/wp-content[...]" where the mymultisiteparent.com is not a public URL and the subsite is subsite.com. The image url needed to be: "SUBSITE.com/wp-content[...]".

    The solution:

    In sociable.php, I modified the define for SOCIABLE_HTTP_PATH from this:
    define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );

    to this:
    define( 'SOCIABLE_HTTP_PATH' , plugin_dir_url(dirname(__FILE__) . "/images"));

    I would appreciate it if you could verify this and add this into later versions so I don't have to modify those when I update.

    http://wordpress.org/extend/plugins/sociable/

  2. sociable
    Member
    Posted 5 months ago #

    Thanks for the solution!

    We would add this on the next upgrade

  3. jeremy.einfeld
    Member
    Posted 4 months ago #

    I had to do this again after upgrading.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags