Welcome, Guest
Username: Password: Remember me

TOPIC:

[HOWTO] Allow one usergroup to edit frontend attendees list 4 years 11 months ago #23961

Hi, I will try with printscreens but I am using bootstrap css, so perhaps the look is other on your screen.

You go in frontend to an event (eventview).
On the left image you see the registration part if you are not logged in and the settings are like all can see the attending users. Then the number of booked places is black (has no link)
First of all you need to registrate yourself for this event! (I am not sure)
Then the image looks like on the right and the number of booked places has (is in my case orange) a link to the attendees view. You click on it and see the list with attendings, non-attendings invited, waitinglist and the comments.
with the plus icon on top right you can add users.....
Hope you can find this.
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".)
The following user(s) said Thank You: Kralyk

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

[HOWTO] Allow one usergroup to edit frontend attendees list 4 years 11 months ago #23962

Jojo12, you great.

Heureka.
I did not know that in the event view, the number of attendees is a link to that table. It never occurred to me. I will change the description of this number to make it clearer for others.

Thanks, it looks like it works as I need it.
The following user(s) said Thank You: jojo12

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

Last edit: by Kralyk.

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

Hi everybody, I'm struggling again with this topic :S
Both the mentioned scripts have the amendments jojo12 suggested, but the site behaviour seems to ignore them.
Three years is a lot of time, could it be that some other updates caused this?
I'm running JEM 2.3.0 on Joomla 3.9.25 and CB 2.5.0
Many thanks for any hint!
Marco

We need access for all users who have the permission to edit events (=admins and JEM group members of the associated group (in categorie)
So I tried in views/event/view.html.php about line 192
// Check if user can edit attendees
		$isAuthor = $userId && ($userId == $item->created_by);
		//$permissions->canEditAttendees = $isAuthor;
		$permissions->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by);
in addition comment out about line 278
components/com_jem/models/attendees.php, and comment out line 278.
// $where[] = ' a.created_by = '.$this->_db->Quote($user->id);
EDIT:
Like that it seems, each member of the associated group can enter in attendees view and add in joomla registrated users to the attendees list, in addition he can see the comments.
EDIT 2:
Please hold in mind, that this is a hack (view.html.php). You have to renew it everytime you update!
EDIT 3:
in attendees view you can't edit attending users. You can switch them between waitinglist and attending list. The rest you have to delete and create an other one.

The following user(s) said Thank You: jojo12

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 #28155

Hi, finally I had time to try your suggestion: and it works for me.
The only problem, I think is, that you won't know, who exactly added the attendees. It needs a very confidential group who are allowed to use this possibility.
When only the event owner and the attendee can register, there are only 2 persons to control.

My suggestion (if this would be integrated into the core JEM): It needs a button in settings which switch between this 2 possibilities (only event owner vs. all group members).
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.

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

I beg your pardon, jojo12, I think I didn't explain myself clearly. My site should work like this:
  • users must not be able to self-register to events; instead...
  • ...only the members of a JEM group must be allowed to register users in the event
The thing is that the modification you made three years ago, which is exactly what I need:

"jojo12 wrote: We need access for all users who have the permission to edit events (=admins and JEM group members of the associated group (in categorie). So I tried in views/event/view.html.php about line 192..."

doesn't work. It seems it's just ignored, I mean that at the end only the event creator can edit attendees.
Please let me know what could be useful for you to analyze the issue.
Many thanks in advance.
Marco

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 #28158

Ciao Marco, forse è meglio scrivere in italiano (Sono Svizzero e normalmente parlo tedesco).
Se capisco giusto, la funzione giusta è che le persone che vogliono partecipare non possone iscrivirsi da solo.
Sono solo le user dello gruppo (amministrativo) che possono aggiungere nuovi partecipianti.

Allora bisogna nascondere il buttone per iscrivirsi? E giusto?
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.

Time to create page: 0.370 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......