Author Topic: Path to thumbnail in detail.html  (Read 7474 times)

0 Members and 1 Guest are viewing this topic.

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Path to thumbnail in detail.html
« on: July 17, 2002, 02:09:15 PM »
Hello,

I am about to finalize the intregration with MOFcart (very basic).

The ordering info is pushed from details.html to MOFcart. One thing I haven't found yet is a way to push the path the thumbnail of the image to mofcart.
Is there a variable in details.html/php that contains the url to the thumbnail of the picture that is viewed? A url to the picture itself would also be good.

This way people can see what pictures they ordered.

All tips are welcome.

Kind regards,
Piet

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Path to thumbnail in detail.html
« Reply #1 on: July 17, 2002, 02:28:10 PM »
Check function get_file_path() in "includes/functions.php".

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Path to thumbnail in detail.html
« Reply #2 on: July 17, 2002, 03:53:10 PM »
Hello Jan,

I think this means that I need to hack into the source code.
But I want to stay "standaard", this way updates don't cost me to much headaches. The only adjustements I am making now are in details.html and that is

Isn't there other way to get it.

All I need is a way to get:
<img src="./data/thumbnails/3/CRW_2224a.jpg"> or <img src="./data/media/3/CRW_2224a.jpg">
where crw_2224a.jpg is the current file on screen.

Now I can get a part by using {image} but then it also gives border, width etc.

Kind regards,
Piet

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Path to thumbnail in detail.html
« Reply #3 on: July 17, 2002, 04:11:19 PM »
Ok, you can build the path like this:

./data/media/{cat_id}/{image_file_name}

or

./data/thumbnails/{cat_id}/{thumbnail_file_name}


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Path to thumbnail in detail.html
« Reply #4 on: July 17, 2002, 04:54:25 PM »
:D
You just made my day.
almost ready.

Piet

Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
thumbail_url thumnail url thumbnail location full path
« Reply #5 on: December 03, 2011, 03:00:51 AM »
do you know how long i have been searching for this...

./data/thumbnails/{cat_id}/{thumbnail_file_name}