4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: plasticphyte on June 24, 2008, 10:07:43 AM

Title: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 10:07:43 AM
My apologies if this is in the wrong forum, please move to the appropriate one as need be.

I'm trying to get lightbox v2 working with the 4images gallery (1.7.4) but from the details.php page.

I've got it working, except linking to the image from the gallery thumbnails page, because the URL is not a direct link to the image itself (which is what lightbox v2 needs).

Is there anyway I can get the thumbnail page to link directly to the fullsize image instead of the details.php page?
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 24, 2008, 10:42:32 AM
Hello, and welcome in this forum.
Look at Rembrandt's site (http://www.vienna-pictures.com/), and click on the thumbnails.

Is it the result you expected to have?
If so, sorry to not have time enough, but use this forum's search engine about highslide (http://www.4homepages.de/forum/index.php?action=search2&search=highslide).

Regards.

Title: Re: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 10:44:47 AM
Yes, that would be what I'd want (Rembrandt's site) - preferably without the session ID at the end of the URL.

I should point out that so far I've been editing functions.php (in the includes directory).

I've modified this entry:

Code: [Select]
    else {

      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";

    }

To this:

Code: [Select]
    else {

      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" rel=\"lightbox\">".$thumb."</a>";

    }
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 24, 2008, 10:53:18 AM
Sorry, I'm really in a hurry;
please expect for other users to help you, and they are very much!
Title: Re: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 10:55:02 AM
It's not a worry, I'm not in a hurry. I've had a look at the sites you've pointed out, and the mod you linked to which is pointing me in a direction, so I'll hopefully figure something out ;)

I'd just prefer to be able to use Lightbox.

Thanks for your help.
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 24, 2008, 11:17:47 AM
Try this: JavaScript + CSS = Nice Picture Display (http://www.4homepages.de/forum/index.php?topic=11115.msg95383#msg95383)
Title: Re: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 11:22:04 AM
Thanks, I've managed to get it sorted from all the help you've provided :)

I'll put together a little tutorial from my experiences. Much appreciated mate!
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 24, 2008, 11:36:25 AM
You are and will allways be welcome.
Anyone who is able to explain and share his own successfull experience will be welcome in the tutorials (http://www.4homepages.de/forum/index.php?board=31.0) sub-forum.

Thanks.
Title: Re: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 12:45:31 PM
Tutorial has thus been added :)

Can be found here (http://www.4homepages.de/forum/index.php?topic=21991.0).

Once again, thanks for your help :)
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 24, 2008, 04:32:53 PM
Hey!
where is the 4homepages copyright in your own website, nasty boy?
Title: Re: Get direct image link from details.php page
Post by: plasticphyte on June 24, 2008, 11:10:26 PM
All fixed.
Title: Re: Get direct image link from details.php page
Post by: † manurom on June 25, 2008, 12:01:56 AM
Many thanks!
Respecting each other is the best way to learn.
You'll allways be welcome.

Regards.

manurom