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)

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


All times are GMT. The time now is 09:18 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.01273 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_php_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