Log in

View Full Version : What am I doing wrong?


fly
09-08-2005, 12:11 PM
I have this in a conditional in a template. Why doesn't the name show up. I'm sure its something stupid that I have yet to grasp w/ vb3.5

<div align="left" style="color: red; background-color: white; border: 1px solid black; padding:2px">Hey $userinfo['username'], your account is awaiting approval from an administrator. That will only happen after you have participated in the thread that was generated for you. If you don't know where that thread is, check <a href="private.php?$session[sessionurl]"><strong>your Private Messages</strong></a> and/or PM an administrator (fly, theacoustician, DirkPhoenix, FatBurger). Thanks!</div>

And why in the heck does that show up as a single line code box? eek

Marco van Herwaarden
09-08-2005, 12:51 PM
What condition? There is no condition in what you have posted.

fly
09-08-2005, 01:46 PM
Sorry. My question wasn't about the condition. I have $userinfo['username'] in there for the username, but it doesn't actually show up. Obviously that's wrong, what is the right way to do it?

Zachery
09-08-2005, 02:02 PM
Sorry. My question wasn't about the condition. I have $userinfo['username'] in there for the username, but it doesn't actually show up. Obviously that's wrong, what is the right way to do it?

Well what temlpate is that sposed to be in, have you thought $userinfo might not be a valid array?

fly
09-08-2005, 02:07 PM
Well what temlpate is that sposed to be in, have you thought $userinfo might not be a valid array?
LOL Apparently it isn't, but I'm an idiot.

I had some old code in vb3.0 that would remind people to post after a few weeks. It was in the header template and used $bbuserinfo, which I read changed to $userinfo.

Coding and I work together like cornpops and wingnuts.

hmmm

i used $bbuserinfo['username'] and it worked. I thought someone said that variable name had changed.

why does it auto merge my posts sometimes when they aren't double posts?

test

what the hell

every line i post it merges

am i only allowed so many posts a thread?

HELP?

this is really weird

Zachery
09-08-2005, 05:47 PM
LOL Apparently it isn't, but I'm an idiot.

I had some old code in vb3.0 that would remind people to post after a few weeks. It was in the header template and used $bbuserinfo, which I read changed to $userinfo.

Coding and I work together like cornpops and wingnuts.

hmmm

i used $bbuserinfo['username'] and it worked. I thought someone said that variable name had changed.

why does it auto merge my posts sometimes when they aren't double posts?

test

what the hell

every line i post it merges

am i only allowed so many posts a thread?

HELP?

this is really weird

Reason: Automerged Doublepost << try reading, its an anti bumping system we have installed and have had for ages now.

Yes varibles changed for php, but not in the templates

$bbuserinfo for php code in 3.0
$vbulletin->userinfo for php code in 3.5

fly
09-08-2005, 06:03 PM
Reason: Automerged Doublepost << try reading

That isn't very intuitive. Usually a double post is two of the same post... Oh well, semantics I guess. Thanks for the info!