Author Topic: Get direct image link from details.php page  (Read 19008 times)

0 Members and 1 Guest are viewing this topic.

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Get direct image link from details.php page
« 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?

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #1 on: June 24, 2008, 10:42:32 AM »
Hello, and welcome in this forum.
Look at Rembrandt's site, 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.

Regards.


Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Get direct image link from details.php page
« Reply #2 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>";

    }

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #3 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!

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Get direct image link from details.php page
« Reply #4 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.

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #5 on: June 24, 2008, 11:17:47 AM »

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Get direct image link from details.php page
« Reply #6 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!

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #7 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 sub-forum.

Thanks.

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Get direct image link from details.php page
« Reply #8 on: June 24, 2008, 12:45:31 PM »
Tutorial has thus been added :)

Can be found here.

Once again, thanks for your help :)

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #9 on: June 24, 2008, 04:32:53 PM »
Hey!
where is the 4homepages copyright in your own website, nasty boy?

Offline plasticphyte

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Get direct image link from details.php page
« Reply #10 on: June 24, 2008, 11:10:26 PM »
All fixed.

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Get direct image link from details.php page
« Reply #11 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