![]() |
Make a page look like the rest of the forum
I'm making a page where users can configure a few options: It's pretty basic, just plain text at the moment
How can I get it to output the HTML header/footer as specified in the AdminCP for the style that the user has selected, and get other things like table/font colours, body tag etc etc. Thanks for any help :) |
you have to require global.php in front of the file
then make a new template containing $header Plain text formated as ya want $footer and at the end of your script use the eval-dooutput functions as you can see in nearly every vb-file just replace the templatename with your new template ;) |
Quote:
|
camoboy start a phpfile like thisL
PHP Code:
Notice :: the name must be the one you use for the [ template name here ] then in the template put :: PHP Code:
that is what Xenon is saying to do ;) And yes the $header variable in the template will get the same header that you see in the admin cp... its outputted because you required global.php hope that helps a little more regards... |
Thanks very much both of you :cool: :)
|
All times are GMT. The time now is 07:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|