X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   {if} statement to identify browser/platform? (https://forum.x-cart.com/showthread.php?t=21736)

balinor 05-12-2006 08:14 AM

{if} statement to identify browser/platform?
 
Having a cross-browser issue with one of my clients, and need to throw in a padding value for Safari only. Anyone know what the {if} statement would be for this? Only reference I can find is this from button.tpl:

{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}

TelaFirma 05-12-2006 08:47 AM

You can try

{if $config.Adaptives.browser eq 'Safari'}

balinor 05-12-2006 08:50 AM

I did...but then it shows on Firefox as well :(

TelaFirma 05-12-2006 09:04 AM

Quote:

Originally Posted by balinor
I did...but then it shows on Firefox as well :(


Now, that should not happen because the value in that variable if you are using Firefox IS 'Firefox'.

balinor 05-12-2006 09:06 AM

Yea, that is what I thought too

TelaFirma 05-12-2006 09:26 AM

I know this is obvious... but you did use eq and not ne... right?

balinor 05-12-2006 09:38 AM

8O

Whadaya think I'm some newb? :)

TelaFirma 05-12-2006 11:21 AM

:-k


All times are GMT -8. The time now is 09:39 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.