vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   triggering a hook to show on a location? (https://vborg.vbsupport.ru/showthread.php?t=102544)

l3vi 12-08-2005 10:31 PM

triggering a hook to show on a location?
 
I need someone to clear this up for me.

Adding a hook I selected a hook location. What I want to do is add content from another query to each post. With that I’m assuming I need to use hook location 'showpost_post' then write my code.

What I’m looking to do is a reputation hook where it will show what other users have posted about that user post from the reputation input.

As I will want the putout to show up under the user text in their post do I have to change the template style to manage that?

I have noticed on older hacks for 3.0 they created 1-2 template styles, and then edited the code. As I’m in 3.5.2 I’m planning to just write a hook and do some light template editing/adding, but I don’t know how to trigger the code where I want it to show in the page or trigger the addition templates that will encase the output.

peterska2 12-08-2005 10:35 PM

you trigger any new templates in the blah_complete hook (where blah is the page eg showthread or forumhome or whatever) Then create the new template and put $templatename in the original template where you want it to show

merk 12-08-2005 10:39 PM

showpost_post is the incorrect hook location. You will still need to look at the code to determin the context of the hook location to see if its suitable.

The hook you're probably looking for is postbit_display_complete.


All times are GMT. The time now is 07:29 AM.

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.01481 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