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

Home » FUDforum Development » Bug Reports » Generate printable PDF doesn't work for forum index
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Generate printable PDF doesn't work for forum index [message #23134] Sun, 06 March 2005 12:06 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
When enabled, "Generate printable PDF" works fine for message threads, but not for a forum index:

URL for message thread:
- http://mysite.com/forum/pdf.php?th=41416

URL for forum index:
- http://mysite.com/forum/pdf.php/p/1/1/42504/
- ERROR: "This feature has been disabled by the system administrator"

Best regards.

Frank
Re: Generate printable PDF doesn't work for forum index [message #23139 is a reply to message #23134] Sun, 06 March 2005 15:47 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
You need to enable the functionality in PDF managment admin control panel.

FUDforum Core Developer
Re: Generate printable PDF doesn't work for forum index [message #23141 is a reply to message #23139] Sun, 06 March 2005 16:29 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
OK thanks, if I enable "Complete Forum Output" it seems to work.

Would it be possible to remove this link automatically when "Complete Forum Output" is disabled?

Best regards.

Frank
Re: Generate printable PDF doesn't work for forum index [message #23142 is a reply to message #23141] Sun, 06 March 2005 16:39 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
You can try adding a conditional expression into the logic.

FUDforum Core Developer
Re: Generate printable PDF doesn't work for forum index [message #23144 is a reply to message #23142] Sun, 06 March 2005 16:58 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Will do - thank you very much.
Re: Generate printable PDF doesn't work for forum index [message #23148 is a reply to message #23144] Sun, 06 March 2005 18:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Here is the patch. Can it be committed to CVS?

diff -u thread_view_common.tmpl thread_view_common.tmpl.old
--- thread_view_common.tmpl     2005-03-06 13:00:03.000000000 -0600
+++ thread_view_common.tmpl.old 2005-03-06 12:33:38.000000000 -0600
@@ -18,7 +18,7 @@
 {SECTION: END}

 {SECTION: thread_mark_all_read}
-<div class="ar SmallText">[<a href="{TEMPLATE: thread_mark_all_read_lnk}" title="{MSG: thread_mark_all_read_desc}">{MSG: thread_mark_all_read}</a>]{IF: $FUD_OPT_2 & 2097152 && $FUD_OPT_2 & 268435456}{TEMPLATE: thread_printable_pdf}{ENDIF}{IF: $FUD_OPT_2 & 1048576}{TEMPLATE: thread_syndicate}{ELSE}{ENDI}</div>
+<div class="ar SmallText">[<a href="{TEMPLATE: thread_mark_all_read_lnk}" title="{MSG: thread_mark_all_read_desc}">{MSG: thread_mark_all_read}</a>]{IF: $FUD_OPT_2 & 2097152}{TEMPLATE: thread_printable_pdf}{ENDIF}{IF: $FUD_OPT_2 & 1048576}{TEMPLATE: thread_syndicate}{ELSE}{ENDI}</div>
 {SECTION: END}

 {SECTION: new_thread_link_lnk}


Best regards.

Frank
Re: Generate printable PDF doesn't work for forum index [message #23150 is a reply to message #23148] Sun, 06 March 2005 18:33 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
Something similar is in the CVS.

FUDforum Core Developer
Re: Generate printable PDF doesn't work for forum index [message #23151 is a reply to message #23150] Sun, 06 March 2005 18:47 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Brilliant - thank you very much!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Optimization bug again
Next Topic: Error Log Browser: out of memory
Goto Forum:
  

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

Current Time: Wed Nov 27 22:53:09 GMT 2024

Total time taken to generate the page: 0.02478 seconds