The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP conditional for vBulletin version?
Is there one? Haven't exactly searched/looked through any files for this, but is there a PHP conditional for what version of vBulletin you're on?
For example: PHP Code:
|
#3
|
||||
|
||||
Hmm....never even noticed lol. I'll go have a look
|
#4
|
|||
|
|||
There's a PHP function version_compare() for doing compares on version strings: http://us2.php.net/manual/en/functio...on-compare.php and the vbulletin version is in $vbulletin->versionnumber, so you could do something like
PHP Code:
An example I found in the vb code had the '@' there, I'm not sure why, I guess it would suppress an error message if $vbulletin->versionnumber didn't exist but I don't know if or when that would happen. |
Благодарность от: | ||
HMBeaty |
#5
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|