4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started 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
-
Check function get_file_path() in "includes/functions.php".
Greets Jan
-
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
-
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
-
:D
You just made my day.
almost ready.
Piet
-
do you know how long i have been searching for this...
./data/thumbnails/{cat_id}/{thumbnail_file_name}