Skip to Content Skip to Menu

Get Firstname in template

  • borja
  • borja
  • OFFLINE
  • Posts: 76
  • Thanks: 1
  • Karma: 0
9 years 2 months ago #270294 by borja
Get Firstname in template was created by borja
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>" ;
?>

Please Log in or Create an account to join the conversation.

  • borja
  • borja
  • OFFLINE
  • Posts: 76
  • Thanks: 1
  • Karma: 0
9 years 2 months ago #270377 by borja
Replied by borja on topic Get Firstname in template
My doubt is still alive

Please Log in or Create an account to join the conversation.

  • borja
  • borja
  • OFFLINE
  • Posts: 76
  • Thanks: 1
  • Karma: 0
9 years 1 month ago #270697 by borja
Replied by borja on topic Get Firstname in template
Anyone can help me? best regards,

Borja

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum