Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Profile1 display as user name in welcome screen  (Read 2518 times)

0 Members and 1 Guest are viewing this topic.

wkpoon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Profile1 display as user name in welcome screen
« on: June 06, 2007, 11:02:17 am »

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.
« Last Edit: June 06, 2007, 12:51:10 pm by GauGau »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Profile1 display as user name in welcome screen
« Reply #1 on: June 06, 2007, 11:34:20 am »

Not a code wizzard myself but i'd say you would have to open login.php and edit this line
Code: [Select]
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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Profile1 display as user name in welcome screen
« Reply #2 on: June 06, 2007, 12:50:27 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.