vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Displaying new templates (https://vborg.vbsupport.ru/showthread.php?t=198106)

Varsh 12-05-2008 11:32 PM

Displaying new templates
 
I've been looking through forums and the official documentation, it mentions that the name of the new template you make will be used for displaying the template. Now let's say I created the template "myNewTemplate", I assume that to display this I would simply need to place "$myNewTemplate" in any template.

For instance, in the FORUMHOME template I put "$myNewTemplate" after the body tag, this should presumably display the new template. Unfortunately this isn't working for me and clearly I've overlooked and missed something completely. Could someone just clarify how to display a new template please.

Lynne 12-05-2008 11:48 PM

You need to eval the template somewhere in the php code:
PHP Code:

eval('$myNewTemplate .= "' fetch_template('my_new_template') . '";'); 


Varsh 12-05-2008 11:57 PM

Would this mean that I would have to edit the index.php file directly, or could this be done within the ACP? If in the ACP, how would I go about doing this?

Edit: Found the article about it, thanks for the headsup.


All times are GMT. The time now is 10:16 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.00908 seconds
  • Memory Usage 1,710KB
  • 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_php_printable
  • (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