Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download Thread as PDF Details »»
Download Thread as PDF
Version: 1.10, by Frenck Frenck is offline
Developer Last Online: Dec 2007 Show Printable Version Email this Page

Version: 3.5.0 Beta 3 Rating:
Released: 07-02-2005 Last Update: 07-04-2005 Installs: 197
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.


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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 07-06-2007, 09:46 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
I got bored, so here's a confirmed working version for 3.6.7PL1. This has only been tested using PHP5. It will not work on PHP4.

I've packaged it up as a product and it requires no template creation, edits, etc. Everything is handled from within the product.

First, uninstall the previous version. Files, phrases, templates. Everything.

Next, unpack the attached file and upload the contents of the forum directory to your forum root. Then simply import the product XML and you're done.

* Edit: Well, according to vBorg I'm exceeding my attachments quota. So, apparently I can't attach any files.

Thanks vBorg!

So, until that gets resolved here's a direct URL. Download
Does it work for other languages?
Reply With Quote
  #143  
Old 07-06-2007, 10:03 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

magnus,

Installed without a single problem. When i view threads that have tex bbcode, it does not render images properly...it will just show a square box with red cross in it.

This is in Firefox and Opera browsers.
In IE 7, I have this error FPDF error: Unsupported image type: cgi?/partial

Look like pdfthread.php does not handle the mimetex.cgi script well.
Reply With Quote
  #144  
Old 07-06-2007, 10:05 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, when i tried to use pdf thread on a thread with pictures...http://www.quantnet.org/forum/showthread.php?t=845

i had these error
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /html2fpdf/fpdf.php on line 2201
Reply With Quote
  #145  
Old 07-06-2007, 10:23 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quantnet.org View Post
Also, when i tried to use pdf thread on a thread with pictures...http://www.quantnet.org/forum/showthread.php?t=845

i had these error
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /html2fpdf/fpdf.php on line 2201
When I attempt to view as a PDF for that thread, I receive the error:

Quote:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1273902197 bytes) in /home/quantnet/public_html/forum/html2fpdf/fpdf.php on line 2201
Which appears, to me, that your PHP memory allocation block is too small.
Reply With Quote
  #146  
Old 07-06-2007, 10:26 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upon further testing, the only "problem" I can seem to find is that pictures will display as a red X. Other than that, the complete document is properly rendered into PDF format.

I'm going to take a quick look at the picture issue.
Reply With Quote
  #147  
Old 07-06-2007, 10:26 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ I up it to 256MB which is the maximum of my VPS plan. That should not be a problem with the memory anymore.

When I use the View printable thread, everything appears fine, pictures, latex....
Reply With Quote
  #148  
Old 07-06-2007, 10:28 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle View Post
Does it work for other languages?
What do you mean? There's really no language dependency (that I can see). There's only one phrase, which can be translated if desired.
Reply With Quote
  #149  
Old 07-06-2007, 10:30 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a thread with latex which you can test the Show Printable Version and Show PDF
http://www.quantnet.org/forum/showthread.php?t=410
Reply With Quote
  #150  
Old 07-07-2007, 02:31 AM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, the problem appears to be inherent with html2fpdf. I've gone ahead and basically written a new hacking using a different set of classes/libraries which seems to function much better. Once I'm confident it's stable, I'll get it released. This shouldn't take more than a day, if that.

For the time being, I've gone ahead and removed the previous archive as it will never work 100% without rewriting the backend.
Reply With Quote
  #151  
Old 07-07-2007, 05:44 AM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome magnus.
I'll look forward to it.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07193 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete