![]() |
Download Thread as PDF
What this hack does:
This hack creates an new thread tool. Download the complete thread as an PDF. Credits: Julien Mourot, Renato A. C. & MaRTy. Developers of the 'html2fpdf' lib used for this hack. Jacqieline of e-Dot.nl for creating icons for this hack. KirbyDE for his code modification for this hack. Now it doesn't need code modifications anymore! :) Details: 1 plugin 1 new file 1 new phrase 1 template modification 7 new templates Installation: See install.txt in the zip package Notes: Becarefull with editting the pdf templates! Due to limitations of the html2fpdf lib, the templates where kept a simple as possible to create a working an nice pdf. Also this is my first 'big' hack, so if i've made a mistake somewhere, i'm sorry. Please report it so I can fix it. This hack is currently in beta stage... Don't forget to hit the 'Install' button! |
Nice - Installing :)
Satan |
I think we are missing a few files :p
It's trying to point to pdfthread.php :) Satan |
Oh my god, how stupid of me.
I've updated the zip file. |
Happens to the best of us ;)
Installed, very nice, working well :) Satan |
Just a thought - I copied the image from the attach folder over to the buttons folder, and it looks ok :)
Satan |
It looks ok, but it is a little to small.
Just like the image I've put in the zip. The pulldown menu is not completely straight. |
this is cool, I like it.
Thanks for sharing :) Installed here... |
Great idea. :up:
What format does it print? Regular thread view, custom view, or "print thread" view? Does it have a limit on thread size in the number of posts? |
It looks very much like the printthread view.
Currently it adds ALL posts of a thread into one pdf. |
This is a great idea. I don't think I need it on my board... but a great idea none the less.
|
absolutelly a great idea.
i know a lot of boards i would love to see this installed. |
Nice work bro
Install& i like it CooooL |
can't this be made as a plugin? ;)
|
LOL @ amykhar :) Is this called revence? :P
No it can't, it needs a modification to class_bbcode.php. For the PDF generation it needs different template for the quote, php, html & code block. There are no hooks at that locations :( [edit] Although, it could be done WITHOUT the class_bbcode.php modification! In that case you need to replace your templates of bbcode_html_printthread, bbcode_code_printthread, bbcode_php_printthread & bbcode_html_printthread with the ones of the PDF thread. than open pdfthread.php in your favorite editor and search for: Code:
$bbcode_parser->pdfthread = true; Code:
$bbcode_parser->printthread = true; (Only the look of your printthread will change and might need some further template modifications) |
where is the gb2312.map? I need it.
|
That is from the html2fpdf lib.
I have included the complete html2fpdf lib with this zip package. It looks like you use a non standard font or a font that is not included with the package. Maybe you could check out the fpdf libary (used for the html2fpdf lib). I could be in that package. http://www.fpdf.org/ |
It's work okay, but i download without font Unicode-8 (I'm Vietnamese) :) Please help me.
Thanks in advanced Chanhlinh www.quantri.com.vn |
If you need special font, than visit fpdf.org, there you will find a manual/scripts about convering font for use with this scripts.
|
Thanks alot Frenck,
You are so kind. Best regards! chanhlinh |
Hmm ... it can be done without editing class_bbcode.php and without having to modify the printthread Templates :)
In pdfthread.php FIND PHP Code:
PHP Code:
|
Quote:
|
I know. But when it comes back the change can be applied ;)
|
Version 1.10 out!
Thx to KirbyDE this hack now can be marked as an extension! |
1st of all I dont get the image to display, and 2nd, when i click it, the pdf is blank...
|
tahnxxx for hack
bat he dont support arabic |
I realize this is probably a super silly question....being I'm surfing the 3.5 version area....but....I'll ask anyway....will this work on verson 3.0.3????
Kirk |
Very great that you do not need any code modifications now.
Is there an option to set a variable in template to begin a new (pdf-) site? I would like to have a new pdf-page after every posting (#1 is on page 1, #2 is on page 2, #3 is page 3 ...) How can I do that? |
great hack indeed thanks. just a question..can some forums be excluded ? i do not want my users print all threads posted on board..i mean can this be shown as active on some forum and others not ? or maybe set for some users groups and others not? thank you again.
|
Quote:
|
Hmm... I'm on vb3.5 RC1 and it's rejecting the xml file. Had to add it in manually. Everythings working fine though now.
Code:
if (THIS_SCRIPT=='pdfthread' && !PDFASHTML) { |
Quote:
|
Well, the odd thing is I didn't change anything. Just took the stuff between the CDATA tags and pasted that in manually instead of importing an XML file. The XML import didn't work for some reason.
|
It worked fine for me on RC 1. Strange.
Although the file name is always pdfthread with no threadid number after it. |
Installed on RC2 work fine
Thanks a lot for this great hack |
Has anyone else run into the problem with it not putting the thread id number in the downloadable file name?
|
I have it working fine but when I click the drop down the pdf icon is missing. I coppied it over to the images/buttons folder as pdf.gif. Any Ideas?
|
I installed it but it is not giving the output properly as I am using a Unicode Font.
I went to www.fpdf.org, but I don't understand the procedure to make a font file. Can someone explain me step by step, how to do it? |
i've put the title instead of the threadid in the file name:
PHP Code:
|
GREAT extenstion! :up:
|
All times are GMT. The time now is 04:52 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:
|