Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles

Reply
 
Thread Tools
vB4 Hook Locations
Eric's Avatar
Eric
Join Date: May 2006
Posts: 792

 

Kentucky
Show Printable Version Email this Page Subscription
Eric Eric is offline 11-25-2009, 10:00 PM

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.
Attached Files
File Type: txt hooks.txt (61.0 KB, 549 views)
Reply With Quote
  #12  
Old 11-12-2012, 07:55 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried every reasonable hook for an automatic login of an externally authenticated user and they all either crash the system or fall into a login_redirect loop.

Global_complete worked under 3.8 but I have not been able to get this to work at all under V4+.

The desired behavior is that when someone navigates to the site (by any means) their authentication cooky is seen and then validated to be still active by the foreign authentication server and then they are logged in without needing to click on any buttons or links.

I have been working on this for over 6 months now off and on.

---------------------------------------------------------------------------------------

And finally this afternoon, I noticed that bbsessionshash was now bb_sessionhash. Did I edit the prefix when I installed v4 or did vB contribute the underscore.
Reply With Quote
  #13  
Old 11-12-2012, 08:47 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The session cookie (and others) changed to gain the underscore in vB 4.0.1 or 4.0.2, I dont recall which. Interestingly, it gets removed again in vB5,
Reply With Quote
  #14  
Old 02-16-2013, 10:05 PM
hugh_ hugh_ is offline
 
Join Date: Mar 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thought this might be worth updating...

Code:
{vb:raw template_hook.activitystream_filter}
{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.forumdisplay_filters}
{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_pos6}
{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_icon_legend}
{vb:raw template_hook.forumhome_wgo_pos5}
{vb:raw template_hook.memberinfo_css}
{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_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.navtab_end}
{vb:raw template_hook.navbar_advanced_search}
{vb:raw template_hook.navbar_after_sublinks}
{vb:raw template_hook.navbar_after_links}
{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.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.threadtoolbar}
{vb:raw template_hook.showthread_adminoptions}
{vb:raw template_hook.inlinemod_post_bottom}
{vb:raw template_hook.showthread_after_activeusers}
{vb:raw template_hook.showthread_whoread_readers}
{vb:raw template_hook.showthread_after_whoread}
{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_list}
{vb:raw template_hook.usercp_navbar_profile}
{vb:raw template_hook.usercp_navbar_myaccount_list}
{vb:raw template_hook.usercp_navbar_myaccount}
{vb:raw template_hook.usercp_navbar_networking_list}
{vb:raw template_hook.usercp_navbar_networking}
{vb:raw template_hook.usercp_navbar_miscellaneous_list}
{vb:raw template_hook.usercp_navbar_miscellaneous}
{vb:raw template_hook.usercp_navbar_moderation_list}
{vb:raw template_hook.usercp_navbar_bottom}
{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.header_userinfo}
{vb:raw template_hook.memberaction_dropdown_items}
{vb:raw template_hook.footer_links}
{vb:raw template_hook.footer_javascript}
{vb:raw template_hook.footer_copyright}
{vb:raw template_hook.headinclude_bottom_css}
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:25 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.03780 seconds
  • Memory Usage 2,276KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (2)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete