vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Save Page as PDF (https://vborg.vbsupport.ru/showthread.php?t=287994)

m!dn!ght 09-17-2012 10:00 PM

Save Page as PDF
 
1 Attachment(s)
hi :)
with this mini change you can add a "save as pdf button" in every single Page

step 1 in SHOWTHREAD template find below line

Code:

{vb:raw template_hook.threadtoolbar}

Step 2 copy and paste below codes after that

Code:

<div style="float:left;">
<!-- PDF Converter Button BEGIN By Sgwgo -->
<script type="text/javascript">
var
pdfbuttonlabel="Save page as PDF"
</script>
<script src="http://www.web2pdfconvert.com/pdfbutton2.js" id="Web2PDF" type="text/javascript"></script>
<!-- PDF Converter Button END By Sgwgo -->
</div>

step 3 Save template

Live Demo

all right reserved for www.web2pdfconvert.com

Mr_Running 09-18-2012 05:27 PM

Interesting :)
Hello midnight, this needs to be marked as External Content

m!dn!ght 09-18-2012 06:02 PM

Quote:

Originally Posted by Mr_Running (Post 2366489)
Interesting :)
Hello midnight, this needs to be marked as External Content

hi :D
thank you
marked

abdobasha2004 09-19-2012 10:50 PM

new idea, useful for tips and tricks posts, and useful for this website : http://www.web2pdfconvert.com/ :)

Alan_SP 09-20-2012 10:27 AM

Actually, this has wrong title. This template change doesn't save thread, but page. Whole thread could be many pages and user would need to save each page manually.

There's a mod that saves whole threads as txt.

ahobilam 09-22-2012 11:52 AM

My version of VB:4.2
I did it like below:
Edit Templates
Printable Thread template->printthread

find: <ul id="postlist">
Pasted the given code above this.
So,
now it is possible to make pdf of the content of entire thread easily.
Thanks.

xixxon 09-24-2012 03:25 PM

Good idea ! :)

Dorgham 02-25-2013 04:51 PM

Great idea and are being implemented now :)


All times are GMT. The time now is 03:30 PM.

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.02283 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete