The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Just wondering, will this work in the php files?:
PHP Code:
|
#2
|
|||
|
|||
![]()
No, the function is a javascript function and will work only within javascripts.
|
#3
|
||||
|
||||
![]()
Ah right... thanks.
I guess there's no way to test what browser someone is using via PHP then? |
#4
|
||||
|
||||
![]()
Take a look at how vB. does it (functions.php)
PHP Code:
|
#5
|
|||
|
|||
![]()
Here you go, and yes these functions will work in the .php files, plug-ins, and templates.
![]() https://vborg.vbsupport.ru/showthread.php?t=107538 |
#6
|
||||
|
||||
![]()
Thanks both.
Would I need to re paste the function in the script I want to use it? Or use a different if statement? Or can you give me some pointers in what I have to do in order to get an if statement like in Post #1 to work in the class_bbcode.php script? Appreciate any help! Thanks. |
#7
|
|||
|
|||
![]() Quote:
|
#8
|
||||
|
||||
![]()
Thanks Brad.
So basically, this should work? PHP Code:
|
#9
|
|||
|
|||
![]()
Yes that works, however.
![]() PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|