cdd lightbox not working

prophoto

Active Member
I have a form (#4 in ansl site) which has custom code to display images along with checkboxes for photo ordering. For some reason lightbox is not working. It works perfectly with the same eval options in a dbjoin element, just not with a cascading dropdown. Here is the eval php from Hugh with a couple of changes.

Code:
$path_parts = pathinfo($opt->text);
$filename = $path_parts['filename'];
$basename = $path_parts['basename'];
$opt->text = '
<div class="img-checkbox-item">
<a href="' . COM_FABRIK_LIVESITE . 'images/photogallery/' . $basename . '" rel="lightbox[photos]" title="' . $filename . '">

<img class="fabrikLightBoxImage" src="' . COM_FABRIK_LIVESITE . 'images/photogallery/thumbs/' . $basename . '" alt="' . $filename . '"/>
' . $filename . '</a>
<br/><br/>
</div>
';
 
Edit: I had to remove the test join to send this to the client for approval. You can see the dbjoin working fine on page 2 in the "framed collages" group, "choose collage type". Top of page 2.
 
I committed a change to the lightbox2.js which I think will fix this. Problem is that CDD content is added via AJAX after the page has been loaded, and after the initial Slimbox scanPage is done. So I've added a trigger to run the scanPage when the CDD updates.


Sent from my HTC One using Tapatalk
 
Seems to be happening again, can't get lightbox to work. Code didn't change from last year. Sent links via skype.
 
Fixed, as per our Skype conversation. I'll commit the fix to github soon.

Sent from my HTC6545LVW using Tapatalk
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top