vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Add a new template below another one and interact with it by variables (https://vborg.vbsupport.ru/showthread.php?t=241787)

RedFoxy 05-03-2010 02:36 PM

Add a new template below another one and interact with it by variables
 
Hi all!
I need to add some templates below other templates, like I want add a template (for example) below ad_navbar_below and I want exchange informations and variables with some my plugins.

How can I do?

I tried following and adapt the articles about the navbar but it doesn't goes.

Lynne 05-03-2010 11:06 PM

It looks like you can just add something at the end of the navbar. Put in something like:
HTML Code:

{vb:raw template_hook.your_name}
And then just render your template to that template hook:
PHP Code:

$newTemplate vB_Template::create('someTemplate');
    
$newTemplate->register('variable1'$variable1);
    
$newTemplate->register('variable2'$variable2);
$template_hook['your_name'] = $newTemplate->render(); 

The best thing to do is go find a mod that does something similar and see how the developer did his/her mod.


All times are GMT. The time now is 08:14 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.00910 seconds
  • Memory Usage 1,711KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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