vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Template Hook (https://vborg.vbsupport.ru/showthread.php?t=147447)

Atakan KOC 05-16-2007 10:00 PM

Template Hook
 
MEMBERINFO

$template_hook[memberinfo_pos1]
$template_hook[memberinfo_pos2]
$template_hook[memberinfo_pos3]
$template_hook[memberinfo_pos4]
$template_hook[memberinfo_foruminfo]
$template_hook[memberinfo_iminfo]
$template_hook[memberinfo_contactinfo]
$template_hook[memberinfo_additionalinfo]
$template_hook[memberinfo_groups]

navbar


$template_hook[navbar_buttons_left]
$template_hook[navbar_buttons_right]
$template_hook[navbar_search_menu]
$template_hook[navbar_quick_links_menu_pos1]
$template_hook[navbar_quick_links_menu_pos2]
$template_hook[navbar_quick_links_menu_pos3]

postbit & postbit_legacy

$template_hook[postbit_start]
$template_hook[postbit_userinfo_left]
$template_hook[postbit_userinfo_right]
$template_hook[postbit_userinfo_right_after_posts]
$template_hook[postbit_messagearea_start]
$template_hook[postbit_signature_start]
$template_hook[postbit_signature_end]
$template_hook[postbit_controls]
$template_hook[postbit_end]
$template_hook[postbit_user_popup]

USERCP

$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]

USERCP_SHELL

$template_hook[usercp_navbar_bottom]

modifyoptions

$template_hook[usercp_options_start]
$template_hook[usercp_options_privacy]
$template_hook[usercp_options_messaging]
$template_hook[usercp_options_threadview]
$template_hook[usercp_options_datetime]
$template_hook[usercp_options_other]
$template_hook[usercp_options_end]


Simple Usage

Hook Location : global_start
Title : Navbar Template Hook

Plugin PHP Code
PHP Code:

$template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="index.php">Home Page</a></td>'


Milad 05-18-2007 01:08 PM

Thanks for gathering them. I was waiting for someone to do so. are they the whole matter?

Antivirus 05-20-2007 02:12 PM

Nice work atakan, you could also place the html that will be inserted into the hook, within the Template System and call it in a plugin like this:

PHP Code:

eval('$template_hook[navbar_buttons_left] .= "' fetch_template('new_navbar_item') . '";'); 

Where new_navbar_item is the html (template) to be inserted, such as:

<td class="vbmenu_control"><a href="myscript.php">My Script</a></td>

Michael Biddle 05-20-2007 04:50 PM

Thanks for this Atakan, wil,l help us coders :D

Atakan KOC 07-27-2007 09:53 AM

<font color="Red">New Template Hook (3.6.8)</font>
$template_hook[postbit_userinfo_right_after_posts]
$template_hook[usercp_options_start]
$template_hook[usercp_options_privacy]
$template_hook[usercp_options_messaging]
$template_hook[usercp_options_threadview]
$template_hook[usercp_options_datetime]
$template_hook[usercp_options_other]
$template_hook[usercp_options_end]

King Kovifor 07-28-2007 08:13 PM

Quote:

Originally Posted by Atakan KOC (Post 1302937)
New Template Hook (3.6.8)
$template_hook[postbit_userinfo_right_after_posts]
$template_hook[usercp_options_start]
$template_hook[usercp_options_privacy]
$template_hook[usercp_options_messaging]
$template_hook[usercp_options_threadview]
$template_hook[usercp_options_datetime]
$template_hook[usercp_options_other]
$template_hook[usercp_options_end]

Why not put those in the first post?

Atakan KOC 07-30-2007 11:53 AM

Are you sure ? :)

raztrip 05-24-2008 06:27 PM

How come this worked with all template hooks except for those in the posbit template?

I have vB 3.6.8, build 2.

tazzarkin 07-06-2008 02:44 AM

Anyone know how to put a $vbphrase within a hook?

TheInsaneManiac 07-06-2008 11:03 PM

Quote:

Originally Posted by tazzarkin (Post 1567839)
Anyone know how to put a $vbphrase within a hook?

If I am not mistaken, you can do AntiVirus's way and include a template. That should allow the $vbphrase to work.


All times are GMT. The time now is 01:14 AM.

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.01360 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete