Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8173571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:12:20+00:00 2026-06-06T22:12:20+00:00

Does anyone out there know how to integrate ContentFlow ( http://www.jacksasylum.eu/ContentFlow ) and Lightbox2

  • 0

Does anyone out there know how to integrate ContentFlow (http://www.jacksasylum.eu/ContentFlow) and Lightbox2 (http://lokeshdhakar.com/projects/lightbox2/)?

I need the ability for the image to not only open in a lightbox, but when opened, also have the user be able to the next and previous images.

Right now, I’m using ContentFlow with the Lightbox Addon (you can find this on the ContentFlow website), but that only uses the original Lightbox, so I can’t make a gallery (or at least I can’t figure out how to).

ContentFlow seems to be a pretty fickle product, and it doesn’t accept lots of things.

Thank you all for your help and please comment!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:12:22+00:00Added an answer on June 6, 2026 at 10:12 pm

    On official site of ContentFlow there is AJAX section,
    and example of how it should be used : http://www.jacksasylum.eu/ContentFlow/ajax_example.inc.php.

    Main idea is that all those images are processed in a single place.

    var ajax_cf = new ContentFlow('ajax_cf', 
    ...
    
    function addPictures(t){
            var ic = document.getElementById('itemcontainer');
            var is = ic.getElementsByTagName('img');
            for (var i=0; i< is.length; i++) {
                ajax_cf.addItem(is[i], 'last');
            }
    } 
    

    appPictures is callback function to be called when images are done loading.

    You can group them in a hidded div according to the structure lightbox would expect.

    I am using it with the callback from jquery preloader

    jQuery.preloadImages = function () {
        if (typeof arguments[arguments.length - 1] == 'function') {
            var callback = arguments[arguments.length - 1];
        } else {
            var callback = false;
        }
        if (typeof arguments[0] == 'object') {
            var images = arguments[0];
            var n = images.length;
        } else {
            var images = arguments;
            var n = images.length - 1;
        }
        var not_loaded = n;
        for (var i = 0; i < n; i++) {
            jQuery(new Image()).attr('src', images[i]).load(function () {
                if (--not_loaded < 1 && typeof callback == 'function') {
                    callback();
                }
            });
        }
    }
    

    Usage :

    $.preloadImages(imagesArray, function () {
        addPictures();
    });
    

    imagesArray in my case is array of relative path’s

    Note that ContentFlow is catchy with:

    1. clearing and repopulating the flow

    2. showing only two images

    3. circular view

    4. pushing more than 10 images at once

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if there is a framework out there that is able to
Does anyone out there know what image format results in the fastest loading speeds?
Does anyone know if there is a help authoring tool out there that can
Does anyone out there know if it is possible to use sharding with a
Does anyone out there know if its possible to show a working version of
Does anyone out there know of any combination social media/portal platforms with a multi-vendor
Does anyone out there know how I can view what's actually being copied from
Does anyone out there know about examples and the theory behind parsers that will
This is a bit of a crazy question, but does anyone out there know
Does anyone out there know of a regex command that will take the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.