![]() |
thanx Bira, got it installed and it works a charm!
|
Bira, the code you've changed didn't for me, I have 2.2.1 and it says error, I had to use your old code (luckily I did save it) to make it work :(. What's wrong with updating?
|
Nam, what error did it give you?
|
I don't remember exactly, because I have put back the old code (the first one) to my board, it says some thing about parse errer on the line 748 ( the line that has close } at the end) just right above the ############ line.
Sorry for replying late. |
I am using version 2.21 and I also get the error on line 749. Line 749 is the "}" aove start delete.
When I remove it completely I do not get the parse error but when I try to download it opens the text file in the browser IE 6.02.26 |
Take a look at the first hack and compare the code you got to the one you copied. I just edited that post and made it more clear
|
I added the first line and put the } back. I do not get the parse error but it was opening the text in browser. So I changed it as per below. But what is weird, when I click the download, it tells me that I am downloading private.php. If I click open, then a second dialog box comes up telling me that I am downloading message.txt Is that the way it supposed to be? (double dialog box)
if (is_array($privatemessage)) { header("Content-disposition: attachment; filename=messages.txt"); header("Content-type: uknown/unknown"); header("Pragma: no-cache"); header("Expires: 0"); |
I removed "attachment" as per previous post.
header("Content-disposition: filename=messages.txt"); header("Content-type: unknown/unknown"); header("Pragma: no-cache"); header("Expires: 0"); The original post was showing like that: header("Content-disposition: filename=messages.txt"); header("Content-type: application/octet-stream"); header("Pragma: no-cache"); header("Expires: 0"); Thanks... great hack. |
Is it possible to change this hack, so that the users can download the PM's HTML formatted?
|
Wicked!
Loving this one! Thanks. |
All times are GMT. The time now is 09:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|