View Single Post
  #2  
Old 11-17-2009, 10:04 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: $userinfo on welcome.tpl

I wouldn't suggest doing this in template files but you could try:

Code:
{php} $userinfo = func_userinfo($login,'C'); echo 'Welcome ' . $userinfo['first_name']; {/php}

In home.php

FIND:

# Assign the current location line

BEFORE ADD:

Code:
if (empty($cat)) $smarty->assign("currentUser",func_userinfo($login,'C')) ;
Reply With Quote