4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: edwin on October 23, 2006, 02:14:18 PM

Title: Download Big Picture from home server
Post by: edwin on October 23, 2006, 02:14:18 PM
Where in 4images can i find the path wich is used to download the Big pictures, I have 4images hosted and i want to store the Big pictures at home where customers can download them, but where do i have to change the path wich is used when you press the downloadbutton.

So thumbnails and preview stay at the hostingcompany and the big pictures at home.

thanks
Title: Re: Download Big Picture from home server
Post by: KurtW on October 23, 2006, 04:05:22 PM
Hi,

you can give every pic in the Control panel a special download link.

Edit images:
Code: [Select]
Download URL
If you fill out this field, the download button will point to the URL you entered,
otherwise it will point directly to the image file.
   :wink:

Have you a Dynamic DNS adress?

cu
Kurt
Title: Re: Download Big Picture from home server
Post by: edwin on October 23, 2006, 04:35:06 PM
i have 67.000 pictures in the database so it's a little bit to much to change this bye hand and all pictures are uploaded bye ftp, any idea
Title: Re: Download Big Picture from home server
Post by: KurtW on October 23, 2006, 07:25:22 PM
Hmmm.

you need a new link in
includes/functions.php

This is the standard:
Code: [Select]
   $download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
Test this:
Code: [Select]
   $download_button = "<a href=\"deine_ip/{media_src}\" target=\"blank\"><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
cu
Kurt
Title: Re: Download Big Picture from home server
Post by: edwin on October 23, 2006, 08:47:49 PM
it's on the way only i get a fdouble adress in my url

http://www.foto-janssen.nl/images/foto-janssen.xs4all.nl/

So the first part http://www.foto-janssen.nl/images/ is to the hostingside (the old situation

foto-janssen.xs4all.nl/ is my server at home

Title: Re: Download Big Picture from home server
Post by: Nicky on October 23, 2006, 11:42:29 PM
i see you don't care about hits to your images, correct?
if this is okay for you, i can give you short description..

BUT
you must have the same folders and images files names on your pc.

btw http://foto-janssen.xs4all.nl/ want work for me
Title: Re: Download Big Picture from home server
Post by: edwin on October 23, 2006, 11:53:04 PM
The first part about the hits i don't understand what you mean

The server at home is not running yet and so the link won't work yet
Yes, it will have the same folders and filenames as on the site

Anyhelp is welcome

regards Edwin

Title: Re: Download Big Picture from home server
Post by: Nicky on October 23, 2006, 11:57:15 PM
the first part was:
do you care, how often people click on your images?
Title: Re: Download Big Picture from home server
Post by: edwin on October 24, 2006, 12:11:45 AM
Clicking to download the High resolution pictures (in the BIG folder) is only alowed for registrated users and is happening a few times a week

because my space at the hostingprovider is limited the pictures will be hosted at home

edwin