Hello! We make different groups of members of events in our Jomsocial: speakers, moderator, viewer. I need display them in different tabs in the block of members. How can I make this?
We specified in the template: $profileID= CFactory::getUser()->getProfileType();
define ('visitor',0);
define ('viewer',1);
define ('speaker',2);
define ('moderator',3);
This is your code from template displaying all the members:
<?php if ($eventMembersCount > 0) { ?>
<ul class="joms-list--thumbnail">
<?php foreach ($eventMembers as $member) { ?>
<li class="joms-list__item <?php echo CUserHelper::onlineIndicator($member); ?>">
<a href="<?php echo CUrlHelper::userLink($member->id); ?>" class="joms-avatar">
<img src="<?php echo $member->getThumbAvatar(); ?>" alt="<?php echo $member->getDisplayName(); ?>" data-author="<?php echo $member->id; ?>" />
</a>
</li>
<?php } ?>
</ul>
How can I choose and display in this block only the speakers?
Thanks