Member
Member
ferentz   2012-05-04, 00:59
#1

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!

Member
Member
sbillard   2012-05-04, 02:03
#2

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.

Member
Member
ferentz   2012-05-04, 13:25
#3

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!

Member
Member
ferentz   2012-05-04, 13:43
#4

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

`

Member
Member
sbillard   2012-05-04, 14:25
#5

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

Administrator
Administrator
acrylian   2012-05-04, 14:30
#6

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

Member
Member
Laurent   2012-05-04, 18:27
#7

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

Administrator
Administrator
acrylian   2012-05-04, 18:31
#8

Right, forgot to think about that.

Member
Member
ferentz   2012-05-04, 18:34
#9

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!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.