Help displaying jfactory to a page - Joomla! Forum - community, help and support
how display users name on page other information. have tried outputs code sure placing incorrectly not sure proper way it.
code: select all
$user =& jfactory::getuser();
if (!$user->guest) {
echo 'you logged in as:<br />';
echo 'user name: ' . $user->username . '<br />';
echo 'real name: ' . $user->name . '<br />';
echo 'user id : ' . $user->id . '<br />';
}
the code looks me. have placed this? in article? can't put php code article/category (without using extension). if it's showing code you're either putting in articl/category , tags being stripped or you've not put opening , closing <?php ?> tags code.
if use extension http://extensions.joomla.org/extensions ... ntent/5051 or similar, can add php modules or content items.
if use extension http://extensions.joomla.org/extensions ... ntent/5051 or similar, can add php modules or content items.
Comments
Post a Comment