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'm not sure where to put them and I couldn't quite understand the installation instruction.
The applications html2ps and ps2pdf are both dependencies of this modification. If they're not already present on your system, they will need to be downloaded, compiled and installed. These utilities are not vBulletin related, they have absolutely nothing to do with vBulletin.
Chances are, if you're using a shared hosting account, these are already installed. Before trying to install them, I would just attempt to run the modification first and see if they're already present.
Warning: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid is 583 is not allowed to access /tmp/thread5918aSSCNI owned by uid 48 in /threadtopdf.php on line 179
HTML_ToPDF Error: html2ps [/usr/bin/html2ps] not executable
A few friends of mine run vBulletin sites on shared hosting and they were able to use this modification no problem. Really, it's hit or miss with some shared hosting providers.
The html2ps error you're receiving is claiming the binary isn't set to executable. What are the permissions? Did you install from source or did you use a package (ie. rpm, deb)?
A simple chmod 755 should fix it (provided you have rights to do that).