![]() |
|
colorbox pass variables - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: colorbox pass variables (/thread-10302.html) |
colorbox pass variables - BigLouis87 - 15-08-2012 I know this couldn't be the most appropriate forum to ask, but I didn't find a colorbox support forum. Every eventual help will be appreciated. In my zenphoto site I have to open the image in an openbox window, with 80% screen width and height size; however every image must have the (ugly and bad, I know) facebook plugin on its side, so I have to open an iframe that contains the image.php (that I have full rewritten). The problem is that I have to resize the image to fit the colorbox iframe, even in the height: the actual solution is to use a javascript that resize the image object in the DOM after the page is loaded, checking the window size. A good idea would be to pass the dimension of the I found this interesting post on drupal forum, but drupal uses its own colorbox load module... any idea to implement this into zenphoto? Thanks colorbox pass variables - acrylian - 16-08-2012 Well, that is a drawback of the iFrame vs direct calling of an image. The colorbox calls the content to be opened in an iFrame via a normal `` so it should be able to append some get parameters to that. But actually I would suggest to go the responsive route doing this via CSS (I assume you know about "responsive webdesign") since the colorbox size is dependent on the browser window. And the iFrame itself is actually another browser window. colorbox pass variables - BigLouis87 - 16-08-2012 Oh my... There is always a simpler way. Always. lol |