• Hi,

    I’m all fairly new to this so sorry if my question seems a little simple!

    I’ve created a gallery and have inserted into a new page. When I click on one of the thumbnails it takes me to the photo location.

    Is there a way, instead of taking me to the photo location, can I link a post to the photo?

    Any ideas would be most grateful!

Viewing 9 replies - 16 through 24 (of 24 total)
  • nextGEN Version: 1.0.2 for the Web2.0 (the latest as of Jan.09)

    I have a visual and step by step tutorial for this:

    https://home.yourconame.com/nextgen-linking-image-to-url/2009/archives/

    Thanks to beckhamlkc for the light of leading.

    ~Adrie Silva
    https://www.silvaprints.com

    Hi,

    I want this to get working with the flash image rotator. so when I click on an rotating image it will follow the link added as alt text. I allready made a custom code to use the alt text as link but only when it is for example gallery id 2. So other galleries are not affected. Is it possible to add this functionality to the Flash rotator or does JW need to alternate his actionscript in the SWF file?

    If not possible right now, I think this would be a very nice feature for upcomming versions of NEXTGEN or the JW Image Rotator.

    Greetz, John

    Adrie,

    I tried your suggestions and nothing. The thumbnail still links to the imageURL and not the page URL discribed in the alltext area. Could you please cut and paste what the finished gallery thumbnail code is? I appreciate your tutorial, but something got lost in translation.

    Thanks
    Tim

    Hey tdanyo did you get your solution yet?

    If you look at my hardware page you see the thumbnails link to an outside support page (outside URL)..

    Um.. I’m using nextGen version 1.0.2 Let me know.

    https://yourconame.com

    “If you look at my hardware page you see the thumbnails link to an outside support page (outside URL)..”

    goodenvy,

    I plugged in your exact code and the link is still directed to the imageURL and not the altext url associated with the particular thumbnail. This is the code:

    <!– Thumbnails –>
    <?php foreach ($images as $image) : ?>

    <div id=”ngg-image-<?php echo $image->pid ?>” class=”ngg-gallery-thumbnail-box”>
    <div class=”ngg-gallery-thumbnail” >
    alttext ?>” title=”<?php echo $image->description ?>” <?php echo $image->thumbcode ?> >
    <img title=”Link” alt=”Link” src=”<?php echo $image->thumbnailURL ?>” <?php echo $image->size ?> />

    </div>
    </div>

    Yes. I see the thumbnails on your hardware page and that is what I am trying to do. I am using the 1.1.0b version. Maybe this is to blame? It shouldn’t though because all of the code is identical except the code we are switching out.

    This is really frustrating.

    This is my test page:

    https://imaginationmedia.tv/services/test

    You can see how the thumbnails are behaving. The DVD icon in the main text area is the one I want to link to another url and not the image url.

    tdanyo, i had a peek at:
    https://imaginationmedia.tv/services/test

    and found that you have not updated your alttext field in your images’ gallery… go to Gallery–>Manage Gallery–><your gallery>

    <!-- Thumbnails -->
            <?php foreach ($images as $image) : ?>
    
            <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
                    <div class="ngg-gallery-thumbnail" >
                            <p>
                            <a href="<?php echo $image->alttext ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
                                    <img title="<?php echo $image->description ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <
    ?php echo $image->size ?> />
                            </a>
                            <a href="<?php echo $image->alttext ?>"><?php echo $image->description ?></a>
                            </p>
                    </div>
    
            </div>
            <?php endforeach; ?>

    this is my version of the code… copy it exactly to your gallery.php (thumbnail portion) and update each image’s alttext field(one liner textbox) with the URL you want to redirect to and each image’s description field(multiple lines textbox) with text to appear when mouseover-ing the thumbnail.

    ~cheers~

    @ Parap thanks!!!!! This was exactly what I was looking for! It saved me lots of time. I do have a small q…Is there a way to open the URL(s) in a new window using this method? When I use this method the URL opens in the same window. Any help would be welcome…

    Johnwwo,
    can you share how you did it for the slide show? I ‘ve been looking for that for a long time…
    Thanks

    +1 – would like to know about a mod for the SLideshow to link to individual pages.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘NextGEN Gallery – edit link of photo to specific post?’ is closed to new replies.