vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   [Question] How to bypass API for certain plugins? (https://vborg.vbsupport.ru/showthread.php?t=267996)

forexforum 08-05-2011 09:33 AM

[Question] How to bypass API for certain plugins?
 
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:

Code:

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 [DATE]1312542541[/DATE] at [TIME]1312542541[/TIME] ---------------

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.


All times are GMT. The time now is 07:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01002 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete