vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   private messages backup hack (https://vborg.vbsupport.ru/showthread.php?t=37172)

Boofo 06-10-2002 01:35 AM

I just found a possible bug here. If someone sends you a message with the [disable]
Code:

and
[/disable] tags in it, if messes eveything up in the message instead of just doing the code itself. I don't know about PHP yet but I was sent some code for a message box and it tried to draw it in the message and had line breaks and all sorts of screen garbage in the saved message. Just though you should know. :)

Xelation 06-10-2002 07:15 PM

just installed and has tested perfect for 5 users, Great Hack! :)

Cano2 06-16-2002 01:10 PM

@saibal: That sounds strange. Did you opened it with the same Browser ('cause browsers behave very different)? Are the pnbackup_header templates identical? I can't mind an other reason for that. If you want, you can contact me via pm or email, and I will help you tracking down the problem.

@Boofo:
"von" just means "from"

What you have found is a general problem I'm fighting with: The name "backup" normally implies that all relevant information is saved, and that it can be restored (which will be possible in the next release). vB does some extra processing to make the pm's look pretty. Of course you want the backup looking pretty too, but much of this processing can't be reversed, so restoring ain't possible anymore.
On the other hand, this hack is designed to be flexible and fit everybody's needs. For that reason it's template based, and you can chose wich filetype the backup should be. But how the messages have to be processed so that they look pretty depends heavily on that filetype. HTML ist of course the most popular filetype, so I can include as switch in the admincp which enables processing for html output (at least that which can be reversed), but I haven't found a real good solution for that yet (suggestions are allways welcome ;) ).

Cano2

Boofo 06-16-2002 05:23 PM

Cano2,

Please see post #41 above again. I edited it so the tags I was trying to show you show up now. Would there be a way to do the same thing during backup so it doesn't show the messes when using those tags? Maybe using the Disable vbcode hack that Firefly wrote? If there was a way to parse that before saving, then that would at least keep it from getting messed up in the backup process. Just a thought (although not a very good one, I'm afraid). :)

Quote:

Originally posted by Cano2
Boofo:
"von" just means "from"

What you have found is a general problem I'm fighting with: The name "backup" normally implies that all relevant information is saved, and that it can be restored (which will be possible in the next release). vB does some extra processing to make the pm's look pretty. Of course you want the backup looking pretty too, but much of this processing can't be reversed, so restoring ain't possible anymore.
On the other hand, this hack is designed to be flexible and fit everybody's needs. For that reason it's template based, and you can chose wich filetype the backup should be. But how the messages have to be processed so that they look pretty depends heavily on that filetype. HTML ist of course the most popular filetype, so I can include as switch in the admincp which enables processing for html output (at least that which can be reversed), but I haven't found a real good solution for that yet (suggestions are allways welcome ;) ).

Cano2 [/B]

ladyfyre 06-30-2002 07:05 PM

can this hack be edited to send the HTML page via email to the user instead of downloading it?

Cano2 07-03-2002 07:54 PM

Yea, that sounds interesting.. another new feature for the next release (i'm working on it..) ;)

Schorsch 08-03-2002 03:49 AM

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

Boofo 08-03-2002 05:10 AM

Is there a way to have it so when you checkmark the All Messages box that it will show the checkmarks in the individual messages checkmark box? And also have it for use on the other options at the bottom of the page there next to the Backup button?

saibal 08-03-2002 03:11 PM

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

wow... unfortunely i'm not the only one...

Boofo 08-21-2002 05:22 PM

Cano2, are you still planning on upgrading this great hack? Haven't heard anything on it for a while. :)

Cano2 08-21-2002 08:14 PM

Yes I do (but plnnaing ist just one thing ;) ). I even have two thirds (all the restore functionality...) ready for a month or two. Unfortunately I'm quite busy atm (in fact im allways busy in a way.. I hate that). I hope I'll find the time to sit down an finish this...

Boofo 08-21-2002 09:01 PM

Let me know what you need, maybe I can help you get it finished. :)

Quote:

Originally posted by Cano2
Yes I do (but plnnaing ist just one thing ;) ). I even have two thirds (all the restore functionality...) ready for a month or two. Unfortunately I'm quite busy atm (in fact im allways busy in a way.. I hate that). I hope I'll find the time to sit down an finish this...

Roody 08-21-2002 11:33 PM

so is this hack safe to use for 2.2.6 ?

Erwin 08-21-2002 11:59 PM

Is this hack secure yet? I used to use this, but changed to the HTML page one because of the security loophole. If it has been made secure, let me know, and I will reinstall this. :)

Boofo 08-22-2002 12:05 AM

This IS the html one, I believe. :)

Quote:

Originally posted by Erwin
Is this hack secure yet? I used to use this, but changed to the HTML page one because of the security loophole. If it has been made secure, let me know, and I will reinstall this. :)

Erwin 08-22-2002 12:17 AM

LOL!!! I posted in the wrong thread! You're right... well it works great. :)

yzztik 08-30-2002 04:42 PM

If I installed the other download PMs hack that you mentioned in your first post and want to replace it with this one, what are the changes I gotta make?

EDITED: nevermind I figured it out! Great hack!! :D Can't wait to see your next release!

Roody 09-01-2002 05:57 PM

i have no idea why i am not seeing the download button. i uploaded it to my /images directory and literally cut and pasted every line mentioned in the download. i selected a pm , but im not finding the download button anywhere.

Can someone help me with this?

Thx

Roody 09-01-2002 07:16 PM

oops never mind. all is good

yzztik 09-09-2002 10:54 AM

suggestion for your next release: maybe have 2 backup icons, one for when the message was also replied to and one for when it wasn't. If you get really ambitious you could have one for forward too. Either way this is a super great hack and I will continue to use it *nod*

Odil 09-12-2002 06:22 AM

Hi I have only one problem with this hack, it displays the html page with all the messages on it as it's supposed to do, but at the top, I get a parse error:

Parse error: parse error, unexpected $ in C:\DDVBBoard\upload\private.php(188) : eval()'d code on line 4

This is using vB version 2.2.6 on a Windows 2000 server.

Any suggestions?

Odil

eoc_Jason 10-02-2002 03:43 AM

Man, I thought I was loosing my mind, I installed it per the instructions, but then the icon wasn't showing up, so I read through the whole thread and followed adding those two lines of code to update the icon.

Then I couldn't get the window to popup no matter what I did... It would download it, but not let me save anywhere... I finally found out what the bug was...

Edit the "privbackup_header" header and change the line from:
PHP Code:

header("Content-disposition: filename=pnbackup_$date.html"); 

To:
PHP Code:

header("Content-disposition: attachment; filename=pnbackup_$date.html"); 

Note the inclusion of "attachment;", that fixed my problem and the window pops up to save! :)

Exo 10-23-2002 03:52 AM

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


ya i have the same, only private.php :confused:

Bison 10-23-2002 02:33 PM

Quote:

Originally posted by eoc_Jason

Edit the "privbackup_header" header and change the line from:
PHP Code:

header("Content-disposition: filename=pnbackup_$date.html"); 

To:
PHP Code:

header("Content-disposition: attachment; filename=pnbackup_$date.html"); 

Note the inclusion of "attachment;", that fixed my problem and the window pops up to save! :)

Cool ... but the $date doesn't write the timestamp on the end of the file!

Bison 10-23-2002 04:41 PM

Nevermind ... I fixed it!

Installed and running good!

Exo 10-23-2002 08:13 PM

can someone help me i dont want this private.php! :(

Exo 11-03-2002 02:16 AM

*UP*

Larz 01-02-2003 11:16 AM

Parse error: parse error in D:\http\GamesDebat.jubii.dk\private.php(189) : eval()'d code on line 1

Someone? Anyone?

drumsy 01-09-2003 09:58 PM

I'm having an issue with the fact that when I select all to backup, the first five don't appear (I have installed the code to display by date). What's up?

Smoothie 01-23-2003 09:42 AM

Gotta say, pretty cool hack. The only problem, as others have said, is the .php file extension. Mozilla gets the .html file ok, IE gets .php extension. Hoping someone can help out here...

Thoki 03-09-2003 07:10 AM

Hello,
today I´ve made the update from 2.29 to 2.30 with fresh templates. I reinstalled the PN-Backup-Hack and the Templates. It is not the first time I have done that, BUT: When I´m going to download the file it has a length of 0 bytes?????????

Who can PLEASE help?

Thoki.

Thoki 03-09-2003 07:10 AM

Hello,
today I´ve made the update from 2.29 to 2.30 with fresh templates. I reinstalled the PN-Backup-Hack and the Templates. It is not the first time I have done that, BUT: When I´m going to download the file it has a length of 0 bytes?????????

Who can PLEASE help?

Thoki.

Thoki 04-16-2003 05:34 PM

No one out there who can help???

cYbercOsmOnauT 05-31-2003 09:46 PM

Nice hack. [x]Installed. But I always got Parse Errors because of line 189 of the private.php
PHP Code:

eval(gettemplate("privbackup_header",0)); 

so I commented it out. I don't need no "Download Popup". :bandit:

Onkel_Tom 07-04-2003 11:42 PM

Very nice hack !
I also [x]installed. No Problems with 2.3.0

Just in the original installing instructions the part with the backuped Icon is missing. =>

********************
open private.php
********************
search for:

eval(gettemplate("privbackup_header",0));
eval("dooutput(\"".gettemplate("privbackup")."\"); "); //and run everything through the template
********************
after it insert:
//set status to "backed up"
$DB_site->query("UPDATE privatemessage SET messageread=4 WHERE $cond");
********************

pls update the original Instructions !!!

Gutspiller 07-05-2003 06:34 PM

How do I get this hack so it opens in a new browser when the user clicks the backup button?

sweet hack.

Thoki 07-07-2003 08:06 AM

@Gutspiller:

Just add
Code:

<base target="_blank">
in the HEAD-Section of the privbackup-Template.

Reagards Thoki.

Gutspiller 07-08-2003 11:39 PM

Quote:

Yesterday at 03:06 AM Thoki said this in Post #77
@Gutspiller:

Just add
Code:

<base target="_blank">
in the HEAD-Section of the privbackup-Template.

Reagards Thoki.

That didn't seem to work. :(

Red Blaze 10-15-2003 03:09 PM

Works very well. Thanks alot. ^^ I'm sure one of the users in my board will really enjoy this hack. ^^;

Silverstangs 11-26-2003 09:31 PM

I did the hack on 2.3.3 but nothing happens. I don't get any errors and I do not see the button. what did I miss?
This is a freash install.


All times are GMT. The time now is 11:52 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
  • Page Generation 0.01461 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete