Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #32  
Old 07-29-2005, 04:26 AM
dayblue dayblue is offline
 
Join Date: Jul 2004
Location: Chicago
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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) {
  $pdf = new html2fpdf();
  $pdf->AddPage();
  $pdf->WriteHTML($output);

  header("Content-type: application/pdf");
  header("Content-Disposition: attachment; filename=thread-".$threadid.".pdf");

  $pdf->Output();
  exit();
}
Reply With Quote
  #33  
Old 07-29-2005, 04:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dayblue
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) {
$pdf = new html2fpdf();
$pdf->AddPage();
$pdf->WriteHTML($output);
 
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=thread-".$threadid.".pdf");
 
$pdf->Output();
exit();
}
What did you change?
Reply With Quote
  #34  
Old 07-29-2005, 04:47 AM
dayblue dayblue is offline
 
Join Date: Jul 2004
Location: Chicago
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #35  
Old 07-29-2005, 05:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked fine for me on RC 1. Strange.

Although the file name is always pdfthread with no threadid number after it.
Reply With Quote
  #36  
Old 08-06-2005, 12:42 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on RC2 work fine
Thanks a lot for this great hack
Reply With Quote
  #37  
Old 08-06-2005, 11:54 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone else run into the problem with it not putting the thread id number in the downloadable file name?
Reply With Quote
  #38  
Old 08-31-2005, 06:10 AM
ajpritch ajpritch is offline
 
Join Date: Aug 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 09-05-2005, 12:25 PM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #40  
Old 09-05-2005, 12:39 PM
nexialys
Guest
 
Posts: n/a
Default

i've put the title instead of the threadid in the file name:
PHP Code:
    header("Content-Disposition: attachment; filename=thread-".str_replace(' ''_'$threadinfo['title']).".pdf"); 
Reply With Quote
  #41  
Old 09-05-2005, 01:03 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GREAT extenstion! :up:
Reply With Quote
Reply

Thread Tools

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 11:00 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.08157 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)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
  • (4)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
  • (10)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