Viewing 8 replies - 1 through 8 (of 8 total)
  • Visit the settings page at Settings->Shadowbox JS and set the automation options to false.

    Thread Starter wolfnowl

    (@wolfnowl)

    Thanks much!

    There’s still a problem with Shadowbox though. In the Plugins/ Shadowbox Settings, under General there’s this option (emphasis mine):

    Enable Smart Loading
    Enabling this will only load Shadowbox and its dependencies when needed based on the content of your posts. Please note that when enabling this Shadowbox will not be loaded if rel=”shadowbox” is not found in the content of your post(s). If you experience problems after enabling this, try disabling. Default is false.

    Then under Automation there are individual settings for different file types:

    These options will give you the capability to have Shadowbox automatically used for all of a certain file type.
    Image Links
    Default is true.
    FLV Links
    Default is false. To enable this option you must first enable FLV Support.
    Movie Links
    Default is true.
    Music Links
    Default is true.
    YouTube and Google Video Links
    Default is true.

    Now, it would seem to me that if the Smart Loading setting under General is set to ‘True’, then it should override the individual settings listed farther down. It doesn’t. Even if Smart Loading is true, if the others are also true it will still override the links in a blog post even if the ‘rel=”shadowbox”‘ is not used. I finally left the Smart Loading as ‘false’ and set the YouTube Video Links also to false. This works for me for now, but it needs to be corrected.

    Mike.

    Those items refer to completely different things. The automation refers to adding the rel=”shadowbox” to the links, the smart loading refers to whether or not the javascript files are loaded when needed or not on every page.

    Thread Starter wolfnowl

    (@wolfnowl)

    Hi There: First of all, I wanted to mention that I appreciate your assistance! I’m trying to figure this out and finding it frustrating…

    Under Smart Loading it says, “Please note that when enabling this Shadowbox will not be loaded if rel=”shadowbox” is not found in the content of your post(s).”

    That sounds to me that if Smart Loading is set to ‘true, Shadowbox will not be loaded on a post if the rel=”shadowbox” isn’t found in that post.

    My experience, and it may be unique, is that if I set automation to a certain file type to ‘true’ – say a .jpg file link for example, then Shadowbox will load EVERY .jpg link on my site, whether or not I have the rel=”shadobox” added to the html for a specific link or not. I can’t have Shadowbox load a .jpg link on one post but not on another. It’s either on or off. It doesn’t matter whether I have the Smart Loading set to ‘True or ‘False’, the same thing happens.

    Here’s what I’m talking about. Two post pages, both of which have .jpg images, both of which are linked to an image on Flickr.

    1) This post does NOT have a rel=”shadowbox” in the code:
    https://bit.ly/ad4YlP

    Here’s the link code:
    <img class=” ” style=”border: 5px solid black;” title=”Driftwood Sculpture” src=”https://farm3.static.flickr.com/2486/4103024987_8f09281975_o.jpg&#8221; alt=”Driftwood Sculpture” width=”500″ height=”294″ />

    2) This post DOES have a rel=”shadowbox” in the code:
    https://bit.ly/9MS0iC

    Here’s the link code:
    <img class=” aligncenter” title=”Kasugai Garden koi” src=”https://farm4.static.flickr.com/3014/2892917210_7fcd1fa96a_o.jpg&#8221; alt=”” width=”640″ height=”480″ rel=”shadowbox” />

    Now, if in the Shaowbox plugin settings I set the Automation for Image Links to ‘true’, BOTH images load in Shadowbox. If I set the Automation for Image Links to ‘false’, NEITHER of the images loads in Shadowbox. This happens whether Enable Smart Loading is set to ‘true’ or ‘false’. It doesn’t matter.

    Mike.

    Under Smart Loading it says, “Please note that when enabling this Shadowbox will not be loaded if rel=”shadowbox” is not found in the content of your post(s).”

    That sounds to me that if Smart Loading is set to ‘true, Shadowbox will not be loaded on a post if the rel=”shadowbox” isn’t found in that post.

    If Smart Loading is set to true, the shadowbox.js file will only be loaded if rel=”shadowbox”, or variants of that, are found in the posts content that is being displayed. So what you said is correct.

    My experience, and it may be unique, is that if I set automation to a certain file type to ‘true’ – say a .jpg file link for example, then Shadowbox will load EVERY .jpg link on my site, whether or not I have the rel=”shadobox” added to the html for a specific link or not. I can’t have Shadowbox load a .jpg link on one post but not on another. It’s either on or off. It doesn’t matter whether I have the Smart Loading set to ‘True or ‘False’, the same thing happens.

    You are both correct and incorrect here…Smart Loading only references whether or not the shadowbox.js file will be loaded, it has nothing to do with actually adding rel=”shadowbox”. If you only want certain links to use shadowbox there are several things you can do, either turn the automation off and add rel=”shadowbox” to each image you want manually. Or you can turn the automation on and add rel=”nobox” to each image that you don’t want it used on. Again “Smart Loading” means, that if it finds rel=”shadowbox” in the posts content that it will add the script tag to the source of your apge to load shadowbox.js. It doesn’t have anything to do with actually adding the rel=”shadowbox”.

    Thread Starter wolfnowl

    (@wolfnowl)

    Thanks. Let me clarify:

    1) I understand that I must add the rel=”shadowbox” manually to a post.

    2) As you can see from the codes in my previous post, I have two posts as samples, one with a rel=”shadowbox” code and one without.

    3) If I turn automation on in the Shadowbox settings, then both images will load in Shadowbox – the one with the rel=”shadowbox” code and the one without.

    4) If I turn automation off, then neither of the images will load in Shadowbox.

    5) This happens whether the Smartloading is set to ‘True’ or ‘False’, i.e. setting the Smart Loading option has no effect either way.

    I don’t imagine Shadowbox is supposed to work that way, but it does, at least on my site.

    Mike.

    P.S. I currently have the automation set to false and Smart Loading set to true. If you click on the bit.ly links in my previous message you’ll see what I mean. Neither of the image links load in Shadowbox.

    I just realized what you are doing wrong. Shadowbox operates on anchor/link <a> tags and not on the <img> tags. The rel="shadowbox" attribute needs to be added to the link and not the image.

    Thread Starter wolfnowl

    (@wolfnowl)

    Duh…

    Thanks for your persistence!

    Mike.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Shadowbox JS] Shadowbox Problem’ is closed to new replies.