View Full Version : Very simple question that i should know!
fonzerelli_79
02-06-2003, 12:02 PM
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
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/showthread.php?s=&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/showthread.php?s=&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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.