4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: pietg on July 17, 2002, 02:09:15 PM

Title: Path to thumbnail in detail.html
Post by: pietg 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
Title: Path to thumbnail in detail.html
Post by: Jan on July 17, 2002, 02:28:10 PM
Check function get_file_path() in "includes/functions.php".

Greets Jan
Title: Path to thumbnail in detail.html
Post by: pietg 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
Title: Path to thumbnail in detail.html
Post by: Jan 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
Title: Path to thumbnail in detail.html
Post by: pietg on July 17, 2002, 04:54:25 PM
:D
You just made my day.
almost ready.

Piet
Title: thumbail_url thumnail url thumbnail location full path
Post by: didoman 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}