The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Dealing With Conditions Errors Without a Condition?
So I assume I am going to learn something new today with vBulletin. I have a plugin that runs this wonderful query.
PHP Code:
PHP Code:
PHP Code:
Quote:
I could put this on line 1 or line 51 no matter what or any other part of that $ppv array that I try to insert and it gives errors gallore. So I guess my question is what in vBulletin or programming mechanics could cause this when there is no if statement in there and why would it only sound off the alarms for certain parts of the array even though all data type of that array are the same. |
#2
|
||||
|
||||
Try:
Code:
{$ppv[1_wrestler1]} |
#3
|
|||
|
|||
You must enclose the key in double quotes if it starts with an integer or you will get a parse error.
|
#4
|
||||
|
||||
I'm not really sure I follow what you mean. Could you give me an example?
|
#5
|
|||
|
|||
$ppv["1_wrestler1"]
|
#6
|
||||
|
||||
That gives you this:
Quote:
|
#7
|
||||
|
||||
That will not work in a template (quoting, I mean). Assign that value to another variable, and use that instead.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|