Home › Forums › Guestbook Add-On › Image upload without role
Tagged: image upload
- This topic has 8 replies, 2 voices, and was last updated 1 year, 9 months ago by Frank.
-
AuthorPosts
-
25 October 2022 at 21:50 #8483FrankParticipant
How can I make use of an Image Upload of users/visitors into their entries without having a user role (like editor etc.)?
Thanks in advance.
Frank
25 October 2022 at 23:41 #8484Marcel PolKeymasterHi Frank,
I am sorry, but I think that idea is unwise and I am not planning to help with that.But just to ask, how would you want it to be relatively secure against unwanted images?
There is an email notification, but are you sure you will keep track of everything?26 October 2022 at 07:47 #8486FrankParticipantHi Marcel,
thanks for answer. In last instance I am looking for an orbituary plugin, so people can post the text related to the person which died and a related picture. The guestbook worked for that – only image upload was the problem. Cannot find anything similar.
Best, Frank
28 October 2022 at 12:02 #8490Marcel PolKeymasterHi, maybe I sounded a bit strict.
I am thinking about adding custom capabilities. That would make it easier to customize acces to functionality.
Currently the upload uses a standard WordPress capability. With a plugin like User Role Editor, you can add that capability to users with the role of Subscribers. However, this would make the whole media library be available to them.
With a custom capability this should be only for the media upload in the guestbook.Even then, you want to keep a tight leash on your users on what they upload.
2 November 2022 at 13:12 #8494FrankParticipant10 November 2022 at 18:22 #8513FrankParticipantAny news?
11 November 2022 at 10:00 #8518Marcel PolKeymasterHi Frank,
Yes, I just released 2.5.0 of the Add-On. It should offer a custom capability forgwolle_gb_upload_files
.
With a plugin like User Role Editor, you can add that capability to Authors and Contributors and Subscribers (or any role desired).Then when loading the form as a user with such a role, you should be able to upload images.
All without full access to the Media Library.Please be aware that you want strict moderation on these images in the Media Library. That is what the notifications are for.
Also, if users are not logged in, you cannot assign any capability to them. Only with a user account does someone have a role with capabilities.
By the way, there will be an admin notice about upgrading the main plugin. That should be fine, I will release that later, so people can first update the add-on.
12 November 2022 at 10:27 #8523FrankParticipantHi Marcel, thanks for the Info/ Work. Will Check this next week..
Best Frank
14 November 2022 at 12:16 #8526 -
AuthorPosts
- You must be logged in to reply to this topic.