Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2008, 02:26 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 Hooks in vbulletin 3.7 Beta

Just in case you are not aware, a shed load of hooks were added in Beta 5 (over 200).

It seems a few were removed as well (some due to re-names I think).


Hooks Added ;

Code:
album_start_precheck
album_start_postcheck
album_album_update
album_album_edit
album_picture_update
album_picture_update_complete
album_picture_editbit
album_picture_edit_complete
album_picture_upload_setup
album_picture_upload_process
album_picture_upload_complete
album_picture_add
album_picture_doaddgroups_multiple
album_picture_doaddgroups
album_picture_addgroups
album_picture
album_picture_complete
album_album
album_album_query
album_album_picturebit
album_album_complete
album_user_query
album_user_albumbit
album_user_complete
album_moderated_complete
album_unread_picturebit
album_unread_complete
album_fetch_albuminfo
album_fetch_pictureinfo
album_prepare_thumb
album_can_see_private
announcement_query
attachment_lightbox
calendar_start2
converse_start
converse_query
converse_complete
deletionlogdata_start
deletionlogdata_presave
deletionlogdata_postsave
deletionlogdata_delete
forumdisplay_announcement_query
bbcode_parse_complete_precache
prefix_fetch_array
admin_humanverify_intro_start
group_start_precheck
group_start_postcheck
group_list_mygroupsbit
group_list_filter
group_list_groupbit
group_dojoin
group_docreate
group_doedit
group_memberbit
group_view_message_start
group_view_message_query
group_view_pictures_start
group_pictures_query
group_picturebit
group_memberbit
group_picture_insert
group_picture_insert_rebuild
group_picture_insert_errors
group_picture_delete
group_pictures_query
group_picturebit
group_picture
group_manage_memberbit
group_kickmember
group_kickmember_complete
group_pending_members
group_pending_members_complete
group_complete
group_prepareinfo
group_fetch_pictureinfo
group_build_counters
group_inlinemod_authenticate_switch
group_inlinemod_start
group_inlinemod_approveunapprove
group_inlinemod_delete
group_inlinemod_dodelete
group_inlinemod_undelete
group_message_post_start
group_message_post_ajax
group_message_post_complete
group_message_form_start
group_message_form_complete
group_message_delete
group_message_getip
group_messagebit_factory
group_messagebit_display_start
group_messagebit_display_complete
groupmessagedata_start
groupmessagedata_presave
groupmessagedata_postsave
groupmessagedata_delete
member_profileblock_friends_query
member_profileblock_friendbit
member_profileblock_profilefieldbit
member_profileblock_profilefield_category
member_profileblock_album_query
member_profileblock_recentvisitors_query
member_profileblock_visitormessage_query
member_start_fetch_user
userprofile_create
userprofile_prepare
member_inlinemod_authenticate_switch
member_inlinemod_start
member_inlinemod_approveunapprove
member_inlinemod_delete
member_inlinemod_dodelete
member_inlinemod_undelete
moderation_visitor_messages_start
moderation_visitor_messages_sort
moderation_visitor_messages_query
moderation_visitor_messages_complete
moderation_group_messages_start
moderation_group_messages_sort
moderation_group_messages_query
moderation_group_messages_complete
moderation_picture_comments_start
moderation_picture_comments_sort
moderation_picture_comments_query
moderation_picture_comments_complete
notices_check_start
picture_start
picture_imageinfo
picture_haveimage
picture_comment_start
picture_comment_start2
picture_comment_post_start
picture_comment_post_ajax
picture_comment_post_complete
picture_comment_form_start
picture_comment_form_complete
picture_comment_getip
picture_comment_complete
picture_commentbit_factory
picture_commentbit_display_start
picture_commentbit_display_complete
picture_comment_query
picture_comment_build_counters
picturecomment_inlinemod_authenticate_switch
picturecomment_inlinemod_start
picturecomment_inlinemod_approveunapprove
picturecomment_inlinemod_delete
picturecomment_inlinemod_dodelete
picturecomment_inlinemod_undelete
picturecommentdata_start
picturecommentdata_presave
picturecommentdata_postsave
picturecommentdata_delete
pmdata_postsave_recipient
posthistory_comparebit
profile_updatesigpic_start
profile_updatesigpic_complete
profile_docustomize_start
profile_docustomize_process
profile_customize_start
profile_customize_bit
rssposter_parse_atom
rssposter_parse_rss
socgroupdata_start
socgroupdata_presave
socgroupdata_postsave
socgroupdata_delete
socgroupmemberdata_start
socgroupmemberdata_presave
socgroupmemberdata_postsave
socgroupmemberdata_delete
showthread_bookmarkbit
tag_fetchbit
tag_fetchbit_complete
tag_cloud_bit
tags_start
tags_cloud_complete
tags_list_query_limit
tags_list_query_data
tags_list_threads
tags_list_complete
threadtag_start
threadtag_domanage_delete
threadtag_domanage_postdelete
threadtag_managebit
threadtag_manage_tagsremain
usercss_create
usercss_parse
usercss_build_property
usercss_build_css
usercss_build_display_array
usercss_build_css_array
visitor_message_start
visitor_message_post_start
visitor_message_post_ajax
visitor_message_post_complete
visitor_message_form_start
visitor_message_form_query
visitor_message_form_complete
visitor_message_getip
visitor_message_complete
visitor_messagebit_factory
visitor_messagebit_display_start
visitor_messagebit_display_complete
visitor_message_build_counters


Hooks Removed;

Code:
admin_humanverify_intro
member_socnet_start
moderation_messages_start
moderation_messages_sort
moderation_messagesquery
moderation_messages_complete
profile_editlist
profile_updatelist_start
profile_updatelist_user
profile_updatelist_complete
profile_removelist
profile_doremovelist
profile_addlist
profile_doaddlist_start
profile_doaddlist_complete
visitor_messaging_start
visitor_messaging_post_start
visitor_messaging_post_ajax
visitor_messaging_post_complete
visitor_messaging_form_start
visitor_messaging_form_query
visitor_messaging_form_complete
visitor_message_getip
visitor_message_complete
threadmanage_split_start
threadmanage_split_newthread
threadmanage_split_complete

Also, four new template hooks were added ;

[profile_stats_first]
[profile_stats_pregeneral]
[profile_stats_last]
[navbar_quick_links_menu_pos4]


Also, the [navbar_quick_links_menu_pos2] & [navbar_quick_links_menu_pos3] hooks moved slightly.
Reply With Quote
  #2  
Old 02-15-2008, 02:31 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the list Paul!
Reply With Quote
  #3  
Old 02-15-2008, 02:34 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoop whoop, a bunch of hooks in the new profile stuff. I was beginning to wonder ...

-- hugh
Reply With Quote
  #4  
Old 02-15-2008, 02:37 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the list Paul - very helpful :up:
Reply With Quote
  #5  
Old 02-16-2008, 04:24 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Paul. That's definitely a shed load of hooks. I smell an RC coming along .
Reply With Quote
  #6  
Old 02-16-2008, 03:23 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, they do have a distinctive odor. Kind of a mixture of mountain dew, sweat and late nights.

-- hugh
Reply With Quote
  #7  
Old 02-16-2008, 08:31 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Were there others added in the previous Beta versions or have they all been added in this Release?
Reply With Quote
  #8  
Old 02-18-2008, 01:25 PM
tommykjensen tommykjensen is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I append my own template to the template $ad_location[ad_navbar_below] without modifying the template manually?

In 3.6.x I added my own template hook in forumhome after $navbar and used following code.

PHP Code:
            <phpcode><![CDATA[
            if (
$vbulletin->options['enableglobalannouncement'])
            {eval(
'$template_hook[forumhome_after_navbar] .= "' fetch_template('simple_global_announcement') . '";');}
    ]]></
phpcode
This code does not work in 3.7.0 when I try to use the new template hook that have been put in.
Reply With Quote
  #9  
Old 02-18-2008, 01:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might need to gloabalize $vbulletin.
Reply With Quote
  #10  
Old 02-18-2008, 06:35 PM
tommykjensen tommykjensen is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
You might need to gloabalize $vbulletin.
Don't know how to do that but lets forget that part for a moment. Following code works in 3.6.x

PHP Code:
            <phpcode><![CDATA
            eval(
'$template_hook[forumhome_after_navbar] .= "' fetch_template('simple_global_announcement') . '";');
    ]]></
phpcode

And the template will be dislayed if I put $template_hook[forumhome_after_navbar] in FORUMHOME after $navbar

I have tried

PHP Code:
$vbulletin->templatecache['navbar'] .= 'test'
and the word "test" is inserted where I want my template but following added to above does not work

PHP Code:
$vbulletin->templatecache['navbar'] .= $simple_global_announcement
Reply With Quote
Reply


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 09:18 PM.


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.06162 seconds
  • Memory Usage 2,272KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete