Finding the Download Link in the Codes?

Any hacks and modifications will be in here...

Finding the Download Link in the Codes?

Postby ChaneyBoi » Thu Oct 17, 2013 8:49 pm

Hello,

I'm looking for the code for the download link, i'm looking for the code to link to the file download so i can put it somewhere else on the same page.

Does anyone know the code?

Best Regards.
ChaneyBoi
Standard Member
 
Posts: 14
Joined: Thu Aug 09, 2012 7:15 pm

Re: Finding the Download Link in the Codes?

Postby SamEA » Fri Oct 18, 2013 8:19 pm

The actual downloading process is dealt by ./download2.php.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Finding the Download Link in the Codes?

Postby ChaneyBoi » Sat Oct 19, 2013 7:06 pm

Ohh right, I'm looking for the direct link download code.

I'm looking for it to add an mp3 player, so if someone uploads an mp3 file someone could listen to the file.

Thanks.
ChaneyBoi
Standard Member
 
Posts: 14
Joined: Thu Aug 09, 2012 7:15 pm

Re: Finding the Download Link in the Codes?

Postby SamEA » Wed Oct 23, 2013 12:34 am

Code: Select all

// THIS CODE IS ALREADY AVAILABLE IN ./DOWNLOAD.PHP
// ONLY USE THE BELOW CODE IF YOU ARE NOT USING IT
// IN DOWNLOAD.PHP

$filecrc = $_GET['file'];
if (file_exists("./files/".$filecrc.".dfh")) {
   $fh1=fopen("./files/".$filecrc.".dfh",r);
   $foundfile= explode('|', fgets($fh1));
   fclose($fh1);
}

// END OF DOWNLOAD.PHP CODE

// New code to generate streaming link

$streamingLink = $scripturl ."download2.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR'];


Now the $streamingLink variable holds the link to the file. All you have to do is ECHO the variable e.g. <?php echo $streamingLink;?>

This should work, however if it does not, I'll help you adjust the download HTML mime types in ./download2.php for video files.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Finding the Download Link in the Codes?

Postby ChaneyBoi » Thu Oct 24, 2013 8:45 am

Thanks, this has not worked because the download link sends you to the html page, is there anyway to link to the stored file because the stored file would be where the code can find the mp3 or any file format.

Best Regards.
ChaneyBoi
Standard Member
 
Posts: 14
Joined: Thu Aug 09, 2012 7:15 pm

Re: Finding the Download Link in the Codes?

Postby SamEA » Tue Oct 29, 2013 10:37 pm

Can you please provide me with the URL to where DFH is located in order for further investigation? Thanks.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Finding the Download Link in the Codes?

Postby ChaneyBoi » Sat Nov 02, 2013 9:18 pm

The domain is "MiiUpload.com"

I still have the code on with the mp3 player, upload any mp3 and you will see it doesn't play.

Best Regards.
ChaneyBoi
Standard Member
 
Posts: 14
Joined: Thu Aug 09, 2012 7:15 pm

Re: Finding the Download Link in the Codes?

Postby SamEA » Mon Nov 04, 2013 7:33 pm

You have removed the link back to DaddyScripts.com and this is against our Terms & Conditions and open source license. Due to this reason, I am unable to provide support to you.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Hacks and Modifications

Who is online

Users browsing this forum: No registered users and 8 guests

cron