By Lili Marchand on Saturday, 11 October 2014
Posted in Groups
Likes 0
Views 1.2K
Votes 0
Hi,

I would like to let users erase their messages on groups. It is for exchanging stuff or sale like garage sales. But they want to be able to remove their message so people wont ask them.

I can do it as an administrator but members can't. See attach file for the image

Thanks
Hello all,

Regarding the issue where owner cannot delete their own stream item for groups, attached the proper fix to address this issue. Please download the stream.zip file and extract the file you should see two folder, 'includes' and 'controllers'.

1. Copy the file from 'includes/stream.php' into 'JOOMLA/administrator/components/com_easysocial/includes/stream/' and replace the existing stream.php file.

2. Copy the file from 'controllers/stream.php' into 'JOOMLA/components/com_easysocial/controllers/' and replace the existing stream.php file.

The stream deletion should work correctly
Again, if the user is not a group admin, then you will need to configure the profile type -> access -> stream and to allow stream delete

Let me know if you guys still having issue deleting group stream items

Hope this help and have a nice day
Sam
·
Monday, 13 October 2014 16:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Great observation, I completely agree with this. The user technically owns the post, so they should have the right to remove their posts they make on group walls.
·
Saturday, 11 October 2014 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lili,

I am really sorry for the delay of this reply as it is a weekend for us here.
Can you try apply this temporary fix in the following code from this file -> JoomlaFolder\components\com_easysocial\themes\wireframe\stream\default.item.php

//LINE 93
<?php if($stream->deleteable) { ?>

//Replace with
<?php if((FD::user()->getAccess()->allowed('stream.delete', false)) && (FD::user()->id == $stream->actor->id) || FD::user()->isSiteAdmin()) { ?>

And make sure that you have enable this option Allow delete single stream item - YES (Check my screenshot below.)
By the way, I will consult with our developer and see how it goes?
·
Saturday, 11 October 2014 13:53
·
0 Likes
·
0 Votes
·
0 Comments
·
The delete option appeared after adding that mod, but it does not delete. This is what it shows after hitting delete:



Perhaps I changed the code wrong?
·
Saturday, 11 October 2014 15:47
·
0 Likes
·
0 Votes
·
0 Comments
·
hello alex
i have the same problem and i replaced the code you have given us to change. the deleted this item link has started showing but it does not delete the item to be deleted from the group

i have also posted some snap shots of the same too
·
Saturday, 11 October 2014 17:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks guys for the try I will try tonight but as I see it won't work
·
Saturday, 11 October 2014 23:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I change my default theme because it was Frosty, just to be sure and I have the same error as these gentlemen

I don't have the message as you can see in images attached

Thanks
·
Sunday, 12 October 2014 04:19
·
0 Likes
·
0 Votes
·
0 Comments
·
And sorry I know it is the weekend but during the week I don't have time to test things like that.

Really appreciated
·
Sunday, 12 October 2014 04:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks sam for the fix. its working perfectly
·
Monday, 13 October 2014 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Yess ! It works perfectly !! Thanks a lot ! My users are gonna be happy !!

Have a great day!
·
Monday, 13 October 2014 21:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for you guys feedback, this fix will be including in next release version.
·
Monday, 13 October 2014 22:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Excellent that was my next question lolll
·
Tuesday, 14 October 2014 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
lol Have a nice day
·
Tuesday, 14 October 2014 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post