This hack allows you to download the pm that you recieved to your disk to read later or print. the origional hack was for vbulletin by bira and that post can be seen at http://www.vbulletin.com/forum/showthread.php?s=&postid=100911 i modded it to work with w3t. you can see it in action at my forum http://www.extremeforums.org PM yourself and you will see a button that says download this post to disk click on it and it asks where you want to save the file to on your HD.
files moded: viewmessage.php and mess_handler.php
open up viewmessage.php and find the line that says:
echo " ";
change it so it looks like this:
echo " ";
done with viewmessage.php now open up mess_handler.php just above:
// #################################################################### // reply_mess function - Reply to this message
add:
// -------------------------------- // END OF THE DELETE_MESS FUNCTION
// #################################################################### // save_mess function - Save PM ot Disk // #################################################################### function save_mess($Username="",$Password="",$Number="",$Subject="",$Sendto="") { global $dbh, $config, $theme, $lang; $html = new html; $Username_q = addslashes($Username); $query = " SELECT M_Message,M_Sent FROM w3t_Messages WHERE M_Number = $Number AND M_Username = '$Username_q' "; $sth = $dbh -> do_query($query); list($Message,$When) = $dbh -> fetch_array($sth);
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.