Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: spiros on February 13, 2025, 06:49:07 AM

Title: Make attachment visible to guests but not downloadable?
Post by: spiros on February 13, 2025, 06:49:07 AM
I unselected the "View attachments" permission for Guests, but there is no text in those posts notifying the guest that there is an attachment there, and that it is downloadable only by logged in members. Am I missing something?
Title: Re: Make attachment visible to guests but not downloadable?
Post by: Illori on February 13, 2025, 07:52:19 AM
that is expected. you would need a mod for what you want.
Title: Re: Make attachment visible to guests but not downloadable?
Post by: spiros on February 13, 2025, 08:43:20 AM
I am guessing this is different in 2.1
Title: Re: Make attachment visible to guests but not downloadable?
Post by: Kindred on February 13, 2025, 08:48:22 AM
No, this has always been the case,

By default, SMF never shows a user any action which they could not complete -- so, if guests can not view attachments, there has never been any indication that there IS an attachment to see...
Title: Re: Make attachment visible to guests but not downloadable?
Post by: dodos26 on February 15, 2025, 08:59:44 PM
https://www.simplemachines.org/community/index.php?topic=584313.msg4140484#msg4140484

Check it!

you do what I do but you don't provide a download link. And in the case of images I don't know if you want them to be visible or not, if you want them to be visible don't filter the images and give them a download link.
Title: Re: Make attachment visible to guests but not downloadable?
Post by: spiros on February 16, 2025, 04:49:50 AM
Thanks, I used the Diego Andrés instructions and I did not have the desired restust, ie some indication that there is an attachment there which can be downloaded by logged in members.
Title: Re: Make attachment visible to guests but not downloadable?
Post by: GL700Wing on February 16, 2025, 06:10:18 AM
Quote from: spiros on February 13, 2025, 06:49:07 AMI unselected the "View attachments" permission for Guests, but there is no text in those posts notifying the guest that there is an attachment there, and that it is downloadable only by logged in members. Am I missing something?
The Post and PM Inline Attachments (https://custom.simplemachines.org/index.php?mod=3770) add two permissions that can be used to prevent guests from downloading attachments (they can see a thumbnail/link but receive a message informing them they need to login view/download the attachment).
IMG_2756.jpeg

You can see it working for image/PDF attachments in the following message: https://ulti-owners.info/forum/index.php?topic=14.msg213#msg213