PDA

View Full Version : [Question] How to bypass API for certain plugins?


forexforum
08-05-2011, 09:33 AM
Hi there,

This is regarding vbulletin mobile app.

I am not a programmer so I sincerely need a help here. What do they mean by this:

if (!VB_API) {

Plugin code here

}

I know there is an but can someone navigate or point me to the exact location on how to change and which hook etc?

For example, glowmatic spam or vbet, or VSA advanced forum rules etc.

Thank you.

--------------- Added 1312542541 at 1312542541 ---------------

Can some help me?

:(

kh99
08-05-2011, 11:43 AM
If I understand correctly, you want to modify some existing mods like glowmatic spam or VSA advanced forum rules so that they don't work if you're using the mobile app? Then what you'd do is, in the adminCP go to Plugins and Products -> Plugin Manager, and that lists the plugins sorted by product. There you can edit each plugin and surround it with the code above.

forexforum
08-05-2011, 03:44 PM
Hi advisor kh99,

Thanks for your reply! Yes I think this is what I want. However, for example some of the plugins consist too many hooks, do you think you are able to help, say for example plugin "XXX", and how do I create a global hook so that I can call out "(!VB_API)" whenever the plugin "XXX" is being used. Instead of inserting the code in every of the plugin hook locations.

Lynne
08-05-2011, 03:52 PM
The only way to do it is to edit every plugin of that modification if you need none of that code to run when you are using the mobile app.