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

  • SEARCH
  • Home
  • 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 6058067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:33:30+00:00 2026-05-23T08:33:30+00:00

I know the post seems long, but I’m sure there’s a very simple solution.

  • 0

I know the post seems long, but I’m sure there’s a very simple solution. Please read through.

Ok so I have me little php here that fetches images:

<div id="<?php echo $smallThumbs; ?>" class="imageflow">
<?php 

foreach($images as $imgInfo) {
$f = File::getByID($imgInfo['fID']);

    echo '<img src="';
    echo $f->getRelativePath();
    echo '" longdesc="';
    echo $f->getRelativePath();
    echo '" ';
    echo 'alt="';
    echo $imgInfo['description'];
    echo '"/>';
        ;}; ?>

</div>

And this is the fancybox code: http://www.pastie.org/2096958

I pasted it on pastie because it was too long, and I can’t make out anything.

I changed the very last bit from

$(“.login-popup-link”).fancybox

to

$(“.imageflow”).fancybox

to get any results at all. Now the popup shows but it says

“The requested content cannot be loaded. Please try again later.”

Another place where I’m using the same feature, it runs smoothly with this code for the base image, which when clicked shows the popup

<a class="login-popup-link" href="#login-popup"><img src="images/vid.png" width="280" height="216"/></a>

Please help!
I’ve also tried adding ‘a’ tags in the php code up top, but that just makes the whole gallery disappear.

Thank you in advance!

  • 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-05-23T08:33:30+00:00Added an answer on May 23, 2026 at 8:33 am

    Fancybox works on the <a> tags themselves, but in your code you’re pointing it to the <div> that surrounds your ‘a’ tags. What you need to do is change the javascript from this:

    $(".imageflow").fancybox({
    

    to this:

    $(".imageflow a").fancybox({
    

    Note that if you want multiple images to be grouped together so that you can click arrows in the fancybox to go back and forth between them, you need to give each ‘a’ tag the same “rel” attribute, for example:

    echo '<img src="';
    echo $f->getRelativePath();
    echo '" longdesc="';
    echo $f->getRelativePath();
    echo '" rel="gallery1"';
    echo 'alt="';
    echo $imgInfo['description'];
    echo '"/>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there is this post , but I still want to know more
I know the post is long but it also contains suggested solutions to my
Apologies for the long post -- Read a few threads about this, but still
I cant post the code (proprietary issues) but does anyone know what types of
I understand that Javascript doesn't have multiple threads, but I'd like to know if
I don't have time to read or digest long intricate discussions on theoretical concepts
I have a solution with several projects, where the startup project has a post-build
Sorry for the long post, but this forum always asks for use cases :-).
I have been configuring a wordpress theme for a month now, but know I
I know you should use POST whenever data will be modified on a public

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.