![]() |
Works great except for one thing:
When I click download, it saves it as private.php instead of messages.txt :confused: |
Quote:
|
REMOVE THE WORD 'ATTACHMENT'
I don't know why someone gave you the advice to change the content-disposition header to attachment type. THIS IS NOT AN ATTACHMENT. Make sure the header line is: PHP Code:
|
It still says private.php :(
|
What browser/version are you using?
|
IE 5.5
|
removing the reference to attachments worked for me, it refers to the download as message.txt
|
I have IE 5.5 and this is what I get:
https://vborg.vbsupport.ru/ make absolutely sure you have the following lines in private.php: PHP Code:
|
|
I can't try it -- I don't have access to your board and don't have PMs there :)
Do you have a testing account I can use? You can PM me the details if you like. You can also e-mail me at goren@atlasf1.com your private.php file and I'll take a look at it |
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. |
After doing the initial hack, then several of the fixes posted later on, it seems to be working very well for me.
|
Quote:
|
I just installed it and when I try to download a pm it just takes me to a web page which contains the private message . How do i change it to the orgional version that prompted you to save it as a tet file?
|
bump
|
bump
|
Okay well since no one wanted to help wittle old me, after reading this thread over again, I did some messing around with private.php and got it working the way I wanted it too. But for some reason the file name to be downloaded is private.php instead of messages.txt...
oh well... |
Another great hack ... thank you. Just installed with no problems.:)
|
Fantastic feature to add to the board. Installed it with only the problem of the webpage appearing rather than the download, which I've now fixed with the help of this thread. Well done and thanks.
|
Is there anyway to hack this in such that it is only available to certain group(s)? I'd like to offer it as a 'premium'-type feature.
Cheers, ~Regs. |
Quote:
|
Thx pal, it is a very nice hack! :)
I have a suggestion: Wouldnt it be nice if you modified it so that it can used for normal forum messages as well? ;) So members would be able to download/save a thread to their computer easily.. Just a thought.. Regards, Logician |
Quote:
Change "octet-stream" to just "stream" and see what happens :) JC |
Im getting the blank page private.php page.
it worked for me yesterday, but I have just upgraded to v2.2.2 anyone? |
I tried this Hack in Mac OS X 10.1.3 with IE 5.1.3 and it doesn't work for me. If i click in the user cp on the link 'Private Messaging' I get just a Parse error on line 715 in private.php. Can somebody tell me, if this hack works only with windows, or is Mac OS X also supported? :confused:
|
Doesn't work with 2.2.4
Parse error on the starting line on PHP Code:
|
Quote:
|
I will retry this evening, thanks.
|
don't usw this... every user can see and download all pns...
|
Uh, what? How can they see your PMs if you're downloading them to your hard drive?
|
there is a bug in the script which everyone can use...
|
All times are GMT. The time now is 01:16 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:
|