Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
SJ77 Posted May 2, 2017 Posted May 2, 2017 Hi I have a great plugin but if accessing my site through tapatalk it messes things up. Is there an easy way to detect if user is using tapatalk? Plugin developer says he can make an "If statement" but doesn't know how to detect Tapatalk presence. if (Tapatalk) { */ don't run plugin } else */ run plugin } Something like the above... any tips? How can I detect Tapatalk?
sudo Posted May 2, 2017 Posted May 2, 2017 The app uses a specific user agent (unless a user switches to force it to use a mobile user agent)
SJ77 Posted May 2, 2017 Author Posted May 2, 2017 6 minutes ago, ZeroHour said: The app uses a specific user agent (unless a user switches to force it to use a mobile user agent) Are you suggesting that the plugin already isn't executing? The plugin we are talking about causes image attachments to be thumbnails in forum post. In tapatalk it seems to be using the thumbnail instead of the full version of image which looks horrible and is why developer wants to detect Tapatalk and have the plugin not execute. Can I detect tapatalk user agent ?
clearvision Posted May 2, 2017 Posted May 2, 2017 $_SERVER['HTTP_USER_AGENT'] has the user agent. The plugin code could check that. Would need to make sure of what Tapatalk puts there as it might vary depending on versions and such. You usually can extract out what you need though.
sudo Posted May 2, 2017 Posted May 2, 2017 5 hours ago, superj707 said: Are you suggesting that the plugin already isn't executing? The plugin we are talking about causes image attachments to be thumbnails in forum post. In tapatalk it seems to be using the thumbnail instead of the full version of image which looks horrible and is why developer wants to detect Tapatalk and have the plugin not execute. Can I detect tapatalk user agent ? Taptalk app including BYO usually have "Tapatalk" in the user agent, just tell your plugin to not execute for that useragent.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.