Hi @Thecoalman,
Thanks for the suggestion, however as I mentioned, the idea is to only prevent specific attachments from being downloaded. That is, I am happy for images to be shown but I want the user to be logged to access larger files such as zips. The administration options seems to be an all-or-nothing configuration and this is not what I would like.
As for the users finding a workaround, that's not a big issue for me if there are users advanced enough to figure it out. The attachments aren't secret but I do want to encourage participation in the forum rather than letting users freely use my bandwidth for these large attachments. Images of course are not in the same category as a zip file and they should be able to be viewed openly, otherwise the thread will not make any sense.
So far, I feel that my code is close to what I need, it's just the "if" condition that isn't working for some reason.
Thanks for any help to solve the problem.
Thanks for the suggestion, however as I mentioned, the idea is to only prevent specific attachments from being downloaded. That is, I am happy for images to be shown but I want the user to be logged to access larger files such as zips. The administration options seems to be an all-or-nothing configuration and this is not what I would like.
As for the users finding a workaround, that's not a big issue for me if there are users advanced enough to figure it out. The attachments aren't secret but I do want to encourage participation in the forum rather than letting users freely use my bandwidth for these large attachments. Images of course are not in the same category as a zip file and they should be able to be viewed openly, otherwise the thread will not make any sense.
So far, I feel that my code is close to what I need, it's just the "if" condition that isn't working for some reason.
Thanks for any help to solve the problem.
Statistics: Posted by kebev — Tue Sep 03, 2024 10:53 pm