Dynamic rule based on user agent
-
The option to set widgets invisible for people with a certain user agent would be very handy.
We have some widgets that don’t work correctly on iPhones using the Safari browser and Nokia Lumia with Internet Explorer, but they work correctly on all other devices we have tested so far. The current rulesets allow to hide based on the browser, but they don’t allow for a device-based hiding.
I’d imagine the option would work well if users could add strings and decide whether that’s a Display or Do Not Display rule, and then have an option below for All The Other User Agents: Display or Do Not Display. This way we could create rules for “iPhone” and “Lumia”, and as they match strpos( $_SERVER[‘HTTP_USER_AGENT’], ‘iPhone’ ), the chosen rule of Do Not Display would be applied. For every other user agent we’d set Display.
Could this setting be added?
The topic ‘Dynamic rule based on user agent’ is closed to new replies.