Back to vBulletin 3.5 Add-ons

Download Forum Thread To Your Computer (vB 3.5.x)
Mod Version: 1.00, by Logician

This modification is in the archives.
vB Version: 3.5.0 Rating: (6 votes - 4.67 average) Installs: 133
Released: 30 Sep 2005 Last Update: 23 Nov 2005 Downloads: 298
Not Supported Uses Plugins Template Edits Additional Files  

Here is the vb 3.5.x version of my Download Forum Thread To Your Computer hack. 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 )

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 works with 3.5.x, 3.6.x, 3.7.x, 3.8.x (for vb 4.x, 3.0.x and 2.x versions see my profile.)

It is very easy to install. You can install it to your board without modifying any vb files.

If you install it, please click , thank you.

Hacks of Hack:
* French Translation

Spoiler (click to open)


Works great ! Thank you.
And here's a small french translation.
Attached Files
File Type: xml product-lh_downloadthread_FR01.xml (828 Bytes, 16 views)

Close

* Version that works with Russian Alphabet

Spoiler (click to open)


Ok, here goes the minimod that performs the conversion of Russian letters into appropriate English letters / letter combinations.

IN dt.php, FIND:

PHP Code:
$filename str_replace(' ''_'$filename); 
ADD UNDERNEATH:

PHP Code:
  // -----------------------------------------------------------------------------------------------------------------------------------------------
  // Download Thread :: Russian Symbols Conversion Mod by Psionic Vision
  // -----------------------------------------------------------------------------------------------------------------------------------------------
  
$preg_find = array
  (
    
"/А/""/Б/""/В/""/Г/""/Д/""/Е/""/Ё/""/Ж/""/З/""/И/""/Й/""/К/""/Л/""/М/""/Н/""/О/""/П/""/Р/""/С/""/Т/""/У/""/Ф/""/Х/""/Ц/""/Ч/""/Ш/""/Щ/""/Ъ/""/Ы/""/Ь/""/Э/""/Ю/""/Я/",
    
"/а/""/б/""/в/""/г/""/д/""/е/""/ё/""/ж/""/з/""/и/""/й/""/к/""/л/""/м/""/н/""/о/""/п/""/р/""/с/""/т/""/у/""/ф/""/х/""/ц/""/ч/""/ш/""/щ/""/ъ/""/ы/""/ь/""/э/""/ю/""/я/"
  
);
  
  
$preg_replace = array
  (
    
"A""B""V""G""D""E""Jo""Zh""Z""I""J""K""L""M""N""O""P""R""S""T""U""F""H""C""Ch""Sh""Sh'""'""Y""'""Je""Ju""Ja",
    
"a""b""v""g""d""e""jo""zh""z""i""j""k""l""m""n""o""p""r""s""t""u""f""h""c""ch""sh""sh'""'""y""'""je""ju""ja"
  
);
  
  
$filename preg_replace($preg_find$preg_replace$filename);
  
// -----------------------------------------------------------------------------------------------------------------------------------------------
  // Download Thread :: Russian Symbols Conversion Mod by Psionic Vision
  // ----------------------------------------------------------------------------------------------------------------------------------------------- 
Enjoy everyone

P.S. A few other things:
1) Is there any reason behind using application/octet-stream rather than text/plan?
2) Why not make a custom function printbr($text, $num_of_breaks = 1), that will remove the need of writing "\r\n" all the time?

Close

* Download it as RTF instead of TXT

Spoiler (click to open)


In case anyone is interested, I have a modified version of dt.php which downloads the thread in .rtf instead of .txt. It automatically converts bbcode for bold, italic and underline. This, imho, makes the downloaded document slightly better visually.

It's only for english though.

EDIT:
I've updated the attached file to convert bbcode for quoted text. You can also choose between Arial and Courier fonts by "switching" between lines 169 and 170. The font is Courier by default.
Attached Files
File Type: php dt.php (9.8 KB, 82 views)

Close
.


Enjoy the hack,
Logician

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Download Forum Thread To Your Computer (Vb3.x) vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024