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)
-   -   Download PMs to File (for all 2.x.x versions)" (https://vborg.vbsupport.ru/showthread.php?t=15859)

zarkov 06-10-2001 08:56 AM

Then it must be something to do with the hack, either your doing something wrong or possibly your using PHP 3 and it maybe it doesnt work with 3 ( that is only a guess as i have never tried it on 3).

slip 06-10-2001 05:24 PM

Quote:

Originally posted by slip
i installed everything exactly as it should be done, yet when i try to download some pm's, i just get a blank page (completely blank, no errors)

any help?



can anyone help me?
I'm using PHP4 and I did everything like I should have..

zarkov 06-12-2001 07:16 AM

What browser you using?

I found that the code in the hack worked in IE 5 but not 5.5, I had to do a little digging around,But i assume its to do with http versions, IE 5 being http 1.0 complient and 5.5 being http 1.1 compliant.

I did work out and get it to work in IE.5.5 and netscape 4.7, but at the moment im at work and dont have access to the code, but ill post the changes later for anyone to use.

Please note that from mmy playing you can have it work in IE 5 or 5.5 but not both

slip 06-12-2001 01:30 PM

yup, i'm running IE 5.5

those code modifications that you did would be GREATLY appreciated..

zarkov 06-12-2001 09:09 PM

OK look for this code in private.php
PHP Code:

if (is_array($privatemessage)) { 
header("Content-type: application/octet-stream"); 
header("Content-disposition: attachment; filename=messages.txt"); 
header("Pragma: no-cache"); 
header("Expires: 0"); 

and replace it with
PHP Code:

if (is_array($privatemessage)) { 
header("Content-disposition: attachment; filename=messages.txt"); 
header("Content-type: uknown/unknown"); 
header("Pragma: no-cache"); 
header("Expires: 0"); 

Dont forget to change the filename=messages.txt to what ever you want to call the downloaded file.

Axel Foley 06-17-2001 12:00 AM

Bira, first of all GREAT HACK! ;)

For Zarkov & Norritt & Slip & Bira :rolleyes: :

I had the same error as Norritt (Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in e:\apache\apache\nsdocs\forum\private.php on line 695), and it wasn't my fault, after a while I found out the error. I had to modify the last EVAL() in this way:

PHP Code:

// Original code by Bira
      
eval("standarderror(\"".gettemplate("error_pmnoselected")."");");
      exit;
      }

// My modification
      eval("
standarderror(\"".gettemplate("error_pmnoselected")."\");");
      exit;
      } 

One other thing: I use IE 5.5 and the hack works greatly without applying Zarkov's modifications.

ezdreamer 11-12-2001 04:48 AM

I tried this with version 2.2.0 but the only thing that came up was an empty page when I hit the pm section.

Will Bira's code work with 2.2.0 or could I be doing something wrong. I followed the instructions to the letter and nothing... :confused:

Alien 11-12-2001 05:46 PM

Wow, I never even saw this one..

Anyone have this working in recent versions? ...and did it require modification? I'd love to install this...

amykhar 11-12-2001 05:59 PM

I have it working on my board. It only required a bit of tweaking to make the button match other buttons on the form.

Amy

Amasov 11-13-2001 07:47 AM

I am running this hack on my 2.2.0 an it works perfectly (thanks @Bira, great hack)

Only one question:

How do I change the size of the "Download"-Button ??
(It's greater than the others, but I used the same style like the others)..

Thanks.

@ezdreamer:
Actually you did something wrong! :p

@Alien:
I ran this hack on RC2, 2.0.1, 2.0.2, 2.0.3 :)


All times are GMT. The time now is 01:45 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.01174 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (1)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