• 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://ww.wp.xz.cn/extend/plugins/sociable/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Sociable] Image URLs wrong with Multisite domain mapping’ is closed to new replies.