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)

Smitty 10-03-2005 10:57 AM

Quote:

Originally Posted by safwa_server
I installed this successfully, had the icon and opens PDF file but has no content at all!

I can't help, but are you doing this on the 3.5 release or does anyone know if it works with the 3.5 release?

safwa_server 10-04-2005 10:13 AM

Thank you for your attention

I have been researching for the problem source and found that Arabic is not yet supported in the encoding functions of PHP. I found that in file html2fpdf.php they use cp1252. Replacing that with cp1256 (for Arabic) will give error that it is not supported, and I confirmed that from PHP website itself.

Regards

Quote:

Originally Posted by Smitty
I can't help, but are you doing this on the 3.5 release or does anyone know if it works with the 3.5 release?


Lea Verou 10-05-2005 04:07 AM

Quote:

Originally Posted by Loukrhtia
What about encoding??
I have ISO 8859-7 (greek) and the pdf is like it's on a different encoding although I set to 8859-7 in my browser!

Any ideas...anyone?? It can't be that difficult!!

safwa_server 10-05-2005 06:04 AM

The best thing, I guess, is to join PHP development team and work with them on supporting the language.

Lea Verou 10-05-2005 06:07 AM

Quote:

Originally Posted by safwa_server
The best thing, I guess, is to join PHP development team and work with them on supporting the language.

I hope you're joking! My php knowledge is close to zero!

PS: If php itself didn't support greek then there wouldn't be any greek vBulletin forums, would they? ;)

Prodimysterio 10-05-2005 01:59 PM

Another great addition! Thank you for this.

Lea Verou 10-06-2005 09:12 PM

I've seen that the person who made the hack hasn't replied here since july so it's quite unlikely that we get support...
Will probably install the other hack for downloading threads... :(

Lea Verou 10-12-2005 12:53 PM

The funny thing is that this hack is supposed to be "supported". :(

Anyway... When I try to open a thread as PDF I get the message:
FPDF error: GIF parser: unable to open file http://www.e-steki.com/forum/images/blank.gif

Any ideas??

Ben? 11-13-2005 05:03 PM

Nice hack. *installed*

I add a template modification.
If you browse with inactive JavaScript-support you have to modify the SHOWTHREAD template second times respectively at two places.

So, search
Code:

<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p">$vbphrase[show_printable_version]</a></div>
and add below
Code:

                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/pdf.gif" alt="$vbphrase[download_pdf_version]" vspace="1" /> <a href="pdfthread.php?$session[sessionurl]t=$threadid">$vbphrase[download_pdf_version]</a></div>
It works fine in my forum. If you want .. test it ;-).

With regards,
Ben.

stutefc 11-15-2005 02:38 PM

I just get the following url when I click on the download PDF file download icon

http://www.irishleagueforums.net/for...ad.php?t=44733

Then blank page...any ideas folks


All times are GMT. The time now is 02:50 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.01192 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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