Welcome, Guest
Username: Password: Remember me

TOPIC:

[HOWTO] Allow one usergroup to edit frontend attendees list 1 year 2 months ago #28159

Va bene per l'italiano grazie!:cheer:
sono giuste le prime due cose che scrivi.
Il bottone per iscriversi si può lasciare, tanto gli eventi sono tutti impostati come in figura 1, quindi nessuno può auto iscriversi (basta non usare gli inviti).

Fig. 1


Quello che mi serve lo vedi nella figura 2: tutti e solo i membri del gruppo JEM Editors devono poter iscrivere i partecipanti dal front-end.

Fig. 2


Grazie, ciao!
Attachments:

Please Log in or Create an account to join the conversation.

[HOWTO] Allow one usergroup to edit frontend attendees list 1 year 2 months ago #28167

in the event details view the attendees part and the registration part appear, when there is the possibility to register for an event (as a joomla user in the site).
For the author, the admins and the groupmembers (who are allowed to edit the event) is an open link to the attendees manager (beneath the number of booked places)
When the attending is only for invited users, this link to the attendees manager is open for admins and the groupmembers, only when they are invited (and/or gave a feedback (attending/not-attending) . For the event author the link is open even if he is not (yet) invited.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.

[HOWTO] Allow one usergroup to edit frontend attendees list 1 year 2 months ago #28202

// Check if user can edit attendees
		$isAuthor = $userId && ($userId == $item->created_by);
		//$permissions->canEditAttendees = $isAuthor;
		//new logic: user can edit attendees if he can edit events, suggested by jojo12 
		//in addition you must hide in models/attendees.php line 275 $where[] = ' a.created_by = '.$this->_db->Quote($user->id);  
		$permissions->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by);
		$edit_att->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by); // M59S (added)

and line 230/231: replace
//$this->showAttendees = (($g_reg == 1) || (($g_reg == 2) && ($e_reg & 1))) && ((!(($e_reg & 2) && ($g_inv > 0))) || (is_object($registration) || $isAuthor));
with
$this->showAttendees = (($g_reg == 1) || (($g_reg == 2) && ($e_reg & 1))) && ((!(($e_reg & 2) && ($g_inv > 0))) || (is_object($registration) || $isAuthor) || $edit_att);

Thanks to MSpina
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.

[HOWTO] Allow one usergroup to edit frontend attendees list 1 year 2 months ago #28204

:)

Please Log in or Create an account to join the conversation.

Time to create page: 0.510 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......