FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » HTML entities in PDF title
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
HTML entities in PDF title [message #27810] Tue, 27 September 2005 09:52 Go to next message
math_adm is currently offline  math_adm   France
Messages: 126
Registered: September 2003
Location: France
Karma: 0
Senior Member
Hi

when I create a PDF with the contents of one of my forums, I get the HTML entities that compose the tile of my forum as plain text in the footnote in each PDF page : ' and é

More-or-less related question. I need to put a single quote in the title of my forum (magicquote is on and I cannot change that). I use ' and it's OK, however, if I put \' (like in the french msg file), it appears litterally in the window title. And of course, if I put just the single quote, the page remains blank (I expected that).

More related question : the PDF generation from a forum does not work, I only get a blank page. However, PDF generation from a thread does work.

I looked into the (french) msg file and found a lonely (unescaped) quote. I changed it to \, and when I try to generate PDF from a whole forum, I get these error messages (I was running my test forum from EasyPHP) :

(c:\program files\easyphp1-8\www\forum_math\pdf.php:213
c:\program files\easyphp1-8\www\forum_math\pdf.php:273
c:\program files\easyphp1-8\www\forum_math\pdf.php:1379
) 1146: La table 'forum_math.fud26_tv_' n'existe pas
Query: SELECT seq FROM fud26_tv_ ORDER BY seq DESC LIMIT 1
_GET: array ( 'frm' => '23', 'page' => '1', 'rid' => '206', 'S' => '82d72386c61d39f2c8b23df04250c6be', )
Server Version: 4.1.9-max
[Referring Page] http://127.0.0.1/forum_math/index.php?t=thread&frm_id=23&rid=206&am p;S=82d72386c61d39f2c8b23df04250c6be

However, PDF generation from threads continues to work.

I'll post the fixed msg file in the translations forum.

Regards
Re: HTML entities in PDF title [message #27813 is a reply to message #27810] Tue, 27 September 2005 13:29 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Are you using pdf.php.t version 1.49? As far as I can tell version in the CVS has an explicit check to prevent such an error.

FUDforum Core Developer
Re : HTML entities in PDF title [message #27815 is a reply to message #27810] Tue, 27 September 2005 13:43 Go to previous messageGo to next message
math_adm is currently offline  math_adm   France
Messages: 126
Registered: September 2003
Location: France
Karma: 0
Senior Member
No, I have

* $Id: pdf.php.t,v 1.47 2005/08/27 17:13:51 hackie Exp $

My forum recently upgraded from 2.6.0 to 2.7.2 (without trouble Very Happy ), but I didn't modify anything by hand. Is this check new to the 2.7.3Rc1 release ? If so, I'll have to upgrade again.

Would it solve also the thing about HTML entities in the generated PDF ?
Re: Re : HTML entities in PDF title [message #27816 is a reply to message #27815] Tue, 27 September 2005 13:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
No, i haven't done anything about HTML entities. Can you please clarify where precisely do they appear so that I can try to replicate the problem.

FUDforum Core Developer
Re : HTML entities in PDF title [message #27817 is a reply to message #27810] Tue, 27 September 2005 14:01 Go to previous messageGo to next message
math_adm is currently offline  math_adm   France
Messages: 126
Registered: September 2003
Location: France
Karma: 0
Senior Member
My forum's name needs the character "é", so, in the main administration panel, I put é in place of that "é", and all goes fine with the forum itself.

Now, if I read a thread, I can generate printable PDF from it. In the generated PDF, there is a footline that says :

Page 1 of 1 ---- Generated from <name of the forum with &eacute;> by FudForum 2.7.2.

This is where the HTML entity for "é" comes literally : I see "&eacute;" in there instead of "é".

I'll just PM such a PDF file for you to see.
Re: Re : HTML entities in PDF title [message #27826 is a reply to message #27817] Tue, 27 September 2005 20:08 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This should take care of the entities:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7348


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Upgrade script fails when SQL password contains $
Next Topic: V2.7.0RC1 - thread not displayed in forum list or navigator
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 10:43:24 GMT 2024

Total time taken to generate the page: 0.02403 seconds