What I am trying to do is include the logged in username in the login redirect notice, something like this :-
Welcome back username - now redirecting you to the board index
In language/en/ucp.php I have put this :-
'LOGIN_REDIRECT' => 'Welcome back %s - You are logged in<br>Now taking you to the forum index',
An in ucp.php I have put this under $template->assign_vars(array(
'LOGIN_REDIRECT' => sprintf($user->lang['LOGIN_REDIRECT'], $user->data['username']),
But can't get it to work, where am I going wrong ?
Any help would be much appreciated.