Support » Plugin: Social Bookmarks » Icon image path breaks in multisite

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Artiss

    (@dartiss)

    To change this navigate to the includes folder within the plugin directory. Open up the file asb-generate-bookmarks.php and find the following line…

    icon_folder = content_url() . '/' . $icon_folder . '/';

    You can now change this to whatever folder you think is more appropriate.

    I’ll look into the problem for the next release.

    David.

    flojnel

    (@flojnel)

    I’m not sure I understand what the code does here since it looks like the first line defines $icon_folder in a way that wouldn’t work for me:
    if ( $icon_folder == ” ) {
    $icon_folder = $plugin_folder . ‘images/’;
    } else {
    $icon_folder = content_url() . ‘/’ . $icon_folder . ‘/’;
    }
    I’ve been storing the icons in a folder called “icons” within my theme folder. How would I write it for that?

    And thanks for your quick reply!

    flojnel

    (@flojnel)

    Figured it out – thanks.

    flojnel

    (@flojnel)

    Ouch – spoke too soon. My code worked on the development site – exact copy of the live site, but not on the live site.
    I did this:
    if ( $target != ” ) { $target = ‘ target=”‘ . $target . ‘”‘; }
    if ( $icon_folder == ” ) {
    $icon_folder = content_url() . ‘/themes/rainbow/icons/’;
    } else {
    $icon_folder = content_url() . ‘/themes/rainbow/icons/’;
    }

    Not sure if it was the best way to do it, but worked on the development site. Have caching turned off on the live site at the moment and there isn’t any cache to clear. Any idea what the issue could be.

    It’s still looking for icons in the content folder.

    Plugin Author David Artiss

    (@dartiss)

    It shouldn’t be – this would suggest your changes aren’t live on the site. If you’ve made the above changes it will be looking in wp-content/themes/rainbow/icons.

    David.

    Hi David,

    I tried turning off the plugin and turning it back on and that worked. Don’t know why I didn’t think of it before.

    Thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Icon image path breaks in multisite’ is closed to new replies.