vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4 Hook Locations (https://vborg.vbsupport.ru/showthread.php?t=228920)

Eric 11-25-2009 10:00 PM

vB4 Hook Locations
 
1 Attachment(s)
These locations are as of [S]vBulletin 4 Beta 4[/S] vBulletin 4.0.2, and will be updated as necessary.



Template Hooks

This list was generated by the following command using /install/vbulletin-style.xml:

For new style hooks:
Code:

grep -o "{vb:raw template_hook.*\?}" vbulletin-style.xml > thooks.txt
To find any old:
Code:

grep -o "template_hook\[.*\?\]" vbulletin-style.xml > thooks2.txt
Code:

{vb:raw template_hook.albumbit_start}
{vb:raw template_hook.albumbit_end}
{vb:raw template_hook.album_overview_before_latest}
{vb:raw template_hook.album_overview_after_latest}
{vb:raw template_hook.album_overview_user_start_col}
{vb:raw template_hook.album_overview_user_end_column}
{vb:raw template_hook.album_overview_after_user}
{vb:raw template_hook.forumdisplay_above_subforums}
{vb:raw template_hook.forumdisplay_below_subforums}
{vb:raw template_hook.forumdisplay_above_threadlist}
{vb:raw template_hook.inlinemod_thread_bottom}
{vb:raw template_hook.forumdisplay_below_threadlist}
{vb:raw template_hook.forumhome_above_forums}
{vb:raw template_hook.forumhome_below_forums}
{vb:raw template_hook.forumhome_wgo_pos1}
{vb:raw template_hook.forumhome_wgo_pos2}
{vb:raw template_hook.forumhome_wgo_pos3}
{vb:raw template_hook.forumhome_wgo_pos4}
{vb:raw template_hook.forumhome_wgo_stats}
{vb:raw template_hook.forumhome_wgo_pos5}
{vb:raw template_hook.profile_sidebar_first}
{vb:raw template_hook.profile_sidebar_stats}
{vb:raw template_hook.profile_sidebar_friends}
{vb:raw template_hook.profile_sidebar_albums}
{vb:raw template_hook.profile_sidebar_groups}
{vb:raw template_hook.profile_sidebar_last}
{vb:raw template_hook.profile_tabs_first}
{vb:raw template_hook.profile_tabs_last}
{vb:raw template_hook.profile_tabs}
{vb:raw template_hook.profile_stats_first}
{vb:raw template_hook.profile_stats_pregeneral}
{vb:raw template_hook.profile_stats_last}
{vb:raw template_hook.profile_ministats_list}
{vb:raw template_hook.profile_stats_first}
{vb:raw template_hook.profile_stats_pregeneral}
{vb:raw template_hook.profile_stats_last}
{vb:raw template_hook.usercp_options_start}
{vb:raw template_hook.usercp_options_privacy}
{vb:raw template_hook.usercp_options_messaging}
{vb:raw template_hook.usercp_options_threadview}
{vb:raw template_hook.usercp_options_datetime}
{vb:raw template_hook.usercp_options_other}
{vb:raw template_hook.usercp_options_end}
{vb:raw template_hook.navtab_start}
{vb:raw template_hook.navbar_start}
{vb:raw template_hook.navbar_after_getnew}
{vb:raw template_hook.navbar_after_pm}
{vb:raw template_hook.navbar_after_faq}
{vb:raw template_hook.navbar_after_calendar}
{vb:raw template_hook.navbar_community_menu_start}
{vb:raw template_hook.navbar_community_menu_end}
{vb:raw template_hook.navbar_after_community}
{vb:raw template_hook.navbar_quick_links_menu_pos1}
{vb:raw template_hook.navbar_quick_links_menu_pos2}
{vb:raw template_hook.navbar_quick_links_menu_pos3}
{vb:raw template_hook.navbar_quick_links_menu_pos4}
{vb:raw template_hook.navbar_end}
{vb:raw template_hook.navbar_start}
{vb:raw template_hook.navbar_after_getnew}
{vb:raw template_hook.navbar_after_pm}
{vb:raw template_hook.navbar_after_faq}
{vb:raw template_hook.navbar_after_calendar}
{vb:raw template_hook.navbar_community_menu_start}
{vb:raw template_hook.navbar_community_menu_end}
{vb:raw template_hook.navbar_after_community}
{vb:raw template_hook.navbar_quick_links_menu_pos1}
{vb:raw template_hook.navbar_quick_links_menu_pos2}
{vb:raw template_hook.navbar_quick_links_menu_pos3}
{vb:raw template_hook.navbar_quick_links_menu_pos4}
{vb:raw template_hook.navbar_end}
{vb:raw template_hook.navtab_middle}
{vb:raw template_hook.navbar_getnew_menu}
{vb:raw template_hook.navbar_getdaily_menu}
{vb:raw template_hook.navtab_end}
{vb:raw template_hook.postbit_userinfo_left}
{vb:raw template_hook.postbit_userinfo_right_after_posts}
{vb:raw template_hook.postbit_userinfo_right}
{vb:raw template_hook.postbit_messagearea_start}
{vb:raw template_hook.postbit_signature_start}
{vb:raw template_hook.postbit_signature_end}
{vb:raw template_hook.postbit_controls}
{vb:raw template_hook.postbit_end}
{vb:raw template_hook.postbit_start}
{vb:raw template_hook.postbit_userinfo_left}
{vb:raw template_hook.postbit_userinfo_right_after_posts}
{vb:raw template_hook.postbit_userinfo_right}
{vb:raw template_hook.postbit_messagearea_start}
{vb:raw template_hook.postbit_signature_start}
{vb:raw template_hook.postbit_signature_end}
{vb:raw template_hook.postbit_controls}
{vb:raw template_hook.postbit_end}
{vb:raw template_hook.search_results_top}
{vb:raw template_hook.showthread_above_posts}
{vb:raw template_hook.inlinemod_post_bottom}
{vb:raw template_hook.showthread_after_activeusers}
{vb:raw template_hook.showthread_below_posts}
{vb:raw template_hook.group_categorylist_start_col}
{vb:raw template_hook.group_categorylist_end_col}
{vb:raw template_hook.group_categorybit_start}
{vb:raw template_hook.group_categorybit_end}
{vb:raw template_hook.group_discussionbit_start}
{vb:raw template_hook.group_discussionbit_end}
{vb:raw template_hook.group_discuss_before_messages}
{vb:raw template_hook.group_discuss_after_messages}
{vb:raw template_hook.group_discuss_after_action_links}
{vb:raw template_hook.group_discuss_after_bookmarks}
{vb:raw template_hook.group_discuss_after_quick_reply}
{vb:raw template_hook.group_discussionbit_start}
{vb:raw template_hook.group_discussionbit_end}
{vb:raw template_hook.group_discussionbit_start}
{vb:raw template_hook.group_discussionbit_end}
{vb:raw template_hook.group_after_mygroups_bit}
{vb:raw template_hook.group_after_groups_bit}
{vb:raw template_hook.group_after_newgroup_bit}
{vb:raw template_hook.group_overview_start}
{vb:raw template_hook.group_own_group_info}
{vb:raw template_hook.group_after_groups_bit}
{vb:raw template_hook.usercp_main_pos1}
{vb:raw template_hook.usercp_main_pos2}
{vb:raw template_hook.usercp_main_pos3}
{vb:raw template_hook.usercp_main_pos4}
{vb:raw template_hook.usercp_main_pos5}
{vb:raw template_hook.usercp_main_pos6}
{vb:raw template_hook.usercp_navbar_profile}
{vb:raw template_hook.usercp_navbar_myaccount}
{vb:raw template_hook.usercp_navbar_networking}
{vb:raw template_hook.usercp_navbar_miscellaneous}
{vb:raw template_hook.usercp_navbar_bottom}
{vb:raw template_hook.postbit_start}
{vb:raw template_hook.footer_links}
{vb:raw template_hook.footer_javascript}
{vb:raw template_hook.header_userinfo}
{vb:raw template_hook.headinclude_javascript}
{vb:raw template_hook.custom_css_links}
{vb:raw template_hook.custom_css_list}
{vb:raw template_hook.headinclude_css}
{vb:raw template_hook.headinclude_bottom_css}
{vb:raw template_hook.memberaction_dropdown_items}
template_hook[memberinfo_css]



PHP/File Hooks

This list was generated by the following command while in the vB 4 root upload folder:
Code:

find . | xargs grep -o "fetch_hook('.*\?')" > hooks.txt
It is output in the format of: ./{filename}:fetch_hook({hook})

The list is attached, as it is way too long to post here.

Zaiaku 11-26-2009 10:47 PM

Just the thing I was looking for. TY

ragtek 11-27-2009 04:53 AM

Quote:

Originally Posted by SecondV (Post 1921105)
It is output in the format of: {filename}:{hook}

That's not correct.

The format is
./usernote.php:fetch_hook('usernote_start')
what means

.({filename}:fetch_hook{hook}

so you should maybe delete the .( and fetch_hook ;)


Also what's the benefit from this lists?
How should they make the developer's life easier?*g*

mrpaint 11-27-2009 08:38 AM

For plugin hooks, why don't just open includes/hooks_vbulletin.xml? I always look for useful hooks from that file and guess the script where that hook should be placed. Or, of course, do a quick file search if no guessing matched :D

ragtek 11-28-2009 01:32 AM

You also see them on the pluginspage(if they are "registered in the hook xml file;)

BBR-APBT 11-30-2009 06:26 PM

Nice List this has came in handy a few times.

arvid 03-04-2010 05:57 AM

Is there any easy way to find out in what order the hooks are executed for a certain page? Sure I can activate debug mode, but that just shows me the hooks that are active and called, not all of them.

(Debug mode is activated by inserting the following in config.php)
Code:

$config['Misc']['debug'] = true;

fabioski 05-18-2010 12:45 PM

Which is the hook location for a plugin that send output for:
ad_showthread_firstpost template?

encryption 06-07-2010 10:28 PM

Does anybody know the hook location for adding a field to the newthread template form?

ChiNa 08-28-2012 06:07 PM

Thanks you so much, this is so far my favorit... Need this for creating..


All times are GMT. The time now is 03:34 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01314 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete