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
`
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:
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!
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!
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.
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!