ghofer
02-18-2007, 02:34 AM
http://smf.superfora.nl/ i am currently using smf xxl i want to know how to make it create sub domains instead of directories when people sign up for a board. Could someone please help me ? I'm unfamilar with php coding.
The below section is the sql file. How do i tell it to create a sub domain instead of a directory.
//otherwise create the required directories and files
mkdir($userforums_root.'/'.$username, 0755);
copy($userforums_root.'/index.tpl', $userforums_root.'/'.$username.'/index.php');
chmod($userforums_root.'/'.$username.'/index.php', 0644);
copy($userforums_root.'/Settings.php', $userforums_root.'/'.$username.'/Settings.php');
chmod($userforums_root.'/'.$username.'/Settings.php', 0644);
chmod($userforums_root.'/'.$username, 0755);
The below section is the sql file. How do i tell it to create a sub domain instead of a directory.
//otherwise create the required directories and files
mkdir($userforums_root.'/'.$username, 0755);
copy($userforums_root.'/index.tpl', $userforums_root.'/'.$username.'/index.php');
chmod($userforums_root.'/'.$username.'/index.php', 0644);
copy($userforums_root.'/Settings.php', $userforums_root.'/'.$username.'/Settings.php');
chmod($userforums_root.'/'.$username.'/Settings.php', 0644);
chmod($userforums_root.'/'.$username, 0755);
