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 6914819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:23:48+00:00 2026-05-27T09:23:48+00:00

I have an album plugin (php) that creates thumbnails for my images in one

  • 0

I have an album plugin (php) that creates thumbnails for my images in one page and when i click on images opens each image in a new page.
Is there a way to opening images on the same page of thumbnails?

This is my code of thumbnails:

    <div class="thumbs">

        <?php foreach (wppa_get_thumbs() as $tt) :  global $thumb; $thumb = $tt; ?>
                <a href="<?php wppa_photo_page_url(); ?>" class="img"><img src="<?php wppa_thumb_url(); ?>" alt="*" /></a>
        <?php endforeach; ?>

    </div>

and this is the code of specific photo:

<?php } else if (wppa_page('single')) { // if is showing a specific photo ?>
    <a href="<?php wppa_photo_url(); ?>"><img src="<?php wppa_photo_url(); ?>" alt="<?php wppa_photo_name(); ?>" class="big" <?php echo wppa_get_fullsize(); ?> />
    </a><br />
<?php }  ?>

And this is the function that creates links:

// get link to photo
function wppa_photo_page_url($return = FALSE) {
    global $thumb;
    $url = get_permalink()  . wppa_sep() . 'album=' . $_GET['album'] . '&amp;photo=' . $thumb['id'];

    if ($return) {
        return $url;
    } else {
        echo $url;
    }
}

I tried to remove the link code but does not work.

  • 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-27T09:23:49+00:00Added an answer on May 27, 2026 at 9:23 am

    It’s actually very easy to do using plain javascript’s Image object. You can have a function that does something like this:

    function load_image(image_path)
    {
       var image = new Image();
       image.src = image_path;
       return image;
    }
    

    You can pull the url to the image from the link that they click on.

    Then, append that image to a hidden div you have and make it visible. If you’re using jQuery:

    var image = load_image("/path/to/your/image.jpg");
    $(image).appendTo("#your-image-div");
    $("#your-image-div").show();
    

    This is untested, but should work.

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

Sidebar

Related Questions

I have a ms access database that has one table for each photo album
I have a search engine that searches albums. For each music album, I have
Say I have the following code: var album = new MyObject('album'); Assume that when
I am retrieving facebook album images from facebook.I have calculating the image size using
I just noticed in vk.com that the images in your album have fixed width
i have a webpage with a lot of images (photo album). I am using
I have created one songs album app. In this app, i have to play
I have an photo album that I have uploaded to facebook before , and
I have two lists .album and .favorites First I was using this each() loop
Say we have this scenario: Artist ==< Album ==< Track //ie, One Artist can

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.