vb.org Archive

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

drives_fast 09-14-2001 12:42 AM

Hello,
I have made a custom template called "links" but I have not yet figured out how to be able to call it in the other templates. What it is ...is a replacement for the header. I only use the $header call on the main forum page and I want to use the links template in many other pages because it is different (thats the reason I dont use the $header call there)

Now I tried calling it with $links but of course...lol....that doesn't work. I am assuming that maybe in global.php something needs to be set....I am still trying to get the hand of the php stuff.

Could someone please help me with the mods I need to do to make the template work?

Also,

I have searched the entire hacks forum and cannot find this. I am wanting to put the "$loggedinusers" on my chat thread (integrated jIRC hack/mod) using the "forumdisplay" in the new style and templates so I modified the code in the "forumhome_loggedinusers" and called it with the "$loggedinusers" but nothing shows up....well.....the number of users doesn't show up.

Any help would be appreciated on this one.

Thanks in advance...drives

drives_fast 09-29-2001 07:09 PM

anybody?

Admin 09-30-2001 08:28 AM

Add this to your global.php:
PHP Code:

eval("\$links = \"".gettemplate('links')."\";"); 

right after this:
PHP Code:

if (!$header) {
  eval(
"\$header = \"".gettemplate('header')."\";");
} else {
  eval(
"\$header .= \"".gettemplate('header')."\";");



WhisperPntr 04-09-2002 05:24 AM

Do you have to do this with ALL custom templates!?

FWC 04-09-2002 05:31 AM

Only if you want to be able to call them all over the place. If you just need a template on one page or program, you can use the same code in just that php file.


All times are GMT. The time now is 08:58 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.01950 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)bbcode_php_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