Description:
Allows you to download an entire thread in PDF format, viewable in any PDF viewer such as Adobe Acrobat or Foxit Reader.
Details:
Previously, there was a modification that performed this task however that modification is no longer supported and the backend used was seriously out-of-date and suffered from quite a few bugs. I've gone ahead and created this modification around an entirely different backend, one which works quickly and flawlessly.
Notes:
Please note, these prerequesits may already be installed on your system. If you're unsure, simply install the modification and upon usage it will inform you if something is missing.
If you happen to be fortunate enough to be using Debian, the above requirements can be installed with the following packages:
Code:
# apt-get install html2ps
Code:
# apt-get install gs-common
[hr]-[/hr] Usage:
Under "Thread Tools", simply select "Download as PDF" which will be located under "Show Printable Version". Easy, eh?
[hr]-[/hr] Installation:
Download and unzip the pdfthread101.zip archive.
Upload necessary files to their respective locations.
Import the product-pdfthread.xml via the Product Manager.
???
Profit!
Notes:
All template modifications are made automatically. They attach to pretty common text locations, so modified styles shouldn't* be a problem.
[hr]-[/hr] Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really.
Version History:
1.0.1 - Initial release, here's to hoping...
Currently Known Bugs:
None
* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i disabled the open_basedir for this host now to test, and it still delivers the same result. Any ideas on how i could test this to find the cause of it? I mean i get a valid PDF file, its just blank, so maybe the problem lays somewhere in the data part?
i disabled the open_basedir for this host now to test, and it still delivers the same result. Any ideas on how i could test this to find the cause of it? I mean i get a valid PDF file, its just blank, so maybe the problem lays somewhere in the data part?
If you try to View Printable Version, does it display fine? If so, does it work as a Guest/Not Logged In user?
All this does is pipe the output of View Printable Version through html2pdf. So, if we can verify that half of it works, we know where to look.
I figured it out, it was me. The forum is behind an htaccess authentication, for the setup etc. It seems like this plugin goes and literally uses a web access to the showthread url for this, so, if a general user without anything special cant see it (say user and password, or even if you would block the printthread for non registered users) it would not work anymore.
It is a great plugin and i keep it in, but you should note that in the first posts text, so it is very clear what it does (direct http access).
I figured it out, it was me. The forum is behind an htaccess authentication, for the setup etc. It seems like this plugin goes and literally uses a web access to the showthread url for this, so, if a general user without anything special cant see it (say user and password, or even if you would block the printthread for non registered users) it would not work anymore.
All of my forums require that the user be logged in to read threads, so guests are not able to view any threads. This plugin works just fine for me...