Author Topic: How to Link download to remote file hosting site?  (Read 5545 times)

0 Members and 1 Guest are viewing this topic.

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
How to Link download to remote file hosting site?
« on: December 09, 2010, 04:58:09 PM »
HI..
i want to use mediafire or megaupload or anyother filehosting site use its url link for download..

I dont want to host big files on my server..As it will consume alot of bandwith of my server..

Ppt , .doc and other files are ok to upload on my server..
but pdf files are very huge to upload on my server..
and when many users will download files..it will consume alot of my server bandwith..

so please tell me there is a mod or any trick in 4images to link the download button or file to respected download url of any filehosting site..

Mediafire , ifile.it etc..any filehosting..

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to Link download to remote file hosting site?
« Reply #1 on: December 09, 2010, 05:07:20 PM »
edit an image and enter your download url into "Download URL" field :)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: How to Link download to remote file hosting site?
« Reply #2 on: December 09, 2010, 05:57:36 PM »
koool..but i also want that link feild to be appear for the users too..how can i do that??

i mean users should not upload the files directly ..they should put the mediafire links there instead.

so when another user click the download button..he/she redirects to mediafire.??


Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: How to Link download to remote file hosting site?
« Reply #3 on: December 09, 2010, 06:59:04 PM »
Hi,

take a look at member upload form, there is the field they can choose between
uploading a file or putting a link.


Greetz X23

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to Link download to remote file hosting site?
« Reply #4 on: December 09, 2010, 07:14:10 PM »
add something like this in member_upload_form.html template:
Code: (HTML) [Select]
<input name="image_download_url" value="{image_download_url}">
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: How to Link download to remote file hosting site?
« Reply #5 on: December 09, 2010, 08:34:03 PM »
add something like this in member_upload_form.html template:
Code: (HTML) [Select]
<input name="image_download_url" value="{image_download_url}">


worked like a charm..
Many Thanks... but still have one issue of resizing thumbnail..

i mean when a user upload a image in thumbnail feild, it do not auto resize to the width and height i have specified in the general settings. how to make it auto resize to specified width and height?
should i open another topic for this problem? Actually im new to 4images and still getting to know this engine..

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to Link download to remote file hosting site?
« Reply #6 on: December 09, 2010, 09:07:46 PM »
I don't recall any mods for the thumbnails. Yes, would be better if you open a new topic in requests section.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)