Advertisement:

Author Topic: in YSE you had the $username variable in SSI.php  (Read 7172 times)

Offline ۞

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
  • I dont know what to put here, I'll leave it blank.
in YSE you had the $username variable in SSI.php
« on: March 16, 2004, 11:34:22 AM »
...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


Offline MrCue

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
  • Chief Architect
    • Installation of SMF
Re: in YSE you had the $username variable in SSI.php
« Reply #1 on: March 16, 2004, 11:43:25 AM »
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

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: in YSE you had the $username variable in SSI.php
« Reply #2 on: March 16, 2004, 12:05:26 PM »
$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...

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: in YSE you had the $username variable in SSI.php
« Reply #3 on: March 16, 2004, 12:23:53 PM »
But you should be using $ID_MEMBER in your queries :P.

-[Unknown]

Offline ۞

  • Jr. Member
  • **
  • Posts: 340
  • Gender: Male
  • I dont know what to put here, I'll leave it blank.
Re: in YSE you had the $username variable in SSI.php
« Reply #4 on: March 16, 2004, 03:30:58 PM »
 
$user_info['username'] is what you want by the sound of it.

Thanks, that's exactly what I needed.

TTTTTT  OOOOOO MMMMMM   BBBBBB