TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 653
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 863
  • Total: 864
  • @rjen

Download Manager - Files hosting

Started by Unknownn, February 14, 2006, 04:07:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PSPXavier

Wait....
What do we do with that mod file to get this whole thing to work?

MetalHellsangel


rename
TPdlmanager
.php-modded to TPdlmanager.php and copy to smf_root/sources
TPdlmanager
.template.php-modded to TPdlmanager.template.php and copy to smf_root/themes/your themes root

Then open smf_root
/thmes/your theme/languages/TPortal.english.php
and add to it 
$txt
['tp-dllinkfile'] = 'Link to a file:';


I hope this helps :D

PSPXavier

I did what you said, but it didn't work... Where exactly in the TPortal.english.php file do we add "$txt['tp-dllinkfile'] = 'File to
link to:';" or "$txt['tp-dllinkfile'] = 'Link to a file:';"

G6Cad

you can add the string anywhere in that file. Put it in the bottom under the others
Or under the other textfiles for the download manager in that file.  :)

PSPXavier

Okay....
I overwrote those two files with the modded ones...
Then open TPortal.english.php and inserted "$txt['tp-dllinkfile'] = 'Link to a file:';" under "// dl manager"...

So where do I put the link to the file?

Tucker

#35
It is in the "Upload a file" - Formular. My mod works like this:
if you add a link, then this link will be taken (and any file you uploaded will be ignored!) and put in the database.

[EDIT]
I was thinking about making two forms, one for uploading and one for just providing a link. But this hack is just a hack, and i decided to do it this way!
[/EDIT]

PSPXavier

Wait...so we put the link to the download in the "File to upload:" box? Sorry...I'm a bit clueless..

Tucker

Ok, there is no "Add a link"-Field in the Upload-form?

PSPXavier

#38
Nope...I have a feeling I'm missing something... I did what MetalHellsangel said:

Changed the name of the two modded files, uploaded and overwrote, then opened TPortal.english.php and inserted "$txt['tp-dllinkfile'] = 'Link to a file:';" under "// dl manager"...

? ??? ?

Tucker

Take a look at my screenshot. There you see the added field. If it isn't there: check the uploaded files again, especially the TPdlmanager.template.php. It has to be in your theme-folder Themes/default/ for the Default Theme. Perhaps a typo in the name?

This website is proudly hosted on Crocweb Cloud Website Hosting.