Conditional if browser

alt=
@andrusito
7 years ago
302 posts
Hi,

Is there any conditional tag for 'browser'? I know in Wordpress you have this, using a plugin:

[is_browser name="chrome" version="45"]
You are using Chrome 45 or above.
[/is_browser]

Anything like that for Jamroom? I've already check the {debug} but didn't find it.

Thanks-
updated by @andrusito: 05/28/17 08:28:07PM
michael
@michael
7 years ago
7,746 posts
In a .tpl template file the available functions along those lines are:
{if jrCore_is_mobile_device()}
{if jrCore_is_tablet_device()}

There currently is no smarty function to determine which browser is being used. If you wanted to create one, you could use a custom smarty function.

Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function
alt=
@andrusito
7 years ago
302 posts
Ok, I'll try that

Thanks

Just another question. Can u tell me what does 'utmz', 'utmt', etc mean?

I found that in my debug console.

Thanks again
alt=
@andrusito
7 years ago
302 posts
jajajaja thanks Dazed
Dazed
Dazed
@dazed
7 years ago
1,022 posts
Hehe no worries. I could not resist 😀

Tags