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. :)


All times are GMT. The time now is 06:04 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.01134 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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