Closed (fixed)
Project:
NTLM & LDAP Authentication
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 May 2007 at 13:08 UTC
Updated:
18 Oct 2007 at 12:21 UTC
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
Comment #1
kibblewhite commentedIf 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.
Comment #2
kibblewhite commentedComment #3
(not verified) commented