Jump to content

Not run plugin IF Tapatalk. How can I detect Tapatalk?


SJ77

Recommended Posts

Posted

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?

Posted
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 ?

Posted

$_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.

Posted
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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...