vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Missing Hooks? (https://vborg.vbsupport.ru/showthread.php?t=231280)

Trek 12-27-2009 01:50 AM

Missing Hooks?
 
So I'm looking at the postbit_legacy template and I see a list of hooks within it, however when I create a new plugin, none of hooks are in the dropdown. Examples:

postbit_userinfo_left

postbit_userinfo_right_after_posts

postbit_userinfo_right

and so on... I'm sure I'm just not thinking clearly and missing something so it's ok to call me stupid. Just help me out. ;)

Lynne 12-27-2009 02:06 AM

Template hooks are not the same as the hook locations used for plugins. The hook locations shown in the dropdown are areas in the php code where you may insert more code. Template hooks are just areas in the templates where you may insert more html. You may want to read about the Plugin Manager in the manual.

Trek 12-27-2009 02:12 AM

Thanks Lynne, I realized how I was thinking wrong and came back to post that. Been awhile since I messed with this really and even then, it was very little. Thank you for your help.


All times are GMT. The time now is 01:24 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.01895 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete