4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: edwin on March 07, 2007, 12:21:42 PM

Title: Download from different IP/server - downloadpath?
Post by: edwin on March 07, 2007, 12:21:42 PM
Hi, i've searched the forum but none of the items i found helped me, but mayby somebody else has the solutions

My website at http://www.foto-janssen.nl, registrated users can login to my site and search an image and if the want to download this image they push the download button, the big image is the downloaded from the same server as where the program is installed.

Now i want to change the downloadpath to my privat IP adres (213.84.***.**)

I tryed it in functions.php and changed the $download_button to this $download_button = "<a href=\"213.84.***.***/{media_src}\" target=\"blank\"><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
This gives this result as path http://www.foto-janssen.nl/images/213.84.***.***/

Where can i change the code to remove the part wich says http://www.foto-janssen.nl/images/

regards edwin

Title: Re: Download from different IP/server - downloadpath?
Post by: CeJay on March 07, 2007, 09:43:59 PM
look here and see if this is what you wanted: http://www.4homepages.de/forum/index.php?topic=7499.msg33712#msg33712
Title: Re: Download from different IP/server - downloadpath?
Post by: edwin on March 08, 2007, 07:18:01 PM
wow, that's a lot of changed to be made, i hoped that it would a little bit easier than what i see there
I'm a completed nobody with PHP

Hopefully Jan, mawenzi or some of the other whisskids can help me
Title: Re: Download from different IP/server - downloadpath?
Post by: CeJay on March 08, 2007, 07:19:09 PM
pretty sure it dont get any easier then that
Title: Re: Download from different IP/server - downloadpath?
Post by: edwin on March 08, 2007, 07:21:30 PM
okay, then i have to try it, i hope that i can give you a mail if i have a question

edwin
Title: Re: Download from different IP/server - downloadpath?
Post by: CeJay on March 08, 2007, 07:23:14 PM
if you have any questions post them in that thread, usually someone that has done that mod would respond.
Title: Re: Download from different IP/server - downloadpath?
Post by: edwin on March 08, 2007, 07:27:58 PM
thanks, if sombody other has an idea or an suggestion i'll hope they post it here, any help is welcome
Title: Re: Download from different IP/server - downloadpath?
Post by: CeJay on March 08, 2007, 07:33:44 PM
only other thing I can think off, would be to edit each image in the admin section and specify a download path
that would be even more work then the other since you have to modify 1 image at a time
Title: Re: Download from different IP/server - downloadpath?
Post by: edwin on March 08, 2007, 07:43:34 PM
i understand, i will give it a try

thanks
Title: Re: Download from different IP/server - downloadpath?
Post by: sonermx on March 20, 2007, 02:50:46 AM
thanks