vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Very simple question that i should know! (https://vborg.vbsupport.ru/showthread.php?t=48595)

fonzerelli_79 02-06-2003 12:02 PM

Very simple question that i should know!
 
i really should know enough php by now to figure this out but i cant;)

i want to add additional non vb pages to my forum - and i want them to include the standard forum header and footer so that it fits into the rest of the forum easily - for example - adding a rules page, partners page etc

does anyone have a standard php file that i can modify to do this - i would really appreciate it:):D

rjpa 02-06-2003 12:10 PM

Yeha me to :)

fonzerelli_79 02-06-2003 12:23 PM

i actually had the code for this before too which is annoying me even more - lol;)

gameplanetz 02-06-2003 02:02 PM

well not a PHP page but maybe this can help u?

https://vborg.vbsupport.ru/showthrea...threadid=43940

Dominick 02-06-2003 02:18 PM

easiest would be to set up 2 pages...
header.php and footer.php

in header.php set up a sql select statement to pull the header template info

same deal on footer..

the in your non vb pages, set up includes at top and bottom for each.

bing bang boom its done

fonzerelli_79 02-06-2003 02:24 PM

i know how to use includes but how would you pull the templates to the header and footer?

Dean C 02-06-2003 03:35 PM

Voila:

https://vborg.vbsupport.ru/showthrea...threadid=36600

Dean C 02-06-2003 03:36 PM

Also if you want to call a template into the header you call the template right before the phpinclude template is called in global.php :)

Regards

- miSt

fonzerelli_79 02-07-2003 09:00 AM

mist - your a legend

many thanks:)

Dean C 02-07-2003 03:41 PM

Your Welcome :) hehe

- miSt


All times are GMT. The time now is 03:05 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.01855 seconds
  • Memory Usage 1,718KB
  • 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
  • (10)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