vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How to include header and footer of the forum? (https://vborg.vbsupport.ru/showthread.php?t=56183)

soccerclue 09-08-2003 04:44 PM

All right. I have a problem here to make the header and footer. If I call the template which has the html code inside, the header and footer can be displayed but the content of the php page is not displayed. In fact, in my php page, I have also included the html stuff. What I fail is calling the $header, $footer, and $headinclude variable. If I don't want to create template, how should I call these variables in my php page? Hope you understand what I mean.

Is it something like this to call the variable?

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

soccerclue 09-08-2003 05:00 PM

I am confused here....in the php page..I just put the variable like $header in the place where I want it to be shown..and it works except the button pictures are not displayed..I am still confused how to call the variable. What is require("global.php") for?

assassingod 09-08-2003 08:14 PM

require("./global"); requires root/global.php which just calls basic things vB needs (header,footer,user stuff etc)

soccerclue 09-08-2003 08:49 PM

so when i call the variables like $header, $footer, $includeheader, I will need to put require("./global") right? But, after putting require and when I put the variables in my php page, it can be displayed but with some errors (e.g. no button pictures in header)

SVTBlackLight01 09-09-2003 11:28 AM

Are you still talking about competition.php? It should work as I described above if it is the forum directory. If it is outside the fourm directory, you will have to make the image paths absolute in the admin CP.

soccerclue 09-09-2003 05:51 PM

Yeah..it's the competition.php. The file is in the forum directory. I don't know why I can't display the picture? But, if like you said creating the template and the template is just the html code inside, and in my competition.php page I also echo the html tag, isn't that would collide with the dooutput of the template content? I am confused right now. Or I should move all the html code in competition.php to the template? I hope you can help me. thank you.


All times are GMT. The time now is 06:21 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.01104 seconds
  • Memory Usage 1,721KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete