Hi

How do I get the "Display Name" Variable to show on my pages ?
i have tried:
global $user;
$output = '';
$konto = '';

if ($user->profile_name == NULL) {
$konto = 'Klicka för att skriva in ditt namn'; }
else{
$konto = $user->profile_name;
}

Which I have used when having "profiles" module, but can't get it to work properly.(doesn't display Display Name)

Comments

kibblewhite’s picture

If you look at the 'ldap_lookup.blocks' file there is some code in there that might shed some light. I believe you can pull this value directly from the "global $user" variable. Look at lines 21 thru to 33.

kibblewhite’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)