By Altitudes on Wednesday, 23 March 2016
Posted in Technical Issues
Likes 0
Views 520
Votes 0
Hello

An event admin cannot post in the event, unless he is himself a participant.

This is an issue, in particular in group events. When an event is created in a group, group admins become admins of the event (which is a very good thing). But as they are not attending the event, they cannot post in the event...

.Fixed in ES 1.4.10
Hi Altitudes... Please take a look (and vote!) here... http://stackideas.com/voices/easysocial/item/1069

It also includes a link (in the comments) to the hack that StackIdeas team gave me to allow posting on the timeline for all logged in... just a slight variation I'm guessing could change this to just the SuperAdmin.

I think it's a big issue and hope we'll see the hack provided already incorporated into the core code once the current priority of EasyDiscuss is out the way for the team :-)
·
Wednesday, 23 March 2016 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Thanks for sharing it here.
·
Monday, 28 March 2016 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Andy's feature request is quite different from my issue (even if somehow related). Can you please reply to my issue precisely?

Thank you
·
Monday, 28 March 2016 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

I'm sorry for the confusion. Please replace the attached file in: ../components/com_easysocial/views/events/view.html.php and see how it goes.
·
Monday, 28 March 2016 19:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

I reviewed you code modification, and you are checking if the user is the creator of the event, whereas you should test if he is a administrator of the event...
·
Tuesday, 29 March 2016 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you try again with the attached file?
·
Wednesday, 30 March 2016 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately, this is not working

Despite I am connected with a user account who is an administrator of the event, I cannot see the status box to post some message in the event.
·
Wednesday, 30 March 2016 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

Can you specify which group that can be used to replicate this on your site? I want to directly tweak this on your end.
·
Thursday, 31 March 2016 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Any group...

The scenario is:
1- Make yourself (user1) an administrator of the group.
2- With another account (user2), create an event in the group. User1 will be automatically made administrator of the event.
3- With user1, try to post in the event. You can't, despite you are an administrator of the event.

User1 and user2 need to be "normal" users, not administrators of the site. And have the Profile Type "Adhérent" or "Découverte" (as "Visiteur" is an ESAD Profile Type).
·
Thursday, 31 March 2016 16:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Please replace the attached file in:
../administrator/components/com_easysocial/includes/event/event.php
../components/com_easysocial/views/events/view.html.php
and see how it goes.
·
Thursday, 31 March 2016 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Still not working
·
Thursday, 31 March 2016 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

I want to replicate this on your site since my local is working after applied the tweak. In order to do that, I need your help to provide us the information such as:
- User1 and User2 access details
- Name of that particular group
- Name of the event

We really want to help you to solve this as fast as possible.
·
Friday, 01 April 2016 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, sorry.

Event "test admin" in group "Altitudes Paris" can be used to test. User1 "Altitudes" is an admin of the event (and of the group). Event was created by user2 "Nathanaël".

User1 "Altitudes" cannot post in the event. You can change this user password if you want to test.
·
Friday, 01 April 2016 16:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Please download the attached file and upload it into /components/com_easysocial/views/events/ . I have just tested this locally and as a normal user and as long as the user is the group admin, they will be able to post updates on the event of a group.
·
Sunday, 03 April 2016 16:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Unfortunately it does not work.

In this same file view.html.php I tried the following which works perfectly (and is exactly what I was expecting ):

Replace
        // Only allow users with access to post into this event
if ($guest->isGuest() || $this->my->isSiteAdmin()) {
$stream->story = $story;
}

by
        // Only allow users with access to post into this event
if ($guest->isGuest() || $this->my->isSiteAdmin() || $event->isAdmin()) {
$stream->story = $story;
}
·
Sunday, 03 April 2016 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I tested the codes locally and it does work as long as the user is a group admin. Is the user a group admin?
·
Sunday, 03 April 2016 21:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I tried with both group owner and an administrator of the group, e.g. (on my dev site) Altitudes and Foxies users for group "Altitudes Paris" and event "Test Admin".

Honestly, since group owner and admins are automatically made administrator of an event created in the group, my vote goes to the code modification I suggested
·
Monday, 04 April 2016 05:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, yeah you are right will apply a similar change internally
·
Monday, 04 April 2016 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

This probably is my fault, but there is an mistake in the modification you introduced in components/com_easysocial/views/events/view.html.php after we had this discussion. I think the following correction should now be done:

Replace
        // Only allow users with access to post into this event
if ($event->isAdmin() || $guest->isGuest() || $this->my->isSiteAdmin()) {
$stream->story = $story;
}

by
        // Only allow users with access to post into this event
if ($guest->isAdmin() || $guest->isGuest() || $this->my->isSiteAdmin()) {
$stream->story = $story;
}

Thanks
·
Monday, 23 May 2016 08:22
·
0 Likes
·
0 Votes
·
0 Comments
·
$event->isAdmin() is a shorthand for $guest->isAdmin() and I don't see why this is a problem?
·
Monday, 23 May 2016 11:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes you're right, I was misled in my tests while trying to find an explanation to the following issue:

When an event admin goes to the event page, on my site he gets the event details first. If he clicks the "Timeline" menu, then the status box is no available. He needs to reload the page before the status box is available.

I let you investigate this to find the right explanation
·
Tuesday, 24 May 2016 02:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, I get what you mean now Will add this fix in the next release of EasySocial. I will lock this thread for now to avoid confusions in the future since this thread is getting really lengthy.
·
Wednesday, 25 May 2016 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post