vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Download Thread as PDF (https://vborg.vbsupport.ru/showthread.php?t=91562)

Andreas 07-05-2005 02:52 PM

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 :)

Marco van Herwaarden 07-05-2005 03:14 PM

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. :D

Andreas 07-05-2005 03:18 PM

I know. But when it comes back the change can be applied ;)

Frenck 07-05-2005 05:39 PM

Version 1.10 out!

Thx to KirbyDE this hack now can be marked as an extension!

jesus likes pie 07-06-2005 05:31 PM

1st of all I dont get the image to display, and 2nd, when i click it, the pdf is blank...

lazorde 07-06-2005 05:52 PM

tahnxxx for hack

bat he dont support arabic

voclain 07-08-2005 01:58 PM

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

ThorstenA 07-08-2005 02:09 PM

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?

red_baron2000 07-09-2005 12:49 AM

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.

ThorstenA 07-11-2005 07:12 AM

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.


All times are GMT. The time now is 05:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02536 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete