Hi
Want to show the Display name in topbar, but does not work. Why not? Tried with username first..
elgg_register_menu_item('topbar', array(
'name' => 'name',
'href' => "profile/" . $user->username,
'text' => $user->username,
'title' => $user->username,
'priority' => 300,
));
I added it in the init in the theme. What could be wrong?
/TheMuller
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Per Jensen@gillie

Per Jensen - 0 likes
You must log in to post replies.which theme ?;) most likely the 'other topBar' menu thingy code is executed (@elgg *core) *after *yours !;o(
Try to add this before your code,
$user = elgg_get_logged_in_user_entity();