![]() |
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 |
Verrrry Niiiiiice
Clicks install Geoffrey |
Nice and cooool hack
*Installed* |
Thank you Logician, great hack... and also thanks to adium... that fixed the issue with firefox ;)
[high]* Polo clicks install[/high] |
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! 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. :) |
Attached is my version of dt.php which produces an RTF formatted document. It also interprets the bbcode for bold, italic and underline.
|
nice improvement, but doesn't work for cyrillic encoding :)
|
Quote:
|
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'; |
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 :) |
Firefox deals with it kind of badly (when you have downloaded it, it doesn't recognize it as a .txt file unless you open it with notepad from the list) but IE is perfect for it.
Nice work. :squareeyed: /me installed this hack. |
/me whacks install button
|
version 3.5 of this hack is released here:
https://vborg.vbsupport.ru/showthread.php?t=97217 |
Can you still fix the following bug?
Whenever downloading a thread as txt, the SOFT ERASED posts are also written onto the final txt. |
Quote:
Very interesting this remained hidden for such a long time. |
This does not work for me--vBulletin Version 3.7.3--and I know I installed it correctly.
The "Download" option shows up in the "Thread Tools" pulldown, but when I click on it I get a blank page. Perhaps later versions of vBulletin break it. Anyone have a hack that works? Thank you. Myra |
Whoops, my bad. I think I tried to install an outdated hack.
I'm playing with this one now: https://vborg.vbsupport.ru/showthrea...ownload+thread |
All times are GMT. The time now is 04:17 AM. |
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:
|