PDA

View Full Version : Accessing the username variable in showthread.php


Antun
11-11-2002, 11:17 PM
For some reason I can't access the username variable in showthread.php. I've been editing the templates here and there to include a violator much like the one that comes on the default forums homepage - "welcome back $username".

It works on all pages so far, but for some reason it doesn't work on showthread.php - even though I am logged in with cookies.

Any ideas why?

Scott MacVicar
11-12-2002, 12:08 AM
try

$bbuserinfo[username]

Erwin
11-12-2002, 12:34 AM
That works on ANY page in vB. :)

zajako
11-12-2002, 12:41 AM
gotta love the global variables :P