i read in the help section that it is possible for users to create an account in phpbb3 and be able to login to wingftp, provided you have setup your database which i have , but it dont seem to be working, can you outline how this is archived?
this below code i added to my php code
In this example, we use PHPBB version 3.0, and you would look for, in the source file "includes/ucp/ucp_register.php", the code:
$user_id = user_add($user_row, $cp_data);
then add the below code directly after it.
//Wing FTP Server MOD start
$ftp_dbname = "wftp_database"; //Wing FTP Server's mysql database name, assume in the same server.
$ftp_domain_name = "default"; //ftp's domain name.
$ftp_dirpath = "D:/ftp_data/".$data['username'];//user's directory path
$ftp_upload_limit = TRUE; //whether to limit the quota size
$ftp_maxuoload_size = 1024*1024*100; //if $ftp_upload_limit = TRUE, this value means the max quota bytes.
$db->sql_query("USE ".$ftp_dbname.";");
$db->sql_query("INSERT INTO `wftp_mysqltable_user` VALUES ('".$ftp_domain_name."','".$data['username']."',1,1,'".md5($data['new_password'])."',63,0,NULL,0,0,0,0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,0,'0',NULL,0,0,0,".intval($ftp_upload_limit).",0,".$ftp_maxuoload_size.",0,0,0);");
$mkdir_result = @mkdir($ftp_dirpath);
if($mkdir_result == TRUE)
$db->sql_query("INSERT INTO `wftp_mysqltable_dir` VALUES ('".$ftp_domain_name."','".$data['username']."','".$ftp_dirpath."','/',1,1,1,1,1,1,1,1,1);");
$db->sql_query("USE ".$db->dbname.";");
//Wing FTP Server end
Thanks in advance