The Arcive of vBulletin Modifications Site. |
|
How do you use a new template? Details »»
|
|||||||||||||||||||||||||
Let's say I create a template, then I make a new script somewhere like myScript.php, how do I get that script to use my template?
Are there tutorials? Also how would I do a PHP include of myScript.php onto the main page somewhere? Normal php code won't work in a template. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
errr...
|
|
#4
|
|||
|
|||
|
Don't worry about the template, it's too hard for me to comprehend
but how do I do a php include on the main page? |
|
#5
|
||||
|
||||
|
include('file.php');
and make sure oyu have the global.php in everyone of your php files that connect to vb. |
|
#6
|
|||
|
|||
|
Quote:
But do tell what global.php does. |
|
#7
|
||||
|
||||
|
lol
Place this in your phpinclude template: Code:
ob_start();
require('./file.php');
$filestuff = ob_get_contents();
ob_end_clean();
|
|
#8
|
|||
|
|||
|
awesome! the phpinclude template!! thanks
|
|
#9
|
|||
|
|||
|
hi this is what I put in
Quote:
But for some odd reason when I view Who's Online (even though I didn't include anything there) I get the following: Quote:
What should I look for? |
|
#10
|
||||
|
||||
|
Does test.php do anything with the variables $post / $userinfo?
|
![]() |
|
|