2
That's PHP, not Smarty. To use PHP within a Smarty template, you would have to bracket it with <{php}>...<{/php}>, instead of using the normal PHP brackets ... ?> or .
But the username is already assigned as a Smarty template variable, so this should work:
Logged in as: <{$xoops_uname}>