SJ77 Posted May 2, 2017 Share 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? Link to comment Share on other sites More sharing options...
sudo Posted May 2, 2017 Share Posted May 2, 2017 The app uses a specific user agent (unless a user switches to force it to use a mobile user agent) Link to comment Share on other sites More sharing options...
SJ77 Posted May 2, 2017 Author Share 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 ? Link to comment Share on other sites More sharing options...
clearvision Posted May 2, 2017 Share 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. Link to comment Share on other sites More sharing options...
sudo Posted May 2, 2017 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.