The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Download Forum Thread To Your Computer (Vb3.x) Details »» | |||||||||||||||||||||||||||
Download Forum Thread To Your Computer (Vb3.x)
Developer Last Online: Nov 2023
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 Show Your Support
|
Comments |
#122
|
|||
|
|||
Ok nevermind got it..
Open up dt.php Find: Code:
$filename=preg_replace("/[.&!:\\\?\^\'\"\$]/", '', $thread[title]); Code:
$filename=preg_replace("[\s]", "_", $thread[title]); Works perfectly now in Firefox 1.0 |
#123
|
||||
|
||||
Verrrry Niiiiiice
Clicks install Geoffrey |
#124
|
||||
|
||||
Nice and cooool hack
*Installed* |
#125
|
||||
|
||||
Thank you Logician, great hack... and also thanks to adium... that fixed the issue with firefox
[high]* Polo clicks install[/high] |
#126
|
|||
|
|||
Great hack, Logician! Thanks! Thanks also to ADiuM for sorting out the Firefox issue!
By the way, does anyone else have text formatting problems? Regardless of whether it's txt or rtf, the files don't display exactly right with either Notepad or Word. With Wordpad, it looks fine though. I'd like to generate a "proper" rtf file by adding some control codes but I need some help. How do I print "{\rtf" without the "\r" being misinterpretted? Also, is there any way to preg_replace or add characters after each line break or carriage return? Here's sample of rtf code: Code:
{\rtf Hello!\par I need some {\b help}.\par } Hello! I need some help. As you can see, we could also preg_replace the bbcode with rtf code to make nicer looking files. I'd like to do that too but I first need to figure how to get started with the basics. Regards, Aylwin edit: Figured it out. |
#127
|
|||
|
|||
Attached is my version of dt.php which produces an RTF formatted document. It also interprets the bbcode for bold, italic and underline.
|
#128
|
|||
|
|||
nice improvement, but doesn't work for cyrillic encoding
|
#129
|
||||
|
||||
Quote:
|
#130
|
|||
|
|||
Quote:
Code:
print '{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}}{\f0 \fs22'; Aylwin edit: Perhaps you can try this: Code:
print '{\rtf1\ansi\ansicpg1251\uc1 \deff0\deflang1026\deflangfe1026{\fonttbl{\f0\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}}{\f0 \fs22'; |
#131
|
|||
|
|||
um, weird, wordpad opens the file but shows only a few lines and those aren't cyrillic either, and word just says "wrong filename/part of file" even if I change the filename to a 1-2 latin characters.
well I'm ok with the pure text version so don't really sweat over it |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|