FractalizeR |
05-26-2008 10:00 PM |
Template hooks list in 3.7.0 and above
1 Attachment(s)
A list of template hooks in VBulletin 3.7.0:
Code:
template_hook[inlinemod_post_bottom]
template_hook[inlinemod_thread_bottom]
template_hook[memberinfo_css]
template_hook[navbar_buttons_left]
template_hook[navbar_buttons_right]
template_hook[navbar_quick_links_menu_pos1]
template_hook[navbar_quick_links_menu_pos2]
template_hook[navbar_quick_links_menu_pos3]
template_hook[navbar_quick_links_menu_pos4]
template_hook[navbar_search_menu]
template_hook[postbit_controls]
template_hook[postbit_end]
template_hook[postbit_messagearea_start]
template_hook[postbit_signature_end]
template_hook[postbit_signature_start]
template_hook[postbit_start]
template_hook[postbit_user_popup]
template_hook[postbit_userinfo_left]
template_hook[postbit_userinfo_right]
template_hook[postbit_userinfo_right_after_posts]
template_hook[profile_left_first]
template_hook[profile_left_last]
template_hook[profile_ministats_list]
template_hook[profile_right_album]
template_hook[profile_right_first]
template_hook[profile_right_last]
template_hook[profile_right_mini]
template_hook[profile_stats_first]
template_hook[profile_stats_last]
template_hook[profile_stats_pregeneral]
template_hook[usercp_main_pos1]
template_hook[usercp_main_pos2]
template_hook[usercp_main_pos3]
template_hook[usercp_main_pos4]
template_hook[usercp_main_pos5]
template_hook[usercp_main_pos6]
template_hook[usercp_navbar_bottom]
template_hook[usercp_options_datetime]
template_hook[usercp_options_end]
template_hook[usercp_options_messaging]
template_hook[usercp_options_other]
template_hook[usercp_options_privacy]
template_hook[usercp_options_start]
template_hook[usercp_options_threadview]
How to get this list from any VBulletin version?
- Take file /install/vbulletin-style.xml from VBulletin distributive.
- Execute command: grep -o "template_hook.*\?" vbulletin-style.xml > HooksList.txt
Windows users can download grep from here: http://gnuwin32.sourceforge.net/downlinks/grep.php. It is an automatic setup package.
You can personally see where the hooks are located using the following plugin attached to specific hook:
PHP Code:
$hooksToShow = array("usercp_main_pos1", "usercp_main_pos2", "usercp_main_pos3", "usercp_main_pos4", "usercp_main_pos5", "usercp_main_pos6", "usercp_navbar_bottom", "usercp_options_datetime", "usercp_options_end", "usercp_options_messaging", "usercp_options_other", "usercp_options_privacy", "usercp_options_start", "usercp_options_threadview");
foreach($hooksToShow as $hookToShow) {
$template_hook[$hookToShow] = '<div><font color="#FF0000"<b>'.$hookToShow.'</b></font></div>';
}
You can see where exactly hooks are located at the attached images:
|