Thread Starter
Hanno
(@bsoftde)
Now that I have found the cause of the reported problem (sorry, my mistake), I would like to know how I could somehow permanently activate the GET parameter “admin_mode” in the frontend. When I click on “All events” and then enter a search term for filtering, the software switches back to “My events” and I get no results for that user (because he/she didn’t generate any). I hope I have described the behaviour clearly enough … Thanks.
Create a role for the people that can edit events. You can use the Members plugin to create new roles. Then go to Events Settings in the General tab select User Capabilities then give the new role the capabilities you want from the following list:
publish_events
delete_others_events
edit_others_events
delete_events
edit_events
read_private_events
publish_recurring_events
delete_others_recurring_events
edit_others_recurring_events
delete_recurring_events
edit_recurring_events
publish_locations
delete_others_locations
edit_others_locations
delete_locations
edit_locations
read_private_locations
read_others_locations
delete_event_categories
edit_event_categories
manage_others_bookings
manage_bookings
upload_event_imagesThen assign the new role to the people you want to allow the editing of events. Then they can go to the “Event Form” page and edit other people’s events. They can select the “All Events” tab instead of the “My Events” tab to see all the events.
Here’s the documentation on this: https://wp-events-plugin.com/documentation/user-event-guest-submissions/
Thread Starter
Hanno
(@bsoftde)
Thank you for your quick reply.
I had already created an additional role, the cause of the “problem” initially was that I had hidden the selection between all and own events because the planning of responsibilities was different at that time, so editing the others’ events was not needed then. In the end I had simply forgotten about this – sorry, my mistake.
Afterwards, the display worked, but whenever I tried to narrow down the search using the search field, the selection “all events” (admin_mode) automatically changed to “own events” again.
I have now found out that the reason for this is a missing hidden field “admin_mode” in templates/tables/events.php (see lines 41 ff.).
The missing code that would have to be added should somehow look like this:
<?php if( !empty($_REQUEST[‘admin_mode’]) ): ?>
<input type=“hidden” name=“admin_mode” value=”<?php echo esc_attr($_REQUEST[‘admin_mode’]); ?>” />
<?php endif; ?>
With this additional code everything works fine. Maybe you would want to fix this bug in a future version.
Thanks again for your work, this is really a great plugin.
