![]() |
File Create Option
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 ? |
You could do something like this in the "Validation PHP code" for the option:
Code:
if (!empty($data)) of course if you want to write something to the file and not just create it empty, then you could use fopen, fwrite, etc. |
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 |
All times are GMT. The time now is 01:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|