Gallery and the Lightbox Feature
"wwalkerbout" <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Organization | Walkerbout Technologies |
| Message-ID | <[email protected]> |
Hi Brian,
I have finally got back on to working with the Gallery Module again after
another forced hiatis. It works fine for me when using the standard display
features. But when I have attempted to use the "Lightbox" feature, I keep
running into issues.
For instance, the original code in my "user-view-lightbox.xt" template file
is as follows:
============
<xar:set name="path">$files_path.$file['file']</xar:set>
<xar:set name="lightbox_path">xarModAPIFunc('images', 'user', 'resize',
array('src' => $path, 'static' => true, 'params' => $lightbox_params,
'label' => 'none', 'returnpath' => true))</xar:set>
<a href="#$lightbox_path#" rel="lightbox[page]"><xar:image-resize
src="$path" static="1" label="Media" params="$params" /></a>
============
This will allow the page to display, but with raw code included with each
image, as follows:
============
" rel="lightbox[page]" title="01.jpg">
============
Then when I click on an image, I get the following message:
============
Access forbidden!
You don't have permission to access the requested object. It is either
read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
local.testdev
11/01/06 00:40:19
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color
PHP/5.1.2
============
But I then tried modifying the anchor as follows:
============
<a href="#$path#" rel="lightbox"><xar:image-resize src="$path" static="1"
label="Media" params="$params" /></a>
============
By doing this, the raw code included with each image disappears and the
typical "Lightbox" behavior of the background dimming occurs, but the large
image display is not presented.
I have tried all sorts of things to get the large Image to display
(including all sorts of messging around with security), without success.
This request for any suggestions on how to correct this issue is therefore
my final attempt to get it working.
As I mentioned, the non-lightbox display of images is working just fine, but
I'd really like to get the Lightbox version working if at all possible.
Any suggestions whatsoever would be most appreciated.
Cheers,
Wayne