The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hey...
Im looking to find out 2 things... 1.) If I wanted to use .php files on my site, but not on the /forum directory (where the forums are), how would I get them to be integrated with vB? 2.) How do you make a variable random, and be one value be chosen every 24 hours? I am trying to make version 1.2 of my "Guessing Game" hack work, and I have got this: PHP Code:
The variable is $num, and it has 5 values... Any help would be appreciated ![]() Satan |
|
#2
|
||||
|
||||
|
1)
i think adding require('forum/global.php'); should be enough, but not 100% sure |
|
#3
|
||||
|
||||
|
Actually that will generate error(s). You must first "go" to the forums dir, then include the file:
PHP Code:
|
|
#4
|
||||
|
||||
|
Ah...Thanks
![]() Satan |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|