By Antonio Calarco on Tuesday, 06 January 2015
Posted in General Issues
Likes 0
Views 896
Votes 0
Could you please explain me how I can manage sidebar?
If I want to hide some link as showed in the attachment can I do this by backend or I have to modify code?

Could you please help me?

Thank you
Antonio
Hi Antonio,

I am sorry for the late reply.
Can you edit the file which I gave you in line: 29 and replace the existing code with this instead:

$disableApps = array('apps','badges','calendar','feeds','followers','friends','groups','k2','kunena','links','photos','profiles','shares','story','tasks','blog','broadcast','events','discuss','komento');

These are the list of apps available to be filtered. You can remove the one that you want to be displayed. If this doesn't fix the issue, perhaps you can provide us with the backend access and FTP access so that we can fix this issue on your site much quicker.

By the way, I am really sorry but currently we quite tied up with our own internal development and we wouldn't be able to assist you further after this issue is fixed. If this is a priority, please do post them on our sales section at https://crm.stackideas.com and our sales department would get back to you with a proper quote.

Please advise.
Thanks.
·
Saturday, 10 January 2015 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
I think this requires a mod. It's easier however to hide it via CSS which only requires a template addition (aka no file mods). Eventually after all the other important features are added to ES, I'm hoping for more display options which would make ES very flexible. But we've got a lot of months before that can possibly happen.
·
Tuesday, 06 January 2015 06:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Josh!!!
Could you please tell me in witch folder/file i can find CSS to implement the modification?

Thank you in advance
Antonio
·
Tuesday, 06 January 2015 06:24
·
0 Likes
·
0 Votes
·
0 Comments
·
It depends on what you are trying to hide. For apps, use the following CSS code:

.es-sidebar [data-title="Forum"] {
display: none !important
}


Replace the name "Forum" with whatever app name you are trying to hide. Be sure to keep the quotes and remember that it is case sensitive. Also note that it might display as one thing but be a different name. For example Kunena displays "Forums" but it's app name is "Forum" in the title which is why I choose "Forum". So you might have to do some testing. It's best to look up the app name in the backend, go to edit mode for the app, and look at the title mentioned there.

Assuming you update your template, we do not want your changes lost. So I recommend either using a custom.css file if it exists or put the code into a Custom CSS module. By using this module you can hide pretty much anything you want and style things to your liking.
·
Tuesday, 06 January 2015 07:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

Thanks for sharing.

Hi Antonio,

I am sorry for the late reply.
May I know do your issue is resolved? If still doesn't resolved, please do provide us with backend access and FTP access so that we can further assist you on this issue. And also can you please explain more which link do you wish to hide because some of it (example leaderboard, recent user, online user and recent album) you can unpublished it from module manager. Please do update us back on this issue.

Please advise.
Thanks.
·
Tuesday, 06 January 2015 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh thank you very much for your suggestion!!!

Hi Mohdyasseribz,
the issue as not been solved. I attached you my requirements.
Could you please help me to hide links commenting code or in another way?

Thank you in advance for your support
Antonio
·
Tuesday, 06 January 2015 22:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Antonio,

I am sorry for the late reply. Please find your answers below:
1. Hide link photos from filter. (http://screencast.com/t/sa3qHg0R)
>> I am sorry. I believe this cannot be done in the current system.

2. Hide Applications and other links in Filters (http://screencast.com/t/NqjFRk5xkg)
>> There is setting in the backend > EasySocial > Themes > (frosty) > Dashboard >
Display Applications = No
Display Application Filters = No.

3. Hide Apps and Points (http://screencast.com/t/Ojl1B0G6)
>> Here I have attached to you a file, please download it and put it in your site here: ...\components\com_easysocial\themes\frosty\profile\default.php .
About to hide the points, there is a setting in the backend > EasySocial > Themes > (frosty) > Profile > Display Points = No.

Hope this will help.
Thanks.
·
Wednesday, 07 January 2015 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohdyasseribz,
thank you very much we solved some issue but not all

1) It is not possible to hide it commenting code? (I think that if there is option to disable photo it is not good to have this in the filters isnt?)
2) It is not possible to hide only desired applications for example commenting code?
3) OK it works fine

Thank you
Antonio
·
Wednesday, 07 January 2015 20:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Antonio,

I am sorry for the late reply.
Regarding your issues:
1. Here I attached to you a file, please download it and put it in your site here: ...\components\com_easysocial\themes\wireframe\search\default.sidebar.php . Please give this a try and see if this resolves you issue.

2. Here I have attached to you a file, please download it and put it in your site here: ...\components\com_easysocial\themes\wireframe\dashboard\sidebar.feeds.php . You need to change the code in line: 127.

if($appFilter->title == 'Applications'){
continue;
}

The available titles are:
1. Applications
2. Blog
3. Discussions
4. Events
5. Friends
6. Groups
7. Photos
8. Sign-ins

Please know this is a customization and will get override if you update EasySocial to the latest. If you have anymore question, please don't hesitate to ask us.

Hope this will help.
Thanks.
·
Thursday, 08 January 2015 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohdyasseribz,
thank you very much again

1) I download it and the problem has been solved

2) after download the new php file and activate application filter on dashboard i received attached error so I didnt continue to modify file on line 127
I rollback to the old file but I am continuing to have the error

- It is maybe linked with change on point 1?
- Then in which way I have to modify line 127? one line for each application I want to see?

Could you please help me?

Thank you
Antonio
·
Thursday, 08 January 2015 21:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry attach
·
Thursday, 08 January 2015 21:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Antonio,

I am sorry for the late reply.
Here I'm re-attach the file again. Please have a try again.
...\components\com_easysocial\themes\wireframe\dashboard\sidebar.feeds.php . You need to change the code in line: 136 and I have put a comment there.

<?php $i = 1; ?>
<!--
Here is the modification for the filter.
If you're want to add/change the filter, you can change it in the $disableFilter.
$disableFilter = array('Applications'); -> to disable Applications
$disableFilter = array('Events','Blog','Discussions'); -> to disable Events, Blog & Discussions
and so on.
Hope this will help.
Thanks.
-->
<?php
$disableFilter = array('Applications');

foreach( $appFilters as $appFilter ) {
if(in_array($appFilter->title, $disableFilter)){
continue;
}?>

<?php echo $this->includeTemplate( 'site/dashboard/sidebar.feeds.appfilter.item', array( 'filter' => $appFilter , 'hide' => $i > 3 ) ); ?>
<?php $i++; ?>
<?php } ?>
<!-- Ends of modifications -->


Please give this a try and I hope this will help.
Thanks.
·
Friday, 09 January 2015 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohdyasseribz thank you very much it works fine you are great!!!!

Just look at the attached file, the modification is not in Activity Log "Filter by apps".
It is because it is another filter? It is possible to do the same modification in this filter by code?

Thank you
Antonio
·
Friday, 09 January 2015 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Antonio,

Here I attached you a file, please download it and put it in your site here: ..\components\com_easysocial\themes\wireframe\activities\sidebar.apps.php . Please give this a try and see if this resolved your issue. By the way, you need to edit the code in line: 29. I have put a comment there.

As a friendly reminder, this is a customization and all the customization will get replaced by the latest version of EasySocial. Please backup your site first before updating EasySocial.

Please advise.
Thanks.
·
Friday, 09 January 2015 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohdyasseribz,
I have
$disableApps = array('apps','events','friends','groups','discuss','blog','Profiles');

But links didnt desappear, in attach results

Could you help me?

Thank you
Antonio
·
Friday, 09 January 2015 20:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohdyasseribz,
the problem has been solved!!!!

Thank you very much for your support
Antonio
·
Monday, 12 January 2015 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

You're welcome. Glad to hear your issue have been resolved.
If you have anymore question, please don't hesitate to ask us and please create a new ticket. I will mark this ticket as resolved.

Thanks again and have a wonderful day.
·
Monday, 12 January 2015 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post