Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download Thread Details »»
Download Thread
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-11-2002 Last Update: Never Installs: 197
 
No support by the author.

This hacks allows you to download a thread into your computer (desktop etc.) as a text file with one click.

The hack adds a "DOWNLOAD THREAD" link next to "Subscribe to this Thread" and when clicked entire thread is downloaded. (See Screenshot)

It's useful when:
a) You want to archive and save the thread,
b) Want to read it offline,
c) It's a long thread and you want to browse it faster as a text file, use better searching features of your text editor. For example wouldnt it be nice to download and search a keyword in the text file in, say, Lesene's Store Hack Thread which has 921 replies?

Anyway the hack works with ALL vb versions and very easy to apply (2 steps/ 2 minutes..). If you install it, please click INSTALL, thank you.

Note : Download function is tested with IE v.6.0 and Netscape v.4.7 and it's working in both browsers. I dont know other browsers or older versions though

Note : For Italian Translation (and instructions) of the hack, see this post. Thanks to Geminy.


UPDATE AT 13.OCTOBER.2002 : Due to a small bug, I updated the hack code. If you are downloading now, the code you dowload is already updated. If you installed the hack prior to 13.October.2002, you may want to reapply STEP 2, if you encounter problems.

Enjoy the hack.
Logician

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 11-06-2002, 10:41 PM
SRozhon's Avatar
SRozhon SRozhon is offline
 
Join Date: Apr 2002
Location: IL
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh geesh thank you...guess I'm more tired than I thought..lol Thanks again!
Reply With Quote
  #63  
Old 11-11-2002, 09:16 AM
Dynamic One's Avatar
Dynamic One Dynamic One is offline
 
Join Date: Nov 2001
Location: Somewhere on the net
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Logician. Great hack you made m8.
Reply With Quote
  #64  
Old 11-20-2002, 11:02 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm! *installs*
Reply With Quote
  #65  
Old 01-15-2003, 05:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this on 2.2.9 and I have a thread title with quotes in it. When I go to download the thread it shows it as the following:
Quote:
Do you believe in & quot
(NOTE: I had to put a space bewteen the & and the quot. The disable code hack doesn't work here now for some reason.)

when the actual name of the thread is:
Quote:
Do you believe in "signs"?
How can I parse out the quotes in the title?
Reply With Quote
  #66  
Old 01-18-2003, 10:37 AM
MalaK_3araby MalaK_3araby is offline
 
Join Date: Dec 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack.

- Installs
Reply With Quote
  #67  
Old 01-18-2003, 02:40 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed the same bug as Boofo did, when there is a html character in the thread title, it will screw up the file name, something somewhere needs to be unhtmlcharacter'd
Reply With Quote
  #68  
Old 01-19-2003, 10:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

N9ne, I found a fix for our problem. I tried it and it works on my end. Test it out and let me know if it fixes it for you. You have to change it in 3 places so the file will have the html characters in the thread title and any post title you have those characters in also.

Replace:

PHP Code:
$filename=preg_replace("/[.!:\\\?\^\'\"\$]/"''$thread[title]); 
With:

PHP Code:
$filename=preg_replace("/[.!:\\\?\^\'\"\$]/"''unhtmlspecialchars($thread[title])); 
Replace:

PHP Code:
  print ("THREAD : $thread_db[title]\r\n"); 
With:

PHP Code:
  print ("THREAD : ".unhtmlspecialchars($thread_db[title])."\r\n"); 
Replace:

PHP Code:
  if ($post[title]) {print ("Title : ".$post[title]."\r\n");} 
With:

PHP Code:
  if ($post[title]) {print ("Title : ".unhtmlspecialchars($post[title])."\r\n");} 
Reply With Quote
  #69  
Old 01-20-2003, 08:10 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
N9ne, I found a fix for our problem.
Looks good and should work.. Well done..
Reply With Quote
  #70  
Old 01-20-2003, 08:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician

Looks good and should work.. Well done..
Coming from you, Sinan, that means more than you will ever know. I mean that.

And thank you for not running to bail me out when I first ran into this problem and posted it in the thread here. I never would have figured it out myself, if you had given me the code. You forced me to learn something (as little as it was).
Reply With Quote
  #71  
Old 01-20-2003, 08:47 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo

And thank you for not running to bail me out when I first ran into this problem and posted it in the thread here. I never would have figured it out myself, if you had given me the code. You forced me to learn something (as little as it was).
It was not my intention.. I just cant always find time to answer promptly but I'm glad it did some good..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04933 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete