Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.0k views
in Plugins by
recategorized by

Here's a basic print preview button plugin:

https://github.com/NoahY/q2a-print

Here's what it looks like:

and here's what you get:


it's probably still pretty rough, but it does the job, anyway.

by
Is there a need for this? Browsers are normally OK at printing pages. What about using a print stylesheet instead?
by
Yes, that is part of what I have done, simplify the styleshet, but on top of that I removed all the buttons, navigation, widgets, and extraneous styling.  There is no "need" for it, but you can compare for yourself the difference between printing an ordinary question page and printing a print-view page.  There is quite a difference - browsers just print what is there.  If you don't mind printing the navigation, avatars, widgets, etc, then by all means, don't install this :)
by

Hello I like the Print Plugin and have found it effective but I get the following error in the Print page after clicking the button.

Any ideas what the problem is?

Notice: Use of undefined constant qa_html_theme_layer_8 - assumed 'qa_html_theme_layer_8' in /home/a3227594/public_html/qa/qa-include/qa-app-format.php(1265) : eval()'d code on line 118

 

Versión Question2Answer: 1.4.3
Última versión Q2A:  
Versión de la Base de Datos Q2A: 30
Versión PHP: 5.2.17
Version MySQL: 5.1.57

 

by
no idea... pretty strange; anyway, it's not an error... as it says, it's a notice.  Always turn notices off on production sites.
by
Hello NoahY thank you for the quick response.  As you can see I´m starting to learn php and didn´t know about error control.

I have several sites that state to put this in your php applications "config" file.

error_reporting(0);
@ini_set(‘display_errors’, 0);

I assuming then that this would go into the qa-config.php file at the beginning.

Thanks again.

Please log in or register to answer this question.

...