By Sabih on Sunday, 27 September 2015
Likes 0
Views 1.1K
Votes 0
I was trying really hard to find these things on my own, but the forums could not help me neither yet.



1. I am trying to modify the look of that menu. My achievement was to remove the red marked link. Do not know how it is called it english, maybe 'add filter'.

2. I searched all my language files but could not find the place to rename them for the links marked green.

3. Is it possible to have this blue marked area expanded by default without that 'show more filter' links?

Would appreciate some help with this.
Hey Sabih,

I am really sorry for the delay of this reply as it is a weekend for us here. Please find the response to your inquiries below:


1. I am trying to modify the look of that menu. My achievement was to remove the red marked link. Do not know how it is called it english, maybe 'add filter'.

You can edit the file /components/com_easysocial/themes/wireframe/dashboard/sidebar.feeds.php and remove the codes below,


<a class="pull-right fd-small" href="<?php echo FRoute::dashboard(array('type' => 'filterForm')); ?>"
data-stream-filter-button
>
+ <?php echo JText::_( 'COM_EASYSOCIAL_DASHBOARD_FEED_ADD_FILTER' ); ?>
</a>



2. I searched all my language files but could not find the place to rename them for the links marked green.

Most of these are from the language file but if there is a custom app, it might be in the app's language file. This is a snippet of the language strings used,


COM_EASYSOCIAL_STREAM_APP_FILTER_BADGES="Achievements"
COM_EASYSOCIAL_STREAM_APP_FILTER_DISCUSSIONS="Discussions"
COM_EASYSOCIAL_STREAM_APP_FILTER_FILES="Files"
COM_EASYSOCIAL_STREAM_APP_FILTER_FOLLOWERS="Followers"
COM_EASYSOCIAL_STREAM_APP_FILTER_FRIENDS="Friends"
COM_EASYSOCIAL_STREAM_APP_FILTER_GROUPS="Groups"
COM_EASYSOCIAL_STREAM_APP_FILTER_LINKS="Links"
COM_EASYSOCIAL_STREAM_APP_FILTER_PHOTOS="Photos"
COM_EASYSOCIAL_STREAM_APP_FILTER_PROFILES="Profile Updates"
COM_EASYSOCIAL_STREAM_APP_FILTER_SHARES="Repost"
COM_EASYSOCIAL_STREAM_APP_FILTER_STORY="Updates"
COM_EASYSOCIAL_STREAM_APP_FILTER_TASKS="Tasks"
COM_EASYSOCIAL_STREAM_APP_FILTER_USERS="Sign-ins"
COM_EASYSOCIAL_STREAM_APP_FILTER_BLOG="Blog"
COM_EASYSOCIAL_STREAM_APP_FILTER_DISCUSS="Discussions"
COM_EASYSOCIAL_STREAM_APP_FILTER_APPS="Applications"
COM_EASYSOCIAL_STREAM_APP_FILTER_NEWS="Announcements"
COM_EASYSOCIAL_STREAM_APP_FILTER_NOTES="Notes"
COM_EASYSOCIAL_STREAM_APP_FILTER_TEXT="Text"
COM_EASYSOCIAL_STREAM_APP_FILTER_FEEDS="Feeds"
COM_EASYSOCIAL_STREAM_APP_FILTER_KUNENA="Forums"
COM_EASYSOCIAL_STREAM_APP_FILTER_KUNENA_FORUM="Forums"
COM_EASYSOCIAL_STREAM_APP_FILTER_CALENDAR="Calendar"
COM_EASYSOCIAL_STREAM_APP_FILTER_ARTICLE="Articles"
COM_EASYSOCIAL_STREAM_APP_FILTER_KOMENTO="Comments"
COM_EASYSOCIAL_STREAM_APP_FILTER_FORUM_UPDATES="Forums"
COM_EASYSOCIAL_STREAM_APP_FILTER_USER_NOTES="Notes"




3. Is it possible to have this blue marked area expanded by default without that 'show more filter' links?

You will need to customize the codes below from the theme file /components/com_easysocial/themes/wireframe/dashboard/sidebar.feeds.php


<?php $i = 1; ?>
<?php foreach ($appFilters as $appFilter) { ?>
<?php echo $this->includeTemplate('site/dashboard/sidebar.feeds.appfilter.item', array( 'filter' => $appFilter , 'hide' => $i > 3 ) ); ?>
<?php $i++; ?>
<?php } ?>

<?php if( count( $appFilters ) > 3 ){ ?>
<li>
<a href="javascript:void(0);" class="filter-more" data-app-filters-showall><?php echo JText::_( 'COM_EASYSOCIAL_DASHBOARD_SIDEBAR_SHOW_MORE_FILTERS' ); ?></a>
</li>
<?php } ?>
·
Sunday, 27 September 2015 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Amazing, it works so easily if you know where to look. Thank you so much Mark. I got a bad conscious about ruining your weekend, I hope I did not do so!

Though I still did not find the language strings, but at least now I know what to search for. Finally I can hunt for the holy grail with some help.
·
Monday, 28 September 2015 02:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sabih,

You are most welcome.
·
Monday, 28 September 2015 12:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post