Hello,
When i try to create an event through a groupe ("club" on my website) , access is refused and it doesnt take me to the right group.
For instance, i log in as the admin of the group " Lesbians love tech" and i try to create an event and it takes me to Land Art group :(
Can you please help me to understand?
Thanks,
Anais
Hi, Anais.
I need to replicate that issue on your site, so please, edit your first post and add admin group credentials to Miscellaneous box.
Hi, Anais.
Is "admin of the group" the same user as User: Administratrice that credentials we have?
Hi, Anais.
When I enter to events trough group, there is no "Create event" button.
Did you removed it? I tried in "Lesbians love tech" group.
Hi, Anais.
No, this is create Group button. I'm asking about creating Events button (when in group):
prntscr.com/517bg2
This is how it looks on my site:
prntscr.com/517bpx
Note Import Event and Create Event buttons.
Do you have any customizations on this page or restrictions in create events feature?
Hi Anais,
only group admin can create event.
this group: http://[domain]/index.php/les-clubs/viewgroup/6-land-art admin is Super User
so only Super User can create events on this group. group admin is not site admin, but who created that group / group owner
that link (yellow circle) is from the template it self. seem that template not properly put that code link.
for create event link, by default that link will appear at options item
to see default template you can put ?template=0 and the end of URL
http://[domain]/index.php/les-clubs/viewgroup/6-land-art?template=0
please provide me FTP access detail I will fix that link for you. that link must appear only for group admin.
Regards,
Albert
Hello Albert,
I have edited my first post so you can help me to fix it.
Just for my understanding: when i will update Jomsocial in next version, will this bug reappear please?
Thank you for your help,
Anais
Hi Anais,
Here the fix:
1. at /templates/shape5_vertex/html/com_community/groups.viewgroup.php
2. at line 982, changing it from
<a onclick="" href="/index.php/les-sorties/create?groupid=6">| Créer une sortie</a>
<?php if ( ($eventPermission == 1 && $isAdmin) || ($isMember == 2 && $isAdmin) || ( $eventPermission == 2 && $isMember == 1 )) { ?>
| <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=create&groupid=' . $group->id);?>"><?php echo JText::_('COM_COMMUNITY_GROUPS_CREATE_EVENT'); ?></a>
<?php } ?>