How can i get the firstname in a template?
i did this but it´s not working:
<?php
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
$cbUser = CBuser::getMyInstance();
$name = $user->name;
//var_dump($user);
//var_dump($cbUser);
if ( !($cbUser->firstname=='') ) {
$name = $cbUser->firstname;
}
echo "Hola, <b>".$name."</b>" ;
?>