By Dalia Jas on Wednesday, 16 July 2014
Posted in General Issues
Replies 11
Likes 0
Views 675
Votes 0
Hello, when user clicks Filters - he sees post that he created only. How to make that user could see all posts?

For example if he clicks on filters / photos - he sees only his own photo. Is it possible to do, that he would see all the posts related to photos.
Hello Dalia,

I am sorry for the delay of this reply.

By default, when you click on the photos filter from your dashboard page, EasySocial show photos stream from you and your friends. If you want to show the photos stream from everyone, you will need to customise your EasySocial. What you can do is to edit the file 'JOOMLA/components/com_easysocial/views/dashboard/view.html.php' at line 224 and replace the below code:


$stream->get(array('context' => $appType, 'startlimit' => $startlimit));


to:


$stream->get(array('context' => $appType, 'guest' => true, 'startlimit' => $startlimit));


Next, open the file 'JOOMLA/components/com_easysocial/controllers/dashboard.php' and look for line at 119:

$stream->get( array( 'context' => $appType ) );


and replace the above with the following:

$stream->get( array( 'context' => $appType, 'guest' => true ) );


Let me know if the above work for your or not.
Hope this help and have a nice day
Sam
·
Wednesday, 16 July 2014 14:47
·
0 Likes
·
0 Votes
·
0 Comments
·
It's a pity, but after replacing line in /controllers/dashboard.php filter started not to work - it displays all the activity stream .
·
Friday, 18 July 2014 04:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dalia,

I am sorry for the delay of this reply.

Em, it is okay if you can pass me your site access details and your ftp account so that I can check on your site regarding this matter?
Please advise.
Sam
·
Friday, 18 July 2014 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, please find below. Thank you for your help.
·
Wednesday, 23 July 2014 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dalia,

I am sorry for the delay of this reply.

Thanks for your site details but today when I attempt to access your site, I hit this issue saying 'You enabled web hosting service, but the content of the site is not yet uploaded.'. Please see http://screencast.com/t/hQ0uGCc1YwY

Is your site now under maintenance?
Please advise.
Sam
·
Thursday, 24 July 2014 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
No, the site is not under maintenance. There is currently many users online.

I would greatly appreciate if you could try to access again - maybe there was any moment error with server.
·
Thursday, 24 July 2014 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dalia,

I am sorry for the late reply.

Yeah you are right, I can now access to your site without any issue

Anyway, back to your issue, I've logged to your site and when I click on the stream filter, the filter did load correct stream item for the stream type I've clicked. it is showing everyone stream items for that particular filter type. It seems like the previous hack that I provided work correctly. Please see http://screencast.com/t/SOH6K2qh

Is this not working the same for you? Or can you capture a video and show me how the filter work on your end? If possible, please tell me the steps to reproduce the issue. Please advise.

Hope this help and have a nice day
Sam
·
Friday, 25 July 2014 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I think I did not mention that filter does not work that way fo REGISTERED users. The example only works fo admin.

Would it be possible to do that registered user would see the same way? I will provide registered user account details below.

By the way, now the code changes provided above are not added to the site as it results not filtering at all.

Thank you for your help very much!
·
Friday, 25 July 2014 20:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Dalia,

I am sorry for the delay of this reply as we are having long public holidays in our country here

Anyway, you are right, the hacks doesn't work for 'registered' users
I've re-apply the hacks and also modified two new files and now when registered user click on the app filter, it will display correctly

Please verify again.

Below are the files I've modified:

JOOMLA/administrator/components/com_easysocial/models/stream.php
JOOMLA/components/com_easysocial/views/dashboard/view.html.php
JOOMLA/components/com_easysocial/controllers/dashboard.php
JOOMLA/components/com_easysocial/controllers/stream.php

Hope these helps and have a nice day
Sam
·
Wednesday, 30 July 2014 10:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much!!! It works!!
·
Wednesday, 30 July 2014 18:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Dalia Jas,

You're welcome, glad to heard your issues resolved.
·
Wednesday, 30 July 2014 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post