Colorbox is not activated on my online copy of the template

I have made a custom theme for my website and I have discovered a problem with colorbox. In my localhost it works just fine. When I click the image it pops up. However, on the same template it doesn't work online. I have checked to see if colorbox is activated and if the pages on wich to open colorbox are checked. The online and the offline websites have the exact same settings, however different hosts.

The only clue that I have is that the image links seem to be different:
Online
`

SSJ-134209

`
Offline
`

SSJ-134209

`
me a fix. Thank you!

Comments

  • Have you double checked that all the options are set correctly? That the image actually exists? Is the image cached?, etc.

    The image links are identical so that is not the problem.
  • ferentz Member
    I have checked multiple times. The links are different. The offline version has `class="thickbox"` in the anchor tag. The online version doesn't have this attribute. Also the href attribute is different:

    Online:
    `/zp-core/full-image.php?a=inspiratie%2Fwallpapers-1&i=wallpaper-4.jpg&q=90&wmk=watermark-aerografie-trans`

    Offline:
    `/albums/inspiratie/wallpapers/wallpaper-4.jpg`

    Clearly the links have not been modified to open the colorbox plugin but I don't understand why not. I have checked that all settings are correct. I can take a screenshot if you need. Thanks!
  • ferentz Member
    Heh, I made it work but it's a hack. Not the best solution, however in my case I can live with it.

    I have commeted in image.php the code that checks if colorbox is active

    `
    <?php if( /*getOption("Use_thickbox") &&*/ isImageVideo()) {
    $boxclass = " class=\"thickbox\"";
    $tburl = getUnprotectedImageURL();
    } else {
    `
    If I'll be able to dig more on this I'll notify you. Maybe it's a bug. Anyway. Thank you again!
  • What you commented out indicates that the options ARE NOT THE SAME.
  • acrylian Administrator, Developer
    To specific the first link is an protected full image link that likey does not work with a colorbox.
  • Laurent Member
    Hi,
    In my case i have write :
    `$tburl = getFullImageURL();` and protected image works with colorbox, but by memory, i have had this code : `photo:true,` in the colorbox argument.

    Hope this help.
    Laurent
  • acrylian Administrator, Developer
    Right, forgot to think about that.
  • ferentz Member
    Tried getFullImageURL before you posted but i didn't work. I guess photo:true is needed. However I don't think I'll need the watermark on the large image. Thank you!
Sign In or Register to comment.