The Arcive of vBulletin Modifications Site. |
|
PHP File Insert Details »»
|
|||||||||||||||||||||||||
I want a php file in my root directory to be able to use $post[fieldx], $post[username], etc. I also want the associated templates to use those too. What code do I need in the PHP and where?
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Also, which one should I use:
PHP Code:
PHP Code:
|
|
#3
|
||||
|
||||
|
One more thing, is it possible to randomize numbers? If so, how?
|
|
#4
|
||||
|
||||
|
To randomize, check rand() function on PHP.net.
You should start your vB file like this: Code:
<?php
error_reporting(7);
$templatesused = 'templates,you,are,going,to,use';
require('./global.php');
|
|
#5
|
||||
|
||||
|
Thanks firefly.
|
![]() |
|
|