Hello .. Good evening.
I have two problems:
First, I need to create a link called "my events" in the main menu, which when the user accesses, only view the events that he has access to. I made an event with a defined group, but when I log in with a user that is not part of that group, the event appears to me in this list (event - list menu). When I access this event, then the system gives a message that I do not have permissions. I would like events that were not in my group not to appear in the listing.
Second, I would like to see if this is possible: I made a gallery, I defined a group to access it and a password. The idea is that when creating the event, a group with the same name of the event is created so that when the user receives the link to access the gallery (mysite.com/mymenu/event/nameofmyevent), if it is logged in, Request the event password. If it is not logged in, then it logs into the site, logs in and then enters the page asking for the event password (this breadcrumbs already exists, even for a non-group user). If the user has the link to access the event and has the password, he can see the event. The step would be that after it enters the password, if it is not part of the group defined in the event, then it is added to this group, through the command JUserHelper :: addUserToGroup ($ user_id, $ group_id);
Sorry for the horrible translation of Google Translator. I'm Brazilian and I do not write English very well.
I have two problems:
First, I need to create a link called "my events" in the main menu, which when the user accesses, only view the events that he has access to. I made an event with a defined group, but when I log in with a user that is not part of that group, the event appears to me in this list (event - list menu). When I access this event, then the system gives a message that I do not have permissions. I would like events that were not in my group not to appear in the listing.
Second, I would like to see if this is possible: I made a gallery, I defined a group to access it and a password. The idea is that when creating the event, a group with the same name of the event is created so that when the user receives the link to access the gallery (mysite.com/mymenu/event/nameofmyevent), if it is logged in, Request the event password. If it is not logged in, then it logs into the site, logs in and then enters the page asking for the event password (this breadcrumbs already exists, even for a non-group user). If the user has the link to access the event and has the password, he can see the event. The step would be that after it enters the password, if it is not part of the group defined in the event, then it is added to this group, through the command JUserHelper :: addUserToGroup ($ user_id, $ group_id);
Sorry for the horrible translation of Google Translator. I'm Brazilian and I do not write English very well.