vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   simple plugin question (https://vborg.vbsupport.ru/showthread.php?t=219684)

dethfire 07-28-2009 10:40 PM

simple plugin question
 
If I make a simple plugin that contains just $hello = "hi there"; and select showthread_start hook. If I place $hello in the showthread template, it should print out "hi there"?

HMBeaty 07-28-2009 10:44 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=119933&highlight=include+template +plugin" target="_blank">https://vborg.vbsupport.ru/showt...emplate+plugin</a>

dethfire 07-28-2009 10:53 PM

I don't think I need to make a custom template do I? I just have some variables with data I need to display in the postbit template

Deceptor 07-29-2009 01:09 AM

You don't need to have a template, doing so would just make life easier. But that purely depends on what the variable will contain. To answer your first question though, yes declaring the variable in that plugin would allow you to use the variable in that template.

dethfire 07-29-2009 03:01 AM

Quote:

Originally Posted by Deceptor (Post 1857567)
You don't need to have a template, doing so would just make life easier. But that purely depends on what the variable will contain. To answer your first question though, yes declaring the variable in that plugin would allow you to use the variable in that template.

i see, so perhaps I have the wrong hook. how do I find the right one? I just know what template I want to use.


All times are GMT. The time now is 02:35 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.01993 seconds
  • Memory Usage 1,714KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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