![]() |
Will 'if_browser=ie' work in php files?
Just wondering, will this work in the php files?:
PHP Code:
|
No, the function is a javascript function and will work only within javascripts.
|
Ah right... thanks.
I guess there's no way to test what browser someone is using via PHP then? |
Take a look at how vB. does it (functions.php)
PHP Code:
|
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 |
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. |
Quote:
|
Thanks Brad.
So basically, this should work? PHP Code:
|
Yes that works, however. ;)
PHP Code:
|
All times are GMT. The time now is 07:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|