PDA

View Full Version : Using is_browser with version - in a plugin


Mark.B
11-12-2010, 09:59 PM
Can anyone help me with the correct syntax for using is_browser and checking the version in a plug in?

Basically I need to have a different value for IE7 (or ideally IE7 and below!).

I have tried this:

if (is_browser('ie,7'))

But this returns true for ALL versions of IE.

Alec W
11-13-2010, 06:39 PM
I was just trying to do the same in a template and found your post trying to figure it out. Just change the vb template if's to php if's

Came up with this.

<vb:if condition="is_browser('ie')">
<vb:if condition="is_browser('ie',8)">
<vb:else />
IE7 and below
</vb:if>
</vb:if>