Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Download Thread as PDF Details »»
Download Thread as PDF
Mod Version: 1.0.1, by magnus (Coder/Designer) magnus is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

vB Version: 3.6.7 Rating: (7 votes - 4.57 average) Installs: 77
Released: 07 Jul 2007 Last Update: 07 Jul 2007 Downloads: 763
Not Supported Uses Plugins Template Edits Additional Files  

Keywords: SHOWTHREAD, PDF, Abobe, export, download, thread

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.

Requirements:
  • PHP Version 4.0.4 or greater
  • html2ps (link)
  • ps2pdf (link)

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




Usage:
Under "Thread Tools", simply select "Download as PDF" which will be located under "Show Printable Version". Easy, eh?



Installation:
  1. Download and unzip the pdfthread101.zip archive.
  2. Upload necessary files to their respective locations.
  3. Import the product-pdfthread.xml via the Product Manager.
  4. ???
  5. Profit!

Notes:
All template modifications are made automatically. They attach to pretty common text locations, so modified styles shouldn't* be a problem.



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!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 10 Jul 2007, 21:54
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Yea, I'm trying to rework this modification to make it a bit easier for those on shared hosts who don't necessarily have access to server configs.

This was just a quick attempt to fill a requested need. We'll see what develops.
Reply With Quote
  #32  
Old 11 Jul 2007, 11:11
nebu nebu is offline
 
Join Date: Sep 2006
thx
Reply With Quote
  #33  
Old 11 Jul 2007, 11:26
testebr testebr is offline
 
Join Date: Jan 2004
Which to real need of having a topic in pdf?
Reply With Quote
  #34  
Old 11 Jul 2007, 12:44
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by testebr View Post
Which to real need of having a topic in pdf?
There's plenty of uses for a modification such as this. For instance, if you run a technical site many times a thread will be one of your best sources of information. So, rather than printing it out you can simply save the thread in PDF format for reference purposes -- so if you ever need it again, the information is readily available.

Or, perhaps, you run a gaming site. Often threads will contain game hints, tips, walkthroughs or the like. Again, you can just save the thread to PDF and have it available at your fingertips.

The list goes on and on. However, if you cannot fathom a use for your site then perhaps this modification isn't for you.
Reply With Quote
  #35  
Old 14 Jul 2007, 11:58
Quantnet Quantnet is offline
 
Join Date: Nov 2006
any development on this, magnus ?
Reply With Quote
  #36  
Old 16 Jul 2007, 15:29
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
On this one, no. I'm trying to achieve the same results w/o the need for any non-standard unix binaries. There are a few ways to do it, but unforunately, they're not nearly as efficient. But, I do have a couple things in the works -- hopefully a viable solution will fall into place soon.
Reply With Quote
  #37  
Old 25 Jul 2007, 05:12
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
I have installed this on a new forum (not visible to the public yet) and it gives me a blank pdf. It clearly is a pdf though, but it is empty, just no content at all. I have vBSEO installed, could that interfere in some way?
__________________
"If we knew what we were doing we wouldn't call it research"
Reply With Quote
  #38  
Old 25 Jul 2007, 13:33
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Simon Moon View Post
I have installed this on a new forum (not visible to the public yet) and it gives me a blank pdf. It clearly is a pdf though, but it is empty, just no content at all. I have vBSEO installed, could that interfere in some way?
In your vBSEO settings, make sure "Rewrite Printthread URLs" is set to No.
Reply With Quote
  #39  
Old 25 Jul 2007, 17:08
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
I tried that, doesn't work though. It still shows a completely empty PDF.

Looking a bit deeper, does it have problems with basedir restrictions?
Safe mode is off, but basedir is limited to the public html directory.
__________________
"If we knew what we were doing we wouldn't call it research"

Last edited by Simon Moon : 25 Jul 2007 at 17:14.
Reply With Quote
  #40  
Old 25 Jul 2007, 17:42
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Simon Moon View Post
I tried that, doesn't work though. It still shows a completely empty PDF.

Looking a bit deeper, does it have problems with basedir restrictions?
Safe mode is off, but basedir is limited to the public html directory.
There is PHPs open_basedir, if "/usr/local/bin/" (or wherever you've placed your html2ps binary) is not within the allowed path, then php scripts won't be able to access the file.
Reply With Quote
  #41  
Old 25 Jul 2007, 21:45
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
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 we knew what we were doing we wouldn't call it research"
Reply With Quote
  #42  
Old 26 Jul 2007, 12:15
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Simon Moon View Post
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.
Reply With Quote
  #43  
Old 26 Jul 2007, 19:10
Simon Moon Simon Moon is offline
 
Join Date: Nov 2001
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).
__________________
"If we knew what we were doing we wouldn't call it research"
Reply With Quote
  #44  
Old 27 Jul 2007, 21:49
GeekDrew GeekDrew is offline
 
Join Date: Dec 2004
Originally Posted by Simon Moon View Post
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...
Reply With Quote
  #45  
Old 30 Jul 2007, 07:38
nebu nebu is offline
 
Join Date: Sep 2006
can you say when the new version will be ready?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:42.

Layout Options | Width: Wide Color: