vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Hooks in vbulletin 3.7 Beta (https://vborg.vbsupport.ru/showthread.php?t=170566)

Paul M 02-15-2008 02:26 PM

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.

bobster65 02-15-2008 02:31 PM

Thank you for the list Paul!

cheesegrits 02-15-2008 02:34 PM

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

-- hugh

Princeton 02-15-2008 02:37 PM

thanks for the list Paul - very helpful :up:

Dismounted 02-16-2008 04:24 AM

Thanks Paul. That's definitely a shed load of hooks. I smell an RC coming along :p.

cheesegrits 02-16-2008 03:23 PM

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

-- hugh

Opserty 02-16-2008 08:31 PM

Were there others added in the previous Beta versions or have they all been added in this Release?

tommykjensen 02-18-2008 01:25 PM

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.

Boofo 02-18-2008 01:33 PM

You might need to gloabalize $vbulletin. ;)

tommykjensen 02-18-2008 06:35 PM

Quote:

Originally Posted by Boofo (Post 1445903)
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



All times are GMT. The time now is 06:49 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.01107 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_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