Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
private messages backup hack Details »»
private messages backup hack
Version: 1.00, by Cano2 Cano2 is offline
Developer Last Online: Dec 2002 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-07-2002 Last Update: Never Installs: 53
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-22-2004, 07:30 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've gone over this hack several times and cannot figure out why I receive this message when I click the back up button:

Parse error: parse error in /home/glassmav/public_html/forum/private.php(151) : eval()'d code on line 1
Private Messages - Backup from 01-22-2004
Save this page as a HTML file and delete old private messages.

Here is the section of private.php

while (list($key,$val)=each($allfolders)) {
$thisfolder = split("\|\|\|", $val);
$foldernames[($thisfolder[0]+1)] = $thisfolder[1];
} --------> this is line151
}
//get correct folder name
if ($message["folderid"]=="0") {
$foldername = $inboxname;


I am on a Mac, OS 10 Jaguar, running 2.3 VBulletin

The first time I "backed up" I had quite a few messages, but I don't know where they were downloaded to.

I tried backing up again, but that message didn't get deleted when I checked. Do I have to manually delete them?

Thanks for the help.
Reply With Quote
  #83  
Old 01-30-2004, 02:26 AM
Crank Crank is offline
 
Join Date: Jan 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump for info. i am wanting to install on 2.3.4 and looking for info as to if it will work or not
Reply With Quote
  #84  
Old 02-01-2004, 01:59 AM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great on 2.3.4! Unless you have a heavily hacked forum, the install instructions follow to a "T". No issues what so ever.

Thanks for a GREAT addition to my forum!
Reply With Quote
  #85  
Old 02-13-2004, 12:23 AM
jorgen jorgen is offline
 
Join Date: Oct 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Schorsch
Hi Cano2,

I installed the optional feature, but it doesn't work correctly, it always downloads a file called "private.php" (look at the attachment).

I use Windows 2000 and MS Internet Explorer 5.5

what's wrong and how can I get this working ?

thanks,
Schorsch
Same for me.
It works fine in Mozilla. There it will save with the correct name, pnbackup_13-02-2004.html.

But if I click on the backup button from IE under XP, it just want to save it as "private" (with the correct contents, I might add, just the wrong filename).

Any fix for this?

Edit: Just to make a follow up on my own post. If you edit the template "privbackup_header" and change the following:

PHP Code:
header("Content-type: unknown/unknown"); 
to:
PHP Code:
header("Content-type: text/html"); 
IE will at least create the correct extension to the file. Otherwise you have to do it yourself.

Might this have something to do with this bug? http://support.microsoft.com/default...;EN-US;Q279667
Reply With Quote
  #86  
Old 03-31-2004, 12:46 AM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed it on 2.3.4 and it works fine except for one thing. I have installed the optional privbackup_header template but I still don't get an actual download option, I just get sent to the html page with the PM's listed on it and instructions to save it.

I need something a little more dummy proof for my users, so I need the actual save box to come up automatically. Any ideas?
Reply With Quote
  #87  
Old 03-31-2004, 09:48 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, weird. I installed it on one forum and got what I posted before. I installed it on the second forum (Identical instilation) and it works as it should, popping up the "Save as" box when you hit backup.
Reply With Quote
  #88  
Old 04-11-2004, 06:36 PM
Nero2004 Nero2004 is offline
 
Join Date: Jan 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Work. THX
Reply With Quote
  #89  
Old 10-23-2004, 11:28 AM
ary ary is offline
 
Join Date: Oct 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For resolv this problem:
Quote:
Parse error: parse error in /home/glassmav/public_html/forum/private.php(151) : eval()'d code on line 1
You must change this command:
PHP Code:
eval(gettemplate("privbackup_header",0)); 
to:
PHP Code:
eval(gettemplate("privbackup_header",0,0)); 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04424 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete