By William Matson on Saturday, 17 May 2014
Posted in General Issues
Replies 7
Likes 0
Views 533
Votes 0
ES 1.2.13
J3.3

Ref:
index.php?option=com_easysocial&view=groups&layout=category&id=10:category01&Itemid=375


The left sidebar lists Random Groups, Random Albums and Random Members. I would like to show all groups, and eliminate the Random Albums and Random Members. How do I do this?

Thanks
Hello William,

You can place modules on the sidebar on the following positions,

es-groups-sidebar-top
es-groups-sidebar-bottom
·
Saturday, 17 May 2014 15:00
·
0 Likes
·
0 Votes
·
0 Comments
·
How do I do this? Are there any written guides?

My immediate goal is to remove what is already there.

Thanks
·
Saturday, 17 May 2014 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

Ah, if you are looking at removing them, you need to edit the theme file in /components/com_easysocial/themes/wireframe/groups/category.item.php and remove the codes below,


<div class="es-widget">
<div class="es-widget-head">
<div class="pull-left widget-title"><?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_RANDOM_GROUPS' );?></div>
</div>

<div class="es-widget-body">
<?php if( $groups ){ ?>
<ul class="widget-list fd-nav fd-nav-stacked random-groups">
<?php foreach( $groups as $group ){ ?>
<li>
<img src="<?php echo $group->getAvatar();?>" class="pull-left mr-10 es-avatar" title="<?php echo $this->html( 'string.escape' , $group->getName() );?>" />
<a href="<?php echo FRoute::groups( array( 'layout' => 'item' , 'id' => $group->getAlias() ) );?>"><?php echo $group->getName(); ?></a>
<div class="fd-small group-meta">
<i class="ies-users"></i> <?php echo JText::sprintf( Foundry::string()->computeNoun( 'COM_EASYSOCIAL_GROUPS_MEMBERS' , $group->getTotalMembers() ) , $group->getTotalMembers() );?>
</div>
</li>
<?php } ?>
</ul>
<?php } else { ?>
<div class="fd-small">
<?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_NO_GROUPS_YET' ); ?>
</div>
<?php } ?>

</div>
</div>
·
Saturday, 17 May 2014 17:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks. I would like to show all groups. What is the JText syntax for all groups display?
·
Saturday, 17 May 2014 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello William,

If your site is purely in English or if you only have a single language, you need not worry about JText at all. Just change the language constant to All Groups . If you have multiple language and would like to take advantage of Joomla's language overrides, then you need to define your own one. After defining it here, you need to just add them into the language file.
·
Saturday, 17 May 2014 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
If I understand correctly

I change
'COM_EASYSOCIAL_GROUPS_RANDOM_GROUPS'

To
'COM_EASYSOCIAL_GROUPS_ALL_GROUPS'

Please confirm. Thanks.
·
Saturday, 17 May 2014 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, and you will need to add COM_EASYSOCIAL_GROUPS_ALL_GROUPS into your language string at /language/en-GB/en-GB.com_easysocial.ini

COM_EASYSOCIAL_GROUPS_ALL_GROUPS="All Groups"
·
Saturday, 17 May 2014 18:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post