Code: Select all
<?php $user = &JFactory::getUser(); return $user->get('name'); ?>
This is a well-known solution, suggested in many forums.
But for some odd reason, the field displays the entire code inside the field, including the php-tags, instead of filling the field with the resulting name. Somehow the PHP-tags don't seem to be resolved.
It must be something pretty simple I'm overlooking.
Can someone help out?