The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
If statement
Ok I have the following IF statement:
PHP Code:
Note: In vbulletin 3.0 f is used to determine the forum id. |
#2
|
||||
|
||||
vB3 code/hacking isn't allowed to be discussed yet.
Also editing any main files is pretty dumb. It's not even RC yet and that means alot may still change. |
#3
|
||||
|
||||
Personally I feel this is perfectly legit. I have asked questions before about vbulletin 3. I'm not asking how to do it just if someone would look at my if statement and see if there is anything wrong with it.
|
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
I think you still need the ' ' around the 57 but it works thanks!
|
#6
|
|||
|
|||
PHP rarely cares about data types. The only time it definitely will is if you use the === operator which implicitly checks the type of the left and right values.
Also vB3 hacking discussion is not allowed as Steve said. |
#7
|
||||
|
||||
Quote:
If my question was stated was it was is it ok? I didn't really want to know how to do it in vb3 just if my if statement was correct or not which Steve correct for me. |
#8
|
|||
|
|||
I'm just confirming what he said; I wasn't necessarily saying that your question was central to vB3.
|
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
You need the ' ' when it's a string
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|