Customizing SMF > SMF Coding Discussion

in YSE you had the $username variable in SSI.php

(1/1)

۞:
...and I used it for a whole load of queries. $username seems to be gone now...

I figured the easiest way to fix my problem would be to define the $username variable in SSI.php but... I can't figure out how the username is stored.. I found $context['user']['name'] but that's from the welcome message, so i'm guessing that's the display name.

What do I need?

Thanks for any help.

MrCue:
take a look at whats stored in $user_info & $user_settings arrays when using SSI.

Grudge:
$user_info['username'] is what you want by the sound of it. Although if you are DISPLAYING their name use $user_info['name']

[Unknown]:
But you should be using $ID_MEMBER in your queries :P.

-[Unknown]

۞:
 
--- Quote from: Grudge on March 16, 2004, 12:05:26 PM ---$user_info['username'] is what you want by the sound of it.
--- End quote ---

Thanks, that's exactly what I needed.

Navigation

[0] Message Index

Go to full version