Author Topic: Download from different IP/server - downloadpath?  (Read 12308 times)

0 Members and 1 Guest are viewing this topic.

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Download from different IP/server - downloadpath?
« 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

« Last Edit: March 07, 2007, 06:55:21 PM by edwin »

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Download from different IP/server - downloadpath?
« Reply #1 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

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: Download from different IP/server - downloadpath?
« Reply #2 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

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Download from different IP/server - downloadpath?
« Reply #3 on: March 08, 2007, 07:19:09 PM »
pretty sure it dont get any easier then that

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: Download from different IP/server - downloadpath?
« Reply #4 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

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Download from different IP/server - downloadpath?
« Reply #5 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.

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: Download from different IP/server - downloadpath?
« Reply #6 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

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Download from different IP/server - downloadpath?
« Reply #7 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

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: Download from different IP/server - downloadpath?
« Reply #8 on: March 08, 2007, 07:43:34 PM »
i understand, i will give it a try

thanks