Author Topic: user_logininfo.html  (Read 3795 times)

0 Members and 1 Guest are viewing this topic.

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
user_logininfo.html
« on: October 04, 2002, 03:40:57 AM »
Hi, I've had this script about a week now and I love it to bits. I am currently coding my new template which is very cool and is taking a long time.

I have a problem though. On the user_logininfo.html page theres the bit which says
Code: [Select]
{lang_loggedin_msg} Now we all know that this is the bit thats prints
Quote
Logged in as: YOURNAME
What I want to do is this:
Code: [Select]
<FONT class=recent>Logged in As:</FONT><BR>
<FONT class=normal>YOURNAME</FONT>
In the bit which reads "YOURNAME" I would like the name of the user currently logged in. Just like the original would say. Now I've tried putting {user_name} in the YOURNAME bit, but it doesnt work as I get a different name on every page. It only seems to display the correct name on the control panel page.

Can anyone help me with this? what bit of code do I need? it's had me confused for hours and hours.

Thanks in advance,
Carl - http://www.uksoreeyes.co.uk/home/index.php

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
user_logininfo.html
« Reply #1 on: October 04, 2002, 08:33:30 AM »
See
Code: [Select]
$lang['lang_loggedin_msg'] = "Logged in as: <b>{loggedin_user_name}</b>";
in language file "main.php".

Just change it to:

Code: [Select]
$lang['lang_loggedin_msg'] = "<FONT class=recent>Logged in as:</FONT><br><FONT class=normal>{loggedin_user_name}</FONT>";
Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
user_logininfo.html
« Reply #2 on: October 04, 2002, 02:02:33 PM »
wow thanks alot, I didn't realise it was that simple. Now I can get on and finish the rest of the site. I'll let you know when it's finished.