PDA

View Full Version : Disable some, but not all, plugins in PHP?


mathforum
01-23-2014, 08:21 PM
I use Tapatalk on my site and on my old Android phone I had almost no issues. This week I switched to an iPhone and discovered that there was a major issue on these phones that makes posting anything from Tapatalk result in an error message. Found out that this is usually due to a 3rd party add-on so I added a disable hooks line in the Tapatalk php file and the error is gone.

The only downside is that now I can't use vBSEO likes on my phone, as all modifications are disabled. So my question is can we disable plugins with PHP? I know it can be done with SQL, according to this thread (https://vborg.vbsupport.ru/showthread.php?t=259619), but I'm hoping there is a fix I can add to the main Tapatalk PHP file so the code only runs when Tapatalk is in use and a lot of other conditionals can be avoided.

Any ideas?

Zachery
01-23-2014, 08:29 PM
Just disable each addon one at a time, untiol you figure out what other addon is causing the problem.

mathforum
01-23-2014, 08:39 PM
I don't want to remove whatever add-on is causing the problem though - I just want to disable it when Tapatalk is being used to view the site. If it gets too messy to do this then I'll have to use your suggestion but hopefully another option is possible.

If the capability exists for this in PHP then it will be nice since the main Tapatalk file isn't called unless someone is using the app on his or her phone, so it wouldn't mess with normal browsing.

Zachery
01-23-2014, 08:43 PM
Okay, but, you first need to figure out WHICH addon it is, so lets start there, right?

mathforum
01-23-2014, 08:54 PM
I was going to just disable all plugins except for vBSEO, since the likes function is the only thing I'm after enabling in Tapatalk. It seems unneeded to find out which mods cause the problem if they won't be enabled, right? If I'm wrong here in my reasoning or understanding of how this works, I'll gladly find it the problem add-on(s). :) Just want to run this argument by you first.

Zachery
01-23-2014, 09:27 PM
'You can't really do that. But if you figure out which addon is causing a problem, you can probably disable it when it detects tapatalk.

Lynne
01-23-2014, 10:11 PM
There is no way to disable all plugins except tapatalk. You can do as Zachery has suggested and disable some plugins, but only if they have an on/off switch. Not all plugins have on/off switches though, so even that will be difficult. I don't have the code to detect whether tapatalk is being used. So, that is problem one to figure out, then problem two is finding out if the problem plugin has an on/off switch.

RichieBoy67
01-23-2014, 11:32 PM
I know it is a pain to go and disable them all one by one but that is the only way to do it if you want to leave one running.

There was just an update for Tapatalk this week too so you may want to try it. I don't know about the Vbseo likes system working in tapatalk though. I didn't know it ever did.