Advertisement:

Author Topic: Prevent Guests Printing  (Read 547 times)

Offline nidec

  • Semi-Newbie
  • *
  • Posts: 34
Prevent Guests Printing
« on: November 16, 2019, 06:01:34 AM »
Hi.
I dont mind guests being able to read my forum, but I want to remove the option for them to print pages since part of my forum is a beginners guide and I would rather they became members first
Im sure there must be a way, but can't find anything in the permissions that covers this

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,631
  • Gender: Male
    • Kindred-999 on GitHub
Re: Prevent Guests Printing
« Reply #1 on: November 16, 2019, 06:21:28 AM »
There is no way.
You can remove the "print" option from the display of the message....
But they can always use their browser print option.

The print button just removes a bunch of formatting and makes the display more printer friendly,  but you can not stop users from printing
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,676
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Prevent Guests Printing
« Reply #2 on: November 16, 2019, 10:21:39 AM »
You can do something like this in php/css but you would need to do $user_info['is_guest'] php code to add the code to the headers of SMF or not.
Code: [Select]
<style type="text/css" media="print">
* { display: none; }
</style>
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,631
  • Gender: Male
    • Kindred-999 on GitHub
Re: Prevent Guests Printing
« Reply #3 on: November 17, 2019, 10:53:43 AM »
Of course,  any user can just undo that by manually changing the css using the browser
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline nidec

  • Semi-Newbie
  • *
  • Posts: 34
Re: Prevent Guests Printing
« Reply #4 on: November 17, 2019, 11:14:25 AM »
Thanks all, I think I'll leave it as is.
I suppose even if I could do something,  they could always just take screenshots

Offline Kiriakos GR

  • Jr. Member
  • **
  • Posts: 206
  • Gender: Male
    • @ITTSB_EU on Twitter
Re: Prevent Guests Printing
« Reply #5 on: November 22, 2019, 04:09:00 AM »
Lets add this in the 2.0.16  Wish list among with an additional function of database restoration tool due the SMF.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Prevent Guests Printing
« Reply #6 on: November 22, 2019, 04:47:17 AM »
Let’s not. Partially because it’ll delay 2.0.16 even more and partially because it’s actually impossible to prevent people printing things, you can just hide the “print friendly view” but even that a user can make for themselves and SMF can’t stop it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,627
Re: Prevent Guests Printing
« Reply #7 on: November 22, 2019, 04:53:40 AM »
for the most part we are not adding features to SMF 2.0, especially those that are requested from the community.

Offline Kiriakos GR

  • Jr. Member
  • **
  • Posts: 206
  • Gender: Male
    • @ITTSB_EU on Twitter
Re: Prevent Guests Printing
« Reply #8 on: November 22, 2019, 08:01:36 AM »
for the most part we are not adding features to SMF 2.0, especially those that are requested from the community.

Ha .. lets gather around the fire once more ...   here we are talking about missing permission setting at  General Permissions - "Guests" board. 
Its just a line of code.
Guest printing option aloud content thief  and content creators HATE IT.

Database download due SMF this is a bad joke lasting for eight years now.
Why to use it when backup copy can not be trusted ?

You are all responsible for making us sound as Fools when we do complaining.

 

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,627
Re: Prevent Guests Printing
« Reply #9 on: November 22, 2019, 08:05:07 AM »
you can print either way, one line of code does not stop that.

we don't recommend anyone use the backup in the admin panel. it has been removed from SMF 2.1 for this reason.

Offline Kiriakos GR

  • Jr. Member
  • **
  • Posts: 206
  • Gender: Male
    • @ITTSB_EU on Twitter
Re: Prevent Guests Printing
« Reply #10 on: November 22, 2019, 08:11:55 AM »
you can print either way, one line of code does not stop that.

We do not fear regular users with a browser,  but the automated services which harvest entire forum in a few minutes, and store the copy by the excuse of Internet Achieves collection and they keep seven backup of it at data-room with out name and address. 

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Prevent Guests Printing
« Reply #11 on: November 22, 2019, 08:22:43 AM »
you can print either way, one line of code does not stop that.

We do not fear regular users with a browser,  but the automated services which harvest entire forum in a few minutes, and store the copy by the excuse of Internet Achieves collection and they keep seven backup of it at data-room with out name and address. 

Which has nothing to do with the print option. You can do that just fine without the print option. I’ve even helped write tools for doing just this in the past.

If you do not want it harvested, don’t make it available to logged out users.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,631
  • Gender: Male
    • Kindred-999 on GitHub
Re: Prevent Guests Printing
« Reply #12 on: November 22, 2019, 11:33:32 AM »
in  other words...  your requests to be added to 2.0.x are not going to happen. DEFINITELY not in 2.0.16 and almost certainly not in 2.0.xx

Your comments on printing are completely wrong and the suggestion that you made would not have any effect.

Your second suggestion regarding restore...   no. That would be a MAJOR code update and would require MAJOR testing...    and even more especially since database backup from the admin panel has been completely removed in 2.1.x
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,627
Re: Prevent Guests Printing
« Reply #13 on: November 22, 2019, 11:34:59 AM »
Your second suggestion regarding restore...   no. That would be a MAJOR code update and would require MAJOR testing...    and even more especially since database backup from the admin panel has been completely removed in 2.1.x

most of the time when you need to restore the database your forum is not working at all, so the feature would not work either.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,631
  • Gender: Male
    • Kindred-999 on GitHub
Re: Prevent Guests Printing
« Reply #14 on: November 22, 2019, 11:37:05 AM »
that too... :)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Kiriakos GR

  • Jr. Member
  • **
  • Posts: 206
  • Gender: Male
    • @ITTSB_EU on Twitter
Re: Prevent Guests Printing
« Reply #15 on: November 22, 2019, 12:51:03 PM »
Wonderful opinions,  lets agree then that SMF this is dead project not worth using. 

Last week I was had to give a fight with my new host so him to upload the dead PHP5.6 as it causes risk to server security,  I am now giving another fight so a solution to be found regarding Mod_security this blocking SMF.
Any reasonable web-host admin he will never disable a security protection so the SMF toy to function..  Therefore the offered advice was pointless and childish.

When I installed SMF for a first time, several years ago, I never thought that this is a stupid chatroom with a fancy appearance.

I have zero expectations from 2.0.16, basically it is impossible a bunch of poorly paid people to deliver something really worthy.   
Thank you for the productive conversation.   :laugh:

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Prevent Guests Printing
« Reply #16 on: November 22, 2019, 01:38:10 PM »
Given that SMF has supported 7.0 for multiple years now (since 2.0.14) I would suggest that you having to fight with your host is because you were doing something wrong.

Mod security is a major problem because most of the time it is actually misconfigured and this affects all platforms that run on the web host, not just SMF.

Also, no one has ever been paid to develop SMF, not in its entire history.

Mind you I won’t be sorry to see you go. I won’t have to read your inaccurate posts any more.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,631
  • Gender: Male
    • Kindred-999 on GitHub
Re: Prevent Guests Printing
« Reply #17 on: November 22, 2019, 03:50:41 PM »
Our comments were neither pointless nor childish. You demanded something (based on incorrect asusmptions) and we told you no, but we also told you why you were incorrect in the first place.

As for your opinion on pay having any relation to a worthy product....   ROTFL...    sure...

as Arantor says, no one has EVER been paid to develop or support SMF - despite people like you who we really should get paid to deal with...

2.0.16 has some much needed things - but probably nothing you care about (for mistaken reasons) -- so, to you it's not worth it, but to everyone else, it'll be a good update. :D

as for security... SMF still has the best security record of pretty much all of the free forum softwares out there. :P

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.