Topic on Project:Support desk

How to disable printing of wiki pages - Mediawiki 1.30

9
70.142.247.157 (talkcontribs)

Recently upgraded from Mediawiki 1.11 to Mediawiki 1.30. In 1.11, we customized Monobook (default skin) to have a different stylesheet which printed nothing. User had to log in and their default skip was another one which allowed printing.

With 1.30, it seems like

Any suggestion on how to accomplish this?

Ciencia Al Poder (talkcontribs)
2001:16B8:10BB:6300:FC59:22CF:B529:8735 (talkcontribs)

Am I the only one, who has, in thoughts, just copied thousands of pages into Word to quickly print them? The idea to prevent printing through CSS does not sound to me like it will work...

70.142.247.157 (talkcontribs)

Is there any other way to accomplish it?

This post was hidden by 105.67.130.174 (history)
Niyaz nizu16 (talkcontribs)

Hi

I tried to disable Print option for my entire Mediawiki page using MediaWiki:Print.css , but it doesn't work

And i used the css code

@media print {

html, body {

display: none; /* hide whole page */

}

}

Can you help me to find out the better solution to block users not to print the page

or else is there any extension there to block print page . please let me know

AhmadF.Cheema (talkcontribs)

Probably don't need the @media print here. Try with including the following in your MediaWiki:Print.css:

#content {
	display: none;
}
Niyaz nizu16 (talkcontribs)

I tried but it doesn't works , Can i get the better way for it since it is very mandatory to disable the content of mediawiki page from printing , Hope you understand Or else Is there any extension there to do it... Kindly please let me know

121.214.61.173 (talkcontribs)

It's impossible to prevent printing. Even if you made it so printing was disabled, or just resulted in empty content, people can just copy paste the content, then print it from there. Then even if you prevented copy paste (this isn't possible either), people could still take a screenshot of the page. Then even if you prevent taking screenshots (this isn't possible either), people could still take a photo of their screen.

In summary, preventing printing is physically impossible. If people can see the content, they can print it. You're wasting your time.

Reply to "How to disable printing of wiki pages - Mediawiki 1.30"