Log in

View Full Version : How can I output $bbuserinfo as part of a $thing?


kall
10-04-2005, 09:33 AM
Ok, so the title is darned confusing. :)

Basically, I have my $nzb_greeting plugin. It gets the day of the week and according to that, outputs a message.

All good. Except, if I try to define the message as 'Hello $bbuserinfo[username]' (or $vbulletin->userinfo[username]), it comes out as "Hello, [Array]" or something like that, so in the template, I have to put $nzb_greeting, $bbuserinfo[username]... which is sloppy, and leads to things like it not getting fully called on error pages, so I get a forlorn 'kall' with an empty line under it where the other greeting should be.

Can anyone help me out here?

Andreas
10-04-2005, 09:38 AM
{$GLOBALS['vbulletin']->userinfo['username']}

kall
10-04-2005, 09:52 AM
I don't know if its the caffeine, or the lack of sleep talking, but I think love you Kirby.

*bows down and begins building shrine to Kirby's knowledge*