The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
private messages backup hack Details »» | |||||||||||||||||||||||||
This hack allows users to backup their private messages to a local file.
I know that there exists allready a very similar hack (https://vborg.vbsupport.ru/showthrea...=&pagenumber=1 ) but it contains a serious bug, which allows every users to read everybodys private messages (details see link). Aditionally this hack works with templates and has some enhanced functionality. This hack is succesfully tested with a fresh install of vBulletin 2.2.4 I post it here, not as a full release, because of the unclear situation (im new to this board...). @mods Please excuse me, and move this thread, if you think it's located better elsewhere lates, Cano2 Show Your Support
|
Comments |
#32
|
||||
|
||||
Great Hack! Thanks!
|
#33
|
|||
|
|||
Must say, this is an awsome hack.
Question (more of a request though): In the genereated HTML page, the PM's shown are in any order, so is there any way to show them in a more date/time oriented approach? |
#34
|
||||
|
||||
Cano2,
Are you still supporting this hack? I'm still having a problem with the message format on saved messages. |
#35
|
|||
|
|||
Of course im still supporting it.. Sry, I just have been away for a month, i will try to help you as soon as possible.
@Angelus1753 : Yes it is possible and allready implemented in the next big release (hope it doesn't much time for me anymore to finish it). Until then: Replace Code:
$msgs= $DB_site->query("SELECT privatemessage.*, IF(ISNULL(touser.username),'[Deleted User]',touser.username) AS tousername, IF(ISNULL(fromuser.username),'[Deleted User]',fromuser.username) AS fromusername FROM privatemessage LEFT JOIN user AS touser ON (touser.userid=privatemessage.touserid) LEFT JOIN user AS fromuser ON (fromuser.userid=privatemessage.fromuserid) WHERE $cond ORDER BY folderid"); Code:
$msgs= $DB_site->query("SELECT privatemessage.*, IF(ISNULL(touser.username),'[Deleted User]',touser.username) AS tousername, IF(ISNULL(fromuser.username),'[Deleted User]',fromuser.username) AS fromusername FROM privatemessage LEFT JOIN user AS touser ON (touser.userid=privatemessage.touserid) LEFT JOIN user AS fromuser ON (fromuser.userid=privatemessage.fromuserid) WHERE $cond ORDER BY folderid,dateline "); |
#36
|
|||
|
|||
@Boofoo:
There are two ways, it depends on what you want: first find Code:
eval("\$messages .= \"".gettemplate("privbackup_message")."\";"); Code:
$message[message]=nl2br($message[message]); Code:
$message[message]=pmcodeparse($message[message],0,$allowsmilies); Hope that helps you Maybe I find a way to include the first one in the next release... Cano2 |
#37
|
|||
|
|||
hi cano2,
have you suggestions for my problem? |
#38
|
|||
|
|||
Can you tell me plz what exactly happens after you click "backup" (and with witch Browserversion/OS of course)? Does the Download window popup, or is the page shown in the Browser? Which name has the file to download, if it shows up?
|
#39
|
||||
|
||||
Thank you very much. You are a gentleman and a scholar.
The only question I have now is which way is the better one to go? The first one only saves the smilie code, too (i.e. ) And is there a way to have it save to the date in the filename instead of saying today? That way it won't overwrite any backups and you will know on which date you made the last backup. Thanks for the quick fix. Quote:
|
#40
|
|||
|
|||
Quote:
thanks for the attention cano2 i have two forums: one is to test the hacks and the other is "public". the only difference between these two forums is that the public forum has 4 template while the test forum has only one. when i installed your hack on test forum it works good but when i install it on public forum it doesn't work. it try to download a page named "private.php". this page contains the right html code with all messages but the name adn the extension of the file is wrong (it may be like "some_date.html" no?) p.s. excuse me for me bad english |
#41
|
||||
|
||||
Cano2,
I'm still curious as to what "von" means. You have it in the code for "at" or "von". |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|