I am not place [name] anywhere... some ancient post I found on these forums implied you could-- but clearly there is no where.
I modified my copy the code to get the name and now I am happy. In the official code it seems to want to get formatname, which is null in my database..
I changed your query to this:
"SELECT cpb.posterid, cpb.userid, cpb.mode, cpb.postertitle, cpb.date, u.name username, p.name postername
FROM #__comprofiler_plug_profilebook AS cpb,
#__users u,
#__users p
WHERE
cpb.userid = u.id AND cpb.posterid = p.id AND
cpb.published = 1 "
.( $mode != 'a' ?"\n AND cpb.mode = " . $_CB_database->Quote( $mode ) : '' )
."\n ORDER BY cpb.date DESC LIMIT " . (int) $limit;
and then set up the variable:
//$namePoster = $cbPoster->getField( 'formatname', null, 'html', 'none', 'list' );
$namePoster = $e->postername;
I more than fully realize this makes installing any update to this module a total pain... ah well....