vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Installing templates? (https://vborg.vbsupport.ru/showthread.php?t=22795)

funkymonkey 07-14-2001 05:03 PM

How do i install a template? Are the template sections in the control panel all .php files? (The Edit part)

I am really clouded by how i would install a .php page into say the forum home page templates as they all just keep going to the Custom templates section of the edit part?

If say i added the template forum_links to the forum template section, what would be the $**** name. In example things like $footer and $header. These are how the pages are linked right, because i am unsure about how they are named as i can't see a pattern? :(

Can anyone help my woes?

Wayne Luke 07-14-2001 05:40 PM

All templates are stored in the database. Very little HTML is in the PHP files.

You can't "install" a template in the groups listed. Only global templates exist in these groups. Any template you add is added to the Custom Templates group.

In order to use a customized template you need to evaluate and parse it first using the eval statement and the gettemplate function. The $XXXXX word is what ever the variable you create is. Most often these are created to match or closely resemble the template name.

To put a template in another simply use the variable name.

There is a template reference in the Member's area that tells you how the different templates fit together. To figure out how to evaluate a template, look at misc.php.

funkymonkey 07-14-2001 05:54 PM

Thank you so much!

But where is the gettemplate function?


All times are GMT. The time now is 02:41 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.02674 seconds
  • Memory Usage 1,708KB
  • 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