ZenphotoCMS Forum
Colorbox is not activated on my online copy of the template - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Colorbox is not activated on my online copy of the template (/thread-9932.html)



Colorbox is not activated on my online copy of the template - ferentz - 2012-05-04

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
`

[img]/cache/inspiratie/wallpapers-1/wallpaper-4_w580_h326_watermark-aerografie-trans.jpg[/img]

Offline

[img]/cache/inspiratie/wallpapers/wallpaper-4_w580_h326_watermark-aerografie-trans.jpg[/img]

`
me a fix. Thank you!




Colorbox is not activated on my online copy of the template - sbillard - 2012-05-04

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.




Colorbox is not activated on my online copy of the template - ferentz - 2012-05-04

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!




Colorbox is not activated on my online copy of the template - ferentz - 2012-05-04

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

`




Colorbox is not activated on my online copy of the template - sbillard - 2012-05-04

What you commented out indicates that the options ARE NOT THE SAME.




Colorbox is not activated on my online copy of the template - acrylian - 2012-05-04

To specific the first link is an protected full image link that likey does not work with a colorbox.




Colorbox is not activated on my online copy of the template - Laurent - 2012-05-04

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




Colorbox is not activated on my online copy of the template - acrylian - 2012-05-04

Right, forgot to think about that.




Colorbox is not activated on my online copy of the template - ferentz - 2012-05-04

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!