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
  #22  
Old 07-05-2005, 02:52 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm ... it can be done without editing class_bbcode.php and without having to modify the printthread Templates

In pdfthread.php
FIND
PHP Code:
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 
BELOW that ADD
PHP Code:
$vbulletin->templatecache['bbcode_php'] = $vbulletin->templatecache['bbcode_php_pdfthread'];
$vbulletin->templatecache['bbcode_html'] = $vbulletin->templatecache['bbcode_html_pdfthread'];
$vbulletin->templatecache['bbcode_quote'] = $vbulletin->templatecache['bbcode_quote_pdfthread'];
$vbulletin->templatecache['bbcode_code'] = $vbulletin->templatecache['bbcode_code_pdfthread']; 
Done
Reply With Quote
  #23  
Old 07-05-2005, 03:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Hmm ... it can be done without editing class_bbcode.php and without having to modify the printthread Templates

In pdfthread.php
FIND
PHP Code:
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 
BELOW that ADD
PHP Code:
$vbulletin->templatecache['bbcode_php'] = $vbulletin->templatecache['bbcode_php_pdfthread'];
$vbulletin->templatecache['bbcode_html'] = $vbulletin->templatecache['bbcode_html_pdfthread'];
$vbulletin->templatecache['bbcode_quote'] = $vbulletin->templatecache['bbcode_quote_pdfthread'];
$vbulletin->templatecache['bbcode_code'] = $vbulletin->templatecache['bbcode_code_pdfthread']; 
Done
There is no pdfthread.php anymore Kirby. You just removed it.
Reply With Quote
  #24  
Old 07-05-2005, 03:18 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know. But when it comes back the change can be applied
Reply With Quote
  #25  
Old 07-05-2005, 05:39 PM
Frenck's Avatar
Frenck Frenck is offline
 
Join Date: Dec 2001
Location: Hengelo, The Netherlands
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.10 out!

Thx to KirbyDE this hack now can be marked as an extension!
Reply With Quote
  #26  
Old 07-06-2005, 05:31 PM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st of all I dont get the image to display, and 2nd, when i click it, the pdf is blank...
Reply With Quote
  #27  
Old 07-06-2005, 05:52 PM
lazorde lazorde is offline
 
Join Date: Jul 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tahnxxx for hack

bat he dont support arabic
Reply With Quote
  #28  
Old 07-08-2005, 01:58 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I realize this is probably a super silly question....being I'm surfing the 3.5 version area....but....I'll ask anyway....will this work on verson 3.0.3????

Kirk
Reply With Quote
  #29  
Old 07-08-2005, 02:09 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very great that you do not need any code modifications now.

Is there an option to set a variable in template to begin a new (pdf-) site? I would like to have a new pdf-page after every posting (#1 is on page 1, #2 is on page 2, #3 is page 3 ...) How can I do that?
Reply With Quote
  #30  
Old 07-09-2005, 12:49 AM
red_baron2000's Avatar
red_baron2000 red_baron2000 is offline
 
Join Date: Jul 2002
Location: EU
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack indeed thanks. just a question..can some forums be excluded ? i do not want my users print all threads posted on board..i mean can this be shown as active on some forum and others not ? or maybe set for some users groups and others not? thank you again.
Reply With Quote
  #31  
Old 07-11-2005, 07:12 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by red_baron2000
great hack indeed thanks. just a question..can some forums be excluded ? i do not want my users print all threads posted on board..i mean can this be shown as active on some forum and others not ? or maybe set for some users groups and others not? thank you again.
Just put in a conditional for forums in the showthread template.
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 01:34 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.04793 seconds
  • Memory Usage 2,321KB
  • 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_php
  • (2)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
  • (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