currently, i run the user id through the database to return their username.
does joomla have a method to call up a username based on a user id?
like
userbase->id->123 = john
userbase->id->124 = bob
if not, it should!
SOLVED: didnt search hard enough :P
Code: Select all
$user = JFactory::getUser($userid);
$username=$user->get('username');
echo $username.'!';