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)

Pady 11-28-2001 02:09 PM

thanx Bira, got it installed and it works a charm!

Nam 12-07-2001 09:18 AM

Bira, the code you've changed didn't for me, I have 2.2.1 and it says error, I had to use your old code (luckily I did save it) to make it work :(. What's wrong with updating?

bira 12-07-2001 09:26 AM

Nam, what error did it give you?

Nam 12-09-2001 08:28 PM

I don't remember exactly, because I have put back the old code (the first one) to my board, it says some thing about parse errer on the line 748 ( the line that has close } at the end) just right above the ############ line.

Sorry for replying late.

Lionel 12-23-2001 10:44 PM

I am using version 2.21 and I also get the error on line 749. Line 749 is the "}" aove start delete.

When I remove it completely I do not get the parse error but when I try to download it opens the text file in the browser IE 6.02.26

bira 12-23-2001 10:57 PM

Take a look at the first hack and compare the code you got to the one you copied. I just edited that post and made it more clear

Lionel 12-23-2001 11:11 PM

I added the first line and put the } back. I do not get the parse error but it was opening the text in browser. So I changed it as per below. But what is weird, when I click the download, it tells me that I am downloading private.php. If I click open, then a second dialog box comes up telling me that I am downloading message.txt Is that the way it supposed to be? (double dialog box)

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

Lionel 12-23-2001 11:25 PM

I removed "attachment" as per previous post.

header("Content-disposition: filename=messages.txt");
header("Content-type: unknown/unknown");
header("Pragma: no-cache");
header("Expires: 0");

The original post was showing like that:

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

Thanks... great hack.

Streicher 01-01-2002 02:58 PM

Is it possible to change this hack, so that the users can download the PM's HTML formatted?

Lucky 01-03-2002 01:29 PM

Wicked!

Loving this one!

Thanks.


All times are GMT. The time now is 09:39 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.01109 seconds
  • Memory Usage 1,724KB
  • 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)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