By Edgar on Wednesday, 18 January 2017
Posted in General
Likes 0
Views 133
Votes 0
Hello,
I'm using EasySocial in a way users can't post directly in the stream. What only is streamed is badges and some others stream from another ap.

If I remember correctly, in previous version I could unpublish in backend application "Story". So when user tried to post text in the stream it didn't function. (Then I hide the stream entry with css).

But now when I try to unpublish "Story" in application I got this : "You are not allowed to unpublish core applications"

Is it due to the last version ? How can I still remove Story application ?

Thanks a lot for your help,

Edgar
That is the default behaviour for now on, if you would like to change this behaviour, you have to try edit this file /administrator/components/com_easysocial/models/stream.php and at line 33 locate the codes below,


private $streamPaginationSort = 'modified';

// Replace it with,

private $streamPaginationSort = 'created';
·
Friday, 20 January 2017 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edgar,

Do you intend to hide the story form altogether? You could just edit the theme file with the theme file editor at the back end of EasySocial and edit the file /components/com_easysocial/themes/wireframe/stream/default/default.php

Then, remove the codes below from the file:

[gist]
<?php if ($story) { ?>
<?php echo $story->html(); ?>
<?php } ?>
[/gist]
·
Wednesday, 18 January 2017 21:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Thanks for your great reactivity

It functions perfectly now.

Can I ask you one last question ?

On the profile's member I would like to order the streams entry depending on the date. It functions but if someone comments one stream then the stream concerned is displayed in first where as I would like it keeps the previous order.

I look in backend but can't find where I can modify this.

Thanks again for your help,

Edgar
·
Wednesday, 18 January 2017 21:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edgar,

Unfortunately there's no quick way to change this behavior currently unless you hack the core files but I strongly suggest that you do not hack the core files.
·
Thursday, 19 January 2017 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,
Thanks for your answer.
Well it's too bad because on social network it doesn't work this way. If each time user comments one old post this post becomes first on you profile it would be a bit weird.
Have you planned something on this point in next updates ?

Thanks,

Edgar
·
Friday, 20 January 2017 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
This is perfect now

Thanks you very much for your help !
·
Friday, 20 January 2017 20:19
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome and glad that your issues are resolved now.
·
Saturday, 21 January 2017 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post