The plugin is extremely old and due for a complete rewrite (scheduled after CB 2.0). Unfortunately due to this it does not use up to date usages. It should for example be using the formatname field and not have a name parameter at all. The below should quickfix it to use formatname field.
IN: components/com_comprofiler/plugin/user/plug_cblastviewstab/cb.lastviews.php
ON: Lines 159-171
FROM:
Code:
$name = $cbUser->getField( 'name', null, 'html', 'none', 'list' );
$username = $cbUser->getField( 'username', null, 'html', 'none', 'list' );
$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
if ( $LVusername == '0' ) {
$viewername = $username;
} elseif ( $LVusername == '1' ) {
$viewername = $name;
} elseif ( $LVusername == '2' ) {
$viewername = $username . ' (' . $name . ')';
} elseif ( $LVusername == '3' ) {
$viewername = $name . ' (' . $username . ')';
}
TO:
Code:
$viewername = $cbUser->getField( 'formatname', null, 'html', 'none', 'list', 0, true );
$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list', 0, true );