1. How to Add a website name to attachment link?

How to Add a website name to attachment link?

  |   6
How to Add a website name to attachment link?


Add the website address to the downloaded file (attachment) works in DLE 8.2 - 9.2

This hack will add an attachment to any information in this case,for example name of website!!!

Information!You must register before you can view this text. Please register or Login


find:
Information!You must register before you can view this text. Please register or Login


replace to:
Information!You must register before you can view this text. Please register or Login


dlestarter.com = change to your own.

that`s all

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+5

Comments 6

tbenmcp
tbenmcp
DLE TEAM
Commented By tbenmcp on August 26, 2011 (3:42 am)
this is cool small hack addon...thank you
20 150Forum topics : 11Forum replies : 248Forum likes : 32

"A True Friend is Someone Who Sees the Pain in Your Eyes while Everyone Else Believes the Smile on Your Face"
Let me Google for you!
Gozan
Gozan
V.I.P.
Commented By Gozan on November 12, 2011 (4:32 am)
thanks to you tben for all tutorials applause
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Hannsen
Hannsen
Members
Commented By Hannsen on August 7, 2012 (10:45 am)
Does anyone know how to customize this may modify the DLE 9.6?
Sorry for the quality of the language but I'm using Google Translator.
N/A 17Forum topics : 4Forum replies : 7Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on August 7, 2012 (12:45 pm)
the hack will work with 9.6 just find:
header( 'Content-Disposition: attachment; filename="' . $this->properties['new_name'] . '";' );
replace with:
header( 'Content-Disposition: attachment; filename="[<span style="color:#FF0000">dlestarter.com</span>]' . $this->properties['new_name'] . '";' );
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
Hannsen
Hannsen
Members
Commented By Hannsen on August 8, 2012 (1:22 pm)
noobos,
sorry this code not working for DLE 9.6
Sorry for the quality of the language but I'm using Google Translator.
N/A 17Forum topics : 4Forum replies : 7Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on August 9, 2012 (8:27 am)
our server doesn't allow back slash in the code, so what you need is add \ before " in style="color:#FF0000", so it will be style=\"color:#FF0000\", which is only thing that cause the issue or error
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
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.