The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Alright...I am working on a bit of code for my forum style and this is the general premis.
In my postbit legacy, I give my users the ability to display their PSN and XBL gamercards. Now...this causes a bit of lag with mobile browsers so I want the ability to not show certain images or certain things for mobile browsers to improve load times. I have a bit of code in mind to do this but I am having difficulty with it. In my style template, I have something like this: <if condition="$_SERVER['HTTP_USER_AGENT'] == SOMETHING"> DO STUFF </if> that SOMETHING is supposed to be, say for example, the mobile safari user agent. I could turn that something into 'iPhone' but I would need an equivalent to a contains comparison as opposed to an ==.does anyone know the comparator for "contains"? I want to change the == to something that represents "contains" or "string contains" |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|