By David Unwin on Wednesday, 02 July 2014
Posted in Technical Issues
Replies 12
Likes 0
Views 746
Votes 0
I have a team blog. In the blog heading there is a list of team members. However there is no space or comma between each member, which make the layout look poor (see screen shot)
2 questions
1) is it possible to change the template to put a space or comma between the members
2) This team will grow to about 150 members. Is it possible to turn off the function that displays the members in this particular team blog. I would like it to remain for other team blogs which only have a small number of members
Hello David,

What you can do is to edit the theme file /components/com_easyblog/themes/default/blog.teams.php and locate the codes below,


<li class="profile-module my-writers">
<span class="traits float-r"><?php echo count( $row->members );?></span>
<span><?php echo JText::_('COM_EASYBLOG_TEMBLOG_CONTRIBUTORS' ); ?></span>
<ul class="active-bloggers clearfix reset-ul list-full<?php echo ( $system->config->get('layout_avatar') ) ? '' : ' no-avatar'; ?>">
<?php
if(! empty($row->members))
{
foreach($row->members as $member)
{
?>
<li>
<div class="pts pbs">
<a href="<?php echo $member->getProfileLink(); ?>" title="<?php echo $member->displayName; ?>">
<?php if ( $system->config->get('layout_avatar') ) { ?>
<img src="<?php echo $member->getAvatar(); ?>" alt="<?php echo $member->displayName; ?>" width="40" height="40" class="avatar float-l mrm"/>
<?php echo EasyBlogTooltipHelper::getBloggerHTML( $member->id, array('my'=>'left bottom','at'=>'left top','of'=>array('traverseUsing'=>'prev')) ); ?>
<?php } ?>
<?php echo $member->displayName;?>
</a>
</div>
</li>
<?php
}
}
?>
</ul>
</li>


Replace it with,


<?php if ($row->id != 9999) { ?>
<li class="profile-module my-writers">
<span class="traits float-r"><?php echo count( $row->members );?></span>
<span><?php echo JText::_('COM_EASYBLOG_TEMBLOG_CONTRIBUTORS' ); ?></span>
<ul class="active-bloggers clearfix reset-ul list-full<?php echo ( $system->config->get('layout_avatar') ) ? '' : ' no-avatar'; ?>">
<?php
if(! empty($row->members))
{
foreach($row->members as $member)
{
?>
<li>
<div class="pts pbs">
<a href="<?php echo $member->getProfileLink(); ?>" title="<?php echo $member->displayName; ?>">
<?php if ( $system->config->get('layout_avatar') ) { ?>
<img src="<?php echo $member->getAvatar(); ?>" alt="<?php echo $member->displayName; ?>" width="40" height="40" class="avatar float-l mrm"/>
<?php echo EasyBlogTooltipHelper::getBloggerHTML( $member->id, array('my'=>'left bottom','at'=>'left top','of'=>array('traverseUsing'=>'prev')) ); ?>
<?php } ?>
<?php echo $member->displayName;?>
</a>
</div>
</li>
<?php
}
}
?>
</ul>
</li>
<?php } ?>


Replace 9999 with the team id that you do not want to display the members.
·
Wednesday, 02 July 2014 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I am not a "Coder" just an admin guy with some knowledge, so please excuse me if this question sounds silly!
Does this code change handle both of my questions? I understand that if I replace 9999 with the team id I wish not to display.
But does this code also create a gap or comma between to team bloggers?

Thanks for your help.

David
·
Thursday, 03 July 2014 00:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

The code doesn't actually add a comma but it only doesn't display the team of 9999. If you want to add a gap or a comma in between each team members, after the </a> , just add a comma to it
·
Thursday, 03 July 2014 13:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I made the change as you suggested, but appears not to have made a difference.
I choose team id 2 (see screen shot)
I added you one line of code at line 151 (see blog.teams)
I have not yet made the second change (add comma) yet
Kind regards

David
·
Thursday, 03 July 2014 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I made the change as you suggested, but appears not to have made a difference.
I choose team id 2 (see screen shot)
I added you one line of code at line 151 (see blog.teams)
I have not yet made the second change (add comma) yet
Kind regards

David
·
Thursday, 03 July 2014 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Please provide us with the back end and FTP access so that I can look into this. Also, please provide the exact link to the team page.
·
Thursday, 03 July 2014 19:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,
I have replied to your email with all the credentials.
Let me know if you have not got it
David
·
Thursday, 03 July 2014 20:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Can you kindly please post the access here under the "Site Details" tab please?
·
Thursday, 03 July 2014 23:44
·
0 Likes
·
0 Votes
·
0 Comments
·
David Unwin wrote:

I have a team blog. In the blog heading there is a list of team members. However there is no space or comma between each member, which make the layout look poor (see screen shot)
2 questions
1) is it possible to change the template to put a space or comma between the members
2) This team will grow to about 150 members. Is it possible to turn off the function that displays the members in this particular team blog. I would like it to remain for other team blogs which only have a small number of members
·
Thursday, 03 July 2014 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

I have added the comma for you and it should display the members with the comma now. As for hiding the team members , are you referring to the Business Members Blog team? I have added a hack so that it doesn't display members if you are viewing the team id 2 which is the Business Members Blog team.
·
Friday, 04 July 2014 03:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,
That is great, Thank you. Could you just point me in the right direction of the hack where you added the comma between team member's names, I can't see that?
Thnanks

David
·
Friday, 04 July 2014 21:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

The file that I have modified is in /components/com_easyblog/themes/default/blog.teamblogs.php
·
Saturday, 05 July 2014 01:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post