Profile1 display as user name in welcome screen Profile1 display as user name in welcome screen
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Profile1 display as user name in welcome screen

Started by wkpoon, June 06, 2007, 11:02:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wkpoon

I had just build a intranet photo album and  I use the staff no. as a login name and store the user name in the profile1 field. Please tell me how to show the user name in the login welcome window and the logout icon in the main widow instead of staff no.

Hein Traag

Not a code wizzard myself but i'd say you would have to open login.php and edit this line
msg_box($lang_login_php['login'], sprintf($lang_login_php['welcome'], $USER_DATA['user_name']), $lang_continue, $referer);

Especially the part which says $USER_DATA['user_name']
I tried it myself can't figure out what to put in place of user_name to get it to display a users real name instead of their login name.

Let me know if you figure this out.

Joachim Müller

In the future, don't double-post - it causes extra moderation effort, and you wasted the time of two supporters. Identical request "Photo shop in intranet". Flagging this thread accordingly and locking it. Taking karma.