![]() |
HACK UPDATED NOV 27TH 2001 - WORKS WITH ALL 2.X.X VERSIONS!
Since I was asked to make this available, here's my hack for downloading Private Messages (as many as you select) at once into a local txt file. This is helpful if you need to clear out your PM folder(s) due to quota limitation, but don't want to lose those messages. In effect, it works like an e-mail RFC archive. Installation Instructions: 1. Open private.php. Find: Code:
if ($delete!="") { PHP Code:
Code:
} PHP Code:
Save file and upload. 2. Edit template privfolder. Find: Code:
$massforwardlink Code:
or <input type="submit" class="bginput2" name="download" value="Download" style="background-color:#606096;color:#FFF788;font-size:10px;font-weight:bold"> That's it! Usage: select one or more messages in one of your Private Messages folder and click on "Download". You will be prompted to save messages.txt on your hard drive (a Windows filename & folder selection dialogue will pop up). Cheers, Bira http://www.atlasf1.com/personal/bira/pm-download.gif |
good hack min;)
|
Thanks a lot for the great hack!
|
Thanks for this great hack. i hope that you don't mind but i hacked it to work with wwwthreads. and i am going to use this in many many other things! good deal!
instead of it being message.txt i made that the subject of the post.... |
This is what a lot of my Users asked for!!!
THANKS A LOT! |
thanks :D
|
Very good hack. No problems to hack in vB.
|
This is a great hack, just one problem though. When i click on download it displays the pm's in my browser and doesn't download it. i use IE 5.01 none of the other people on the board have reported the problem, ideas? I realise the problem is most likely at my end.
|
Quote:
You might want to check in your security settings (Tool -> Internet Options) that Download is enabled (general download, that is). Not sure about anything else. In any case, I'd recommend upgrading to IE 5.5, which is a much better, faster and less buggy browser. Cheers, bira |
Great looking hack.
I run about 7 styles on my website, does this mean i have to hack the templates 7 times ? ~veedee |
Quote:
Run a search in the Control Panel -> Templates for $massforwardlink. If you have more than one template with it, you can do a search/replace of Code:
Search for: $massforwardlink |
yeah different templates :)
will do what you told me, cheers me dear :) |
Abyone got any ideas on how to solve my prob? i got it so the filename includes the date. i can tell you how if anyone's interested, iy's fairly simple. In fact very simple
|
Actually, wordwrap() is a built-in function in PHP.
Perhaps, though, it's only in PHP4 or something. |
i installed everything exactly as it should be done, yet when i try to download some pm's, i just get a blank page (completely blank, no errors)
any help? |
Hi, if i click in the user cp on the link 'Private Messaging' I get just the following error messsage:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in e:\apache\apache\nsdocs\forum\private.php on line 695 |
restore private.php and see if that works then rehack.
You probably deleted a , or } or something. :) See my hack based on this one to Email the selected PM's to the registered email address here http://161.58.84.213/forum/showthrea...threadid=18991 |
I did it three times! :(
|
did it work OK when you re up the original file?
|
yes
|
Then it must be something to do with the hack, either your doing something wrong or possibly your using PHP 3 and it maybe it doesnt work with 3 ( that is only a guess as i have never tried it on 3).
|
Quote:
can anyone help me? I'm using PHP4 and I did everything like I should have.. |
What browser you using?
I found that the code in the hack worked in IE 5 but not 5.5, I had to do a little digging around,But i assume its to do with http versions, IE 5 being http 1.0 complient and 5.5 being http 1.1 compliant. I did work out and get it to work in IE.5.5 and netscape 4.7, but at the moment im at work and dont have access to the code, but ill post the changes later for anyone to use. Please note that from mmy playing you can have it work in IE 5 or 5.5 but not both |
yup, i'm running IE 5.5
those code modifications that you did would be GREATLY appreciated.. |
OK look for this code in private.php
PHP Code:
PHP Code:
|
Bira, first of all GREAT HACK! ;)
For Zarkov & Norritt & Slip & Bira :rolleyes: : I had the same error as Norritt (Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in e:\apache\apache\nsdocs\forum\private.php on line 695), and it wasn't my fault, after a while I found out the error. I had to modify the last EVAL() in this way: PHP Code:
|
I tried this with version 2.2.0 but the only thing that came up was an empty page when I hit the pm section.
Will Bira's code work with 2.2.0 or could I be doing something wrong. I followed the instructions to the letter and nothing... :confused: |
Wow, I never even saw this one..
Anyone have this working in recent versions? ...and did it require modification? I'd love to install this... |
I have it working on my board. It only required a bit of tweaking to make the button match other buttons on the form.
Amy |
I am running this hack on my 2.2.0 an it works perfectly (thanks @Bira, great hack)
Only one question: How do I change the size of the "Download"-Button ?? (It's greater than the others, but I used the same style like the others).. Thanks. @ezdreamer: Actually you did something wrong! :p @Alien: I ran this hack on RC2, 2.0.1, 2.0.2, 2.0.3 :) |
Quote:
Same Problem... :) (IE 5.0) |
Quote:
|
Quote:
Replace: PHP Code:
PHP Code:
Then you just need to Replace: PHP Code:
PHP Code:
|
It was the
Code:
class="bginput" |
Yea I was just trying to make it sound tech like.. (lol)
Just saying add (class="bginput") after (type="submit") did not sound very tech like.. Anyhow NP :D |
Thanks for your responses everyone. :D
Installed, and working! |
In private.php
Find code: eval("standardredirect(\"".gettemplate("redirect_p mdelete")."\",\"private.php?s=$session[sessionhash]&folderid=$thisfolder\");"); } But instead of the above I find this in private.php: eval("standardredirect(\"".gettemplate("redirect_p mdelete")."\",\"private.php?s=$session[sessionhash]&folderid=".intval($thisfolder)."\");"); } What do I do now? :confused: |
now now where can i get the hack for vb 2.0.3?
has it been deleted? |
After adding the new code:
if (is_array($privatemessage)) { header("Content-disposition: attachment; filename=messages.txt"); header("Content-type: uknown/unknown"); header("Pragma: no-cache"); header("Expires: 0"); I still get a white screeen |
Quote:
PHP Code:
Note: Do NOT make the replacement after this: PHP Code:
|
All times are GMT. The time now is 02:45 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:
|