![]() |
Download Forum Thread To Your Computer (Vb3.x)
This hacks allows you to download a forum thread into your computer (desktop etc.) as a text file with one click.
The hack adds a "DOWNLOAD THREAD" link inside Thread Tools pop-up and when clicked entire thread is downloaded to your computer. (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. The hack is tested with vB3.0.0 And vB 3.0.1, it is NOT tested with versions prior to 3.0.0. (vB2.x version is here). It is very easy to install. As a matter of fact it is an add-on, not a hack so you can install to your board without modifying any vb files. Just upload dt.php to your forum directory and make a easy change in showthread template and it is installed. Simple as that. VERSION FOR VB 3.5 is released here: https://vborg.vbsupport.ru/showthread.php?t=97217 If you install it, please click INSTALL, thank you. Note : Download function is tested with IE v.6.0, Netscape v.4.7, Mozilla 1.2a and it's working fine in these browsers. I dont know other browsers or older versions though. 27.May.2004 Bug Fix : A small bug is fixed in file dt.php which effect users with prefixed tables in database. 29.May.2004 Bug Fix : A small bug in dt.php is fixed to cure post titles with special characters ("'?&) in it. Attached dt.php file is uptodate. 12.Dec.2004 Bug Fix : A small bug which causes soft deleted posts to be included in the downloaded text is fixed. Attached dt.php file is uptodate. Note 1: If you want to use a different download thread image, see this post. Note 2: If you want to save threads as .rtf, instead of .txt, see this post. Enjoy the hack, Logician |
great work :D
|
Sinan, Do I need to add the htmlspecialchar like I did in the vB2 version or will this automatically handle that? And thank you, sir. I have been waiting for this one. ;)
|
The master has done it again. :) Good job.
|
Very nice :D
[high]* mmw clicks install[/high] |
Great Tool!
|
Thnk you kindly :) quite ahandy wee addon :)
|
Nice one :)
|
Ohhhh I cannot wait to install this!!!!!!
|
wow .Its cool Mod.I will install it right now
|
great idea, nice hack
/me click install |
Very useful - especially for forums that have a writers area.
|
Does it work with multi page threads?
|
Quote:
|
Logician, my forum tables have the prefix vB3_. Your hack assumes there is no prefix and can't find the post table. I sifted through the code but can't figure out what I need to change to fix this. What should I do?
|
Quote:
PHP Code:
PHP Code:
|
I now get this error
PHP Code:
|
Quote:
It should have worked. Why it doesn't, I don't know. Again, sorry. ;) |
Here's a version that supports table prefixes. :)
Just replace the PHP file and you're on your way! (Small grammar error fixed too. :p) |
Installed great!
|
Okay for some reason this isn't in my SHOWTHREAD template:
PHP Code:
Thanks in advance! Ashley |
Ashley:
Just search for "email_this_page" in the SHOWTHREAD template, and add the new code after the </tr> :) I had the same problem, I think this template was updated in 3.0.1 and the phrasing isn't identical. :) |
Thank you, that worked perfectly!!!!
**clicks install** |
Quote:
Replace your dt.php with the new file and you'll be fine. |
Quote:
|
Quote:
|
Quote:
You might want to unhtmlchars the post title too as it will look defunct on the first post. ;) |
Nice... Installed. I hope they add this to vb.com & vb.org!
I notice it doesn't include posts that are "hidden" as a result of the hack by Xenon "Staff can Post hidden Posts " located here: https://vborg.vbsupport.ru/showthread.php?t=64860 Any way to include these (if you have permission to view those hidden posts)? Thanks, Steve K. |
im just wondering, i noticed it saves the txt file of the thread with the name of the thread.... is it posssible you can add your site's name in front of it so it'll be called VBulletin.org - Thread name.txt? anyone have any ideas?
|
great solution for the old problem...
|
Nice hack Logician. Works great :cool:.
[high]* Intex clicks INSTALL[/high] |
Quote:
PHP Code:
PHP Code:
|
I fixed a small bug to clean certain weird characters from post titles. You can overwrite your dt.php with the new dt.php (attached in the first post of the thread) to use the new version. Thanks for Boofo for pointing it out.
|
Quote:
find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
PERFECT TIMING! It's as if you met the very request I made a week or so ago. I'll install it once my website comes back online. Dude, Logician rules!
|
Quote:
|
Okay I guess I didn't check that! :blush: Thanks!
|
The hidden posts addition to this hack doesn't work without the following change:
This: PHP Code:
PHP Code:
|
Quote:
|
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|