The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What am I doing wrong?
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
Code:
<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> |
#2
|
|||
|
|||
What condition? There is no condition in what you have posted.
|
#3
|
|||
|
|||
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?
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Quote:
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 |
#6
|
||||
|
||||
Quote:
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 |
#7
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|