vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   hook_vbulletin.xml (https://vborg.vbsupport.ru/showthread.php?t=82776)

calorie 06-10-2005 01:15 AM

hook_vbulletin.xml
 
So I see how to mod hook_vbulletin.xml, but I don't see, and maybe I'm blind, what exactly hook_vbulletin.xml does? I haven't yet been able to get a super clear picture of how the hook tags in hook_vbulletin.xml translate into using, say, set_session_visibility() in a plugin, and where a call to $session->set_session_visibility() in a custom plugin would first be available.

Andreas 06-10-2005 02:20 AM

hooks_vbulletin.xml holds the definition for all available hooks.
Take a look here: https://vborg.vbsupport.ru/showthread.php?t=82703

As for your $session->set_session_visibility() question:

Once again, the first hook being called for every page (only for registered users!) is fetch_userinfo.

calorie 06-10-2005 02:39 AM

Quote:

Originally Posted by KirbyDE
hooks_vbulletin.xml holds the definition for all available hooks.
Take a look here: https://vborg.vbsupport.ru/showthread.php?t=82703

As for your $session->set_session_visibility() question:

Once again, the first hook being called for every page (only for registered users!) is fetch_userinfo.

Ah, I knew you luved me. :p

So, set_session_visibility maps to fetch_userinfo, right?, and fetch_userinfo is hooktype general (what is general?) so I guess what I'd like is a way (maybe it already exists and I missed it) to know what functions map to the hook tags in hooks_vbulletin.xml file, and what files accept what hooktype.

Andreas 06-10-2005 03:14 AM

Hooktype is just to group hooks, it does not have any "real" meaning.
Hooktype general contains hooks that are not bound to specific functions, eg. are at places commonly used (like in global.php, functions, php, class_bbcodeparse.php).

Hooksd not "map to functions". Hooks can be in functions, yes - but they don't have to.
A hook can be just almost anywhere.

Read Brads Howto.


All times are GMT. The time now is 01:48 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.00911 seconds
  • Memory Usage 1,714KB
  • 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_quote_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