Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

May 29, 2020, 04:19:08 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 190011
  • Total Topics: 20832
  • Online Today: 288
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 74
Total: 75

Author Topic: Download Manager - Files hosting  (Read 27503 times)

0 Members and 1 Guest are viewing this topic.

Tucker

  • Guest
Re: Download Manager - Files hosting
« Reply #10 on: February 16, 2006, 06:48:38 AM »
Yes, I understand. (understanding english is no prob for me, other than writing). Or did you mean the PHP-Code? ;-)

But as I wrote, i knew about manipulating the headers. But your hint is very welcome -> I don't have to google... So I will fix that.

And now about adding this to TP:
the mod is not that heavy. But what is about netiquette. What about promoting files from other servers (ok, that servers and their traffic might be paid by you as well)? But is there a chance of misusing that feature? (ok, any admin will see your referrer in his logs)

What are you thinking?

Unknownn

  • Guest
Re: Download Manager - Files hosting
« Reply #11 on: February 16, 2006, 06:58:15 AM »
No just understand my idea  ;D

Maybe you are right but I need this feature for my forum. I don't like use my site to download files that's why my file is hosting in a free service (or paying soon). But I known that some people can misuse this feature.

What can I do now ?

Tucker

  • Guest
Re: Download Manager - Files hosting
« Reply #12 on: February 16, 2006, 07:13:57 AM »
Ok, I got it. For your forum it will be ok.

By the way: adding this force-download - header did not do the trick. I think, we would have to open the remote location and stream the content to the client. But that's probably not what you want... (traffic on both servers).

But: My solution is working for zip or anything your browser ist going to download

Ok, and now?
I'm a newbie here, no alpha-tester ;-)
I could attach the two files, or post the diffs here. Just check them at your own risk.

Unknownn

  • Guest
Re: Download Manager - Files hosting
« Reply #13 on: February 16, 2006, 07:21:19 AM »
It doesn't matter for the header. I will test but your solution is what I thought ;)

I'm a newbie here too with my english  :uglystupid2:

Else you can send me your files by PM if you are affraid to abuse the feature  ;D

Tucker

  • Guest
Re: Download Manager - Files hosting
« Reply #14 on: February 16, 2006, 07:33:26 AM »
Attached them.
Perhaps someone else is interested, or will have a look at them. Anything modded is commented within MOD BEGIN and MOD END. There is one point: look at the comment UUUAAAAHHH  :uglystupid2:

And another thing to think about: currently you have two fields in the uploaddialog: one file-type and the new one, to fill in your link. If you do that, any file uploaded (within the same dialogue) will be ignored. If you want to upload a file, you have to leave the link-fiied empty. Ok?

cu, Tucker

[attachment deleted by admin]

Unknownn

  • Guest
Re: Download Manager - Files hosting
« Reply #15 on: February 16, 2006, 07:40:20 AM »
Ok ! This is for me especially !!

Thank you (euh.. How do you say "infiniment"... infinitely ?)
So thank you infinitely Tucker ! You help is very appreciated !

Unknownn  :)

PS: I'm testing now  :D

Unknownn

  • Guest
Re: Download Manager - Files hosting
« Reply #16 on: February 16, 2006, 08:01:19 AM »
Ok it works !

You can improve it by add text near the link-field and we can't see the new files in Download Manager ! (But I can modify in MySQL database directly ;))

Else I get a error :
Quote
8: Undefined index: tp-dllinkfile
File: mysite/Themes/default/TPdlmanager.template.php (eval?)
Line: 181

Any ideas  ? ;)

Tucker

  • Guest
Re: Download Manager - Files hosting
« Reply #17 on: February 16, 2006, 08:07:13 AM »
Oh, I forgot one file: language file with a text string-field $txt[tp-dllinkfile].
That solves of course your problems.

Just add one line in your language file (or TPortal.english.php )

Code: [Select]
$txt['tp-dllinkfile'] = 'File to<br/>link to:';

« Last Edit: February 16, 2006, 08:10:54 AM by Tucker »

Unknownn

  • Guest
Re: Download Manager - Files hosting
« Reply #18 on: February 16, 2006, 08:13:31 AM »
Nice !

I've added
Code: [Select]
$txt['tp-dllinkfile'] = 'File to link to:';
And it's superb !

Thank you very much again. I hope everything is ok !

Tucker

  • Guest
Re: Download Manager - Files hosting
« Reply #19 on: February 16, 2006, 08:20:45 AM »
Fine!

Feel free to post any problems. But for now I'm off.

Happy day, Tucker