Welcome to Geeklog, Anonymous Monday, July 14 2025 @ 06:02 am EDT
Geeklog Forums
Who's online
I would like to have the fullname of the user instead of the username shown in the Who's online box.
I tried to mody some code in lib-common but couldn't make it work.
What would be the best way to do it ?
Thanks
15
13
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Well, what did you try?
The block is handled by function phpblock_whosonline() in lib-common.php. All you would need to do is add the "fullname" field to the SQL query and display that instead of the username.
Just remember that the full name is an optional field, so it might be empty for users which haven't entered their full name. You should add a test if the full name is empty and if it is, display the username instead.
bye, Dirk
11
14
Quote
There is no problem with an empty full name fiels as this is a private site as I enter the members name myself.
I tried this mornig what you told me but I got an error message every time (Parse error) but I'll try it again.
Thanks,
10
14
Quote
All times are EDT. The time is now 06:02 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content