The Arcive of vBulletin Modifications Site. |
|
Make a page look like the rest of the forum Details »»
|
|||||||||||||||||||||||||
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 ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
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... |
|
#5
|
|||
|
|||
|
Thanks very much both of you
|
![]() |
|
|