![]() |
excellent hack
but cannot show the thread name in download Txt file name in my web. I use utf-8 chinese. Could you help me? |
Thanks, Logician. Just installed it at my members' request!
|
Great, but two things are not:
1. (major) this hack does not go well with any languages other than english 2. (minor) the graphical icon in the menu is smaller that all the other icons, and it is visible - and irritating - from the first glance |
Quote:
Quote:
https://vborg.vbsupport.ru/showpost....3&postcount=13 |
I finally upgraded to 3.5! Thanks for making this excellent hack available!
One thing I noticed though, the following line in dt.php doesn't seem to work: Code:
print ("$vbphrase[DT_DownloadedFrom]\r\n\r\n"); |
Quote:
Create a new phrase (in Global Group) named: DT_DownloadedFrom (Case SENSITIVE!) with this content: Downloaded from {1} ({2}) at {3}. This should fix it. I'm about to update the hack zip either.. |
Yep, that did it. Thanks!!!
|
Quote:
Quote:
|
Ok, here goes the minimod that performs the conversion of Russian letters into appropriate English letters / letter combinations.
IN dt.php, FIND: PHP Code:
PHP Code:
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? :) |
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. |
All times are GMT. The time now is 12:28 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:
|