Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)
  • Having the same issue. Just upgraded to WooCommerce 2.3.7 and zoom stopped working. It shows the “loading” label and nothing works. Links just go to the image file. I’ve deactivated a bunch of plugins to see if its a conflict, but none seem to trigger it.

    Hey ClickON GmbH – did you ever resolve this issue? I’ve just come across this myself and wondering if there was a solution to this. Thanks!

    Thread Starter mfal55

    (@mfal55)

    Wow – thanks so much Archetype – I really appreciate you taking the time to explain the breakdown on that. I’d rather understand the reason as opposed to just applying the end result. So thank you very very much. I hope this post is helpful to others using your excellent lightbox and the Advanced Custom Fields plugin.

    The final output is this:

    <?php
    $image_ids = get_field('my_custom_gallery_field', false, false);
    $shortcode = '
    [gallery ids="' . implode(',', $image_ids) . '"]
    ';
    $gallery = do_shortcode( $shortcode );
    echo slb_activate($gallery);
    ?>

    Thread Starter mfal55

    (@mfal55)

    Got it working from a thread I found on the ACF website. The solution is to add the apply_filters with the_content along with the shortcode. So incase anyone is trying to use SLB with and Advanced Custom Fields Gallery, this should work.

    <?php 
    
    $image_ids = get_field('my_custom_gallery_field', false, false);
    
    $shortcode = '
    [gallery ids="' . implode(',', $image_ids) . '"]
    ';
    
    echo apply_filters('the_content', $shortcode);
    
    ?>
    Thread Starter mfal55

    (@mfal55)

    I think I’m confused when you say it activates links in text content. I was able to activate the link of a thumbnail image in another field just fine. So for example, I was able to do this and it triggered the lightbox on the images in this custom content field.

    <?php
       	$content = get_field('sidebar_content');
    	if ( function_exists('slb_activate') )
    	$content = slb_activate($content);
    	echo $content;
     ?>

    But trying to inject the slb_activate() into my gallery code, I just can not get it to work and am at a loss as to how to figure it out.

    Thread Starter mfal55

    (@mfal55)

    thanks so much Archetyped! So I’ve got it running successfully on the standard tag, but I need just a little more assistance regarding something a tad more complex. I’m missing something, that I can’t pinpoint. I have a custom field for a gallery, and I want to trigger the lightbox on it. I’m going to paste the original code that I use to display the gallery, which without any further customization merely opens up to an attachment page for now. The second set of code is me attempting to implement the lightbox. Is there anyway you can cue me in on what I’m doing wrong? I’m guessing it’s some basic php issue, but I just can’t see it.

    original code:

    <?php 
    
    $image_ids = get_field('program_photo_gallery', false, false);
    
    $shortcode = '
    [gallery ids="' . implode(',', $image_ids) . '"]
    ';
    
    echo do_shortcode( $shortcode );
    
    ?>

    edited code to include SLB:

    <?php
    	$content = $image_ids;
    	$image_ids = get_field('program_photo_gallery', false, false);
    	if ( function_exists('slb_activate') )
    	    $content = slb_activate($content);
    	    $shortcode = '
    		[gallery ids="' . implode(',', $image_ids) . '"]
    		';
    	echo do_shortcode( $shortcode );
    ?>

    It doesn’t break the page, but also doesn’t trigger the lightbox… any help you can give is greatly appreciated.

    Thanks!

    Thread Starter mfal55

    (@mfal55)

    Thanks Archetyped – I’m not sure how to manually activate it along side a call to my custom field. I think perhaps I would need to create a filter, but am unsure of how to do this? To display the content which lives in the custom field, I use this snippet of code:

    <?php the_field('my_custom_content'); ?>

    Where and how would I inject the slb_activate() tag to trigger the links to open up in a lightbox? There aren’t really any examples like this available on your site or that I’ve run across online.

    Thanks again for your help here.

    Thread Starter mfal55

    (@mfal55)

    thanks so much! this worked. how do I get it to click through a group? is this possible?

    Thread Starter mfal55

    (@mfal55)

    Hi there – I’m essentially just trying to trigger the lightbox from my href, see the link to vimeo below:

    <?php
    $videoID = get_field('video_id');
    $jsonurl = 'https://vimeo.com/api/v2/video/'.$videoID.'.json';
    $json = file_get_contents($jsonurl,0,null,null);
    $json_output = json_decode($json,true);
    echo '<a href="https://vimeo.com/'.$videoID.'" rel=”lightbox-n”><img src="'. $json_output[0]['thumbnail_large'] .'" /></a>';
    ?>

    in the previous lightbox plugin I was using, all I needed is the rel=”group-name” but it doesn’t seem to be that simple with this. Any advice?

    Hi there – there seems to be no documentation on how to use this. Also, does version 2.3.1 include this template tag (not sure if the beta is earlier than the latest version)?

    Thread Starter mfal55

    (@mfal55)

    Thanks so much! I appreciate the reply and the temporary fix. Applied and works!

    I also put mine in the root and it worked. Have you tried clearing your cache?

    Worked like a charm!!

    Thanks – yeah, I just updated Firefox and it still breaks. I’ll give the .htaccess file a try. Thanks nutsandboltsmedia!!

    Hi there – can you explain how to resolve this issue with Firefox?

    Thank you for any help you can give.

Viewing 15 replies - 1 through 15 (of 29 total)