1. Download and upload attachment to different domain

Download and upload attachment to different domain

  |   4
Go to the folder engine, download the download.php and rename it to download2.php, in download.php find
define ( 'FILE_DIR', '../uploads/files/' );


change to
define ( 'FILE_DIR', 'ftp://adress_of_your_ftp/' );


For the correct uploading of new files and images in engine/ajax/upload.php find
$('#fileurl').val( '[attachment='+$(this).data('src') +']' );


change for
$('#fileurl').val( '[url=http://website_adress/engine/download2.php?id='+$(this).data('src') +'][img]http://websiteadress/img[/img][/url]' );


after find
links[t] = '[attachment='+elmnt.value+']';


change for
links[t] = '[url=http://website_adress/engine/download2.php?id='+elmnt.value+'][img]http://website_adress/image[/img][/url]';


Then in engine/classes/download.class.php remove following line:
fseek( $handle, $range );


Otherwise you will get this error:
Warning: fseek(): stream does not support seeking in /var/www/pg/data/www/dragames.net/engine/classes/download.class.php on line 103
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+2

Comments 4

odimusic
odimusic
Members
Commented By odimusic on October 16, 2014 (12:57 pm)
the different domain need to have a dle installed or how is working?
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
odimusic
odimusic
Members
Commented By odimusic on November 22, 2014 (1:01 am)
Nobody here?
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on November 22, 2014 (6:30 am)
everyone is here...what you need? you don't even try it, hosting images and files on subdomain, why you need dle to be installed on subdomain? it's simple, dle read wherever the files you saved at, there is no difference than /uploads/ and http://some-other.locations.com/
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
bongik12
bongik12
Members
Commented By bongik12 on April 21, 2015 (1:37 pm)
if you want to not upload your photos on you serv.u you can upload files to flikr copy paste link to post and you done.
sry my english.
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.