The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello
i am wondering if there is an optioncode for vboptions in admincp i have a field that requires admins to input a file name which would be soemthing like blahblah.txt now what i am hoping is after clicking OK, the file is created, i have the rest of the code sorted in php which looks for the file, i just need handle (optioncode ) that allowed the file creation is this possible ? |
#2
|
|||
|
|||
![]()
You could do something like this in the "Validation PHP code" for the option:
Code:
if (!empty($data)) { return touch($data); } else { return false; } of course if you want to write something to the file and not just create it empty, then you could use fopen, fwrite, etc. |
#3
|
|||
|
|||
![]() Quote:
i wrote this PHP Code:
$vbulletin->options['aglogname']; but only run once, i am not sure if thats possible, but i imagine that eash time i change the name in PHP Code:
i dont need to write to it, just create it |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|