Support » Plugin: Facebook Stream » lightbox off – directly on fb post at the click on pic

  • Hello everyone,

    Is there any possibility of removing the lightbox opening at the click on the pic, and opening directly the post on facebook instead?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ivan M

    (@ivanm89)

    Basically you can remove lightbox with one small code modification, open the template file (for example facebook-stream/templates/white_stream_tpl.php) and delete this part of code:

    
            jQuery(".sliboxes_fbstreamfree").colorbox({
                rel:'group1',
                photo:true, 
                title: function(){
                    var url = jQuery(this).attr('data-fb_link');
                    return '<a href="' + url + '" target="_blank">Show more</a>';
                }
            });
            jQuery(".video_fbstreamfree").colorbox({
                iframe:true, 
                innerWidth:640, 
                innerHeight:390,
                title: function(){
                    var url = jQuery(this).attr('data-fb_link');
                    return '<a href="' + url + '" target="_blank">Show more</a>';
                }
            });
    

    If you want to open post on facebook when user click on the image, then you have to do another modification in the same file

    replace this

    
    <a class="<?php echo $box_class;?>" href="<?php echo $box_src;?>" data-fb_link="<?php echo $OnePost['fb_link'];?>" alt="<?php echo $OnePost['name']?>">
                    <img class="facebook-stream-container-img-dark" src="<?php echo $OnePost['picture'];?>" />
                </a>
    

    with this

    
    <a class="<?php echo $box_class;?>" href="<?php echo $OnePost['fb_link'];?>" data-fb_link="<?php echo $OnePost['fb_link'];?>" alt="<?php echo $OnePost['name']?>">
                    <img class="facebook-stream-container-img-dark" src="<?php echo $OnePost['picture'];?>" />
                </a>
    
    • This reply was modified 4 years, 2 months ago by Ivan M.
    Thread Starter markuzzodeboss

    (@markuzzodeboss)

    Hello Ivan,

    thanks for your support.

    Unfortunately the code you gave me is not working completely on the website. It removes the lightbox, but it does not associate the image to the link. It opens the image on the web.

    In order you to have a better understanding you can see the result at the link:

    http://www.isaac-project.it

    Thanks a lot in advance

    M.

    Thread Starter markuzzodeboss

    (@markuzzodeboss)

    Hi Ivan,

    i wrote about my problem but no answer yet.

    Do i have still some hope or i shall give up?

    Greetings and happy new year!

    M.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘lightbox off – directly on fb post at the click on pic’ is closed to new replies.