By Alexandre Cayer on Wednesday, 11 June 2014
Posted in Technical Issues
Replies 12
Likes 0
Views 826
Votes 0
Hi,

When i set the option Enable comments on stream, i thought it would take down the ability for one user to actually add something to the stream. Either I don't understood it correctly or there is an issue.

I would like to take off the ability for one to put anything at all in the Stream (the SHARE WHAT'S NEW inputbox) history. I'm using it as a activity stream from the applications.

Thanks
Put this in your site's template css file:

.es-story.es-responsive {
display: none;
}


Clear your cache, it should be gone for both the profile and the dashboard.
·
Wednesday, 11 June 2014 02:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Comments are for commenting on activity. This includes photos and status posts. Posting a status to the stream is not a comment.
·
Wednesday, 11 June 2014 02:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hehehe that's was my guess. Having an option to Turn On or Off statuts posting would have been better. Stackidea, can you add to request feature : )

Meanwhile, could you point me the file i must hack to turn it off

Thanks Josh
·
Wednesday, 11 June 2014 02:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Josh
·
Wednesday, 11 June 2014 03:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

Josh answer is actually good, but for every single user. Could you provide me the file and line number for the template file I would need to change in order to check the user group and if or if not display it or not.

Thanks
·
Wednesday, 25 June 2014 14:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry but I don't really understand you here. Josh's response was purely using css to hide items?
·
Wednesday, 25 June 2014 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, CSS worked well but it doesn't make any difference from one user to another, it simply hide from all user.
I would like a PHP solution. Would like to know which php file does make the display.
·
Wednesday, 25 June 2014 21:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

Here is an application of what I don't want... with CSS it hides the stream input bar for profile AND for group. That's why I want to be able to remove the bar only for profile.

Thanks
·
Friday, 27 June 2014 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Got the file: ..m_easysocial/themes/wireframe/story/default.php

Need a if statement to see if view is related to profile and not group seems it seems this is use for both.
What class shall I test for ... ? If task == group ?

Alex
·
Friday, 27 June 2014 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
is that a good guess:

$id = JRequest::getInt('id');
$stream = Foundry::table('Stream');
$stream->load($id);
if ($stream->cluster_id) {
·
Friday, 27 June 2014 22:05
·
0 Likes
·
0 Votes
·
0 Comments
·
of forget it... i got it while testing...

if ($story->getClusterType()) {
·
Friday, 27 June 2014 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
To test if the current view is on a profile or a group, you could do this,


<?php

if (JRequest::getVar('view') == 'groups') {
// groups view
}

if (JRequest::getVar('view') == 'profile') {
//profile view
}
·
Saturday, 28 June 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post