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
  #12  
Old 07-13-2002, 06:40 AM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea ! This is very very cool & usefull !
Reply With Quote
  #13  
Old 07-13-2002, 08:45 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what a wonderful hack u did Logician......

[high]* squawell like this one too.... installed.....[/high]
Reply With Quote
  #14  
Old 07-13-2002, 11:26 AM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack, nice work

/me clicks install
Reply With Quote
  #15  
Old 07-13-2002, 02:45 PM
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
Is there a way to parse out the font color codes and other codes like that before it writes the message to a text file?
it can be possible but it requires some work. I cant promise it done soon, but I can try to add the feature when I'm more available..
Reply With Quote
  #16  
Old 07-13-2002, 02:48 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good to me. Let me know if and when you need some testing done on it.

Quote:
Originally posted by Logician

it can be possible but it requires some work. I cant promise it done soon, but I can try to add the feature when I'm more available..
Reply With Quote
  #17  
Old 07-13-2002, 03:24 PM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm not sure if there is something wrong but, the savefile name looks weird.
See attachment.
Reply With Quote
  #18  
Old 07-13-2002, 03:31 PM
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 Ryangel
hmm not sure if there is something wrong but, the savefile name looks weird.
See attachment.
You should be able to download/save the thread anyway, could you? BTW what was the exact thread name you were trying to DL?
Reply With Quote
  #19  
Old 07-13-2002, 03:35 PM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup . It viewed fine

Threadname was : "[News] 4 Jul: Minister's Speech at ITE East (Macpherson)'s Opening "

So maybe that was a problem .
Reply With Quote
  #20  
Old 07-13-2002, 03:44 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried parse out special characters from thread title so that file name will be nice but some may be missed. In your example it was : char. It's no big deal but if it bothers you, there are 2 possible solutions:

1- edit line:

$filename=preg_replace("/[.!\\\?\^\'\"\$]/", '', $thread[title]);


and replace it as:

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

(This will parse out : char too)

2- If you are not interested in naming the file name after thread title, replace the same line as:

PHP Code:
$filename='Thread'.$threadid
After the change all file names will be like "Thread1244.txt" and no more file name bugs. However I personally prefer to use thread title as file name, it is much better IMO..

Your call
Reply With Quote
  #21  
Old 07-13-2002, 03:52 PM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed your first soloution .

Worked out well

Thanks for the hack!
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 07:10 PM.


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.10335 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)bbcode_php
  • (3)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
  • (3)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