News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

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

Started by ۞, March 16, 2004, 11:34:22 AM

Previous topic - Next topic

۞

...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.
TTTTTT  OOOOOO MMMMMM   BBBBBB


MrCue

take a look at whats stored in $user_info & $user_settings arrays when using SSI.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

Grudge

$user_info['username'] is what you want by the sound of it. Although if you are DISPLAYING their name use $user_info['name']
I'm only a half geek really...

[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.

Thanks, that's exactly what I needed.

TTTTTT  OOOOOO MMMMMM   BBBBBB


Advertisement: