How to list first name and last name in members.phtml?

Hi, I try to add first name, last name and role. The result is: it shows role only. First/last name does not come out.. What is my wrong code? Thank you for help.

<?=Language::GetText('members_header')?>

<?php if (count($userResults) > 0): ?>

<?php $userService = $this->getService('User'); ?>
<?php foreach ($userResults as $member): ?>

/members/<?=$member->first_name?>/" title="<?=$member->username?>">
<?php $avatar = $this->getService('User')->getAvatarUrl($member); ?>
imageoptions->themeUrl . '/images/avatar.gif'?>" alt="<?=$member->username?>" />

/members/<?=$member->username?>/" title="<?=$member->username?>"><?=Functions::CutOff($member->username,18)?>

/members/<?=$member->first_name?>/" title="<?=$member->first_name?>"><?=Functions::CutOff($member->first_name,18)?>

/members/<?=$member->last_name?>/" title="<?=$member->last_name?>"><?=Functions::CutOff($member->last_name,18)?>

/members/<?=$member->role?>/" title="<?=$member->role?>"><?=Functions::CutOff($member->role,18)?>

<?=Language::GetText('joined')?>: <?=date('m/d/Y', strtotime($member->dateCreated))?>

<?=Language::GetText('videos')?>: <?=$userService->getVideoCount($member)?>


<?php endforeach; ?>

<?=$pagination->Paginate()?>

<?php else: ?>

<?=Language::GetText('no_members')?>

<?php endif; ?>

Comments

This discussion has been closed.