View Single Post
  #2  
Old 01-14-2009, 01:07 AM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template Hook Selection Tips:
1. You can find and place hooks in adv_portal, FORUMHOME, FORUMDISPLAY, & SHOWTHREAD templates. The hook must be $navbar, $template_hook, or a HTML comment (ie: $template_hook[place] or <!-- comment -->).

Example: This means that you go the VB Styles > Edit Templates > then review either the adv_portal (for vbAdvanced), FORUMHOME, FORUMDISPLAY (for pages listing threads), or SHOWTHREAD (for pages listing posts) for hooks that you can use.
As stated, the hook must be $navbar or something that starts with “$template_hook” or an html comment (which starts with <!-- and ends with -->). Examples are: $template_hook[forumhome_wgo_pos1] and <!-- what's going on box --> These are forumhome hooks so they won't work in the other pages (you must select different hooks for those pages).

2. If you set the hook to a nonexistent $template_hook or HTML comment, then the tag cloud will not show. Also, if you don’t specify a hook location then it will not show.
3. If you set the hook to a nonvalid value (ie: $test, test, <td>, etc.), then the tag cloud will show below the navbar by default.
4. If the hook occurs multiple times within the template, then the tag cloud will also appear multiple times.
5. If you’re familiar with the template, you can add your own $template_hook or HTML comment to place the tag cloud where you want.

6. The tag cloud will not show if you choose a hook located within an <if> condition that evaluates to false.
7. Hooks located in a table must be located within a <td> cell, otherwise the table layout may be messed up. Caution: forumhome’s template hooks are not located in <td> cells.
8. Hooking the tag cloud in the middle of a form can potentially disable the form. For example, in SHOWTHREAD if you use <!-- controls above postbits --> as a hook, then the inline moderation & tag editing will not function!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01213 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete