The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Okay, basically, what I'm trying to do is autocreate a subdirectory of the user's registered username which is created after activation on vbulletin 3.0.7;
In register, I placed this code: Code:
//make directory
mkdir($username, 0777);
Code:
// activate account $username = unhtmlspecialchars($userinfo['username']); Code:
if ($vboptions['welcomemail'] AND !$userinfo['posts'])
{
eval(fetch_email_phrases('welcomemail'));
vbmail($userinfo['email'], $subject, $message);
}
Does anyone have any ideas or suggestions? |
|
#2
|
||||
|
||||
|
You have to define the path in which you want the directory ( with the username ) created
|
|
#3
|
||||
|
||||
|
Quote:
i suggested; PHP Code:
PHP Code:
|
|
#4
|
||||
|
||||
|
It got me on the right path,however, I did the following code through my own research;
Code:
//make directory PLEASE...
mkdir("/home/thatcomm/public_html/$username");
chmod("/home/thatcomm/public_html/$username", 0777);
The code works, however when the page goes to insert the redirection code, because of the Javascript nature of the redirect, I get a parse error - I'm probably going to have to make it stripslashes and insert it from a default field in a MySQL table. We'll see. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|