Dudots Posted September 12, 2014 Posted September 12, 2014 (edited) I would like to configure Fluxcp to, at the time of account creation, has an extra field(Optional field) to enter a new value to a new column in my table 'login' sql for the user created. I appreciate if someone can help Edited September 12, 2014 by Dudots
Vincent Posted September 13, 2014 Posted September 13, 2014 (edited) nothing yet :/ same problem Sooo, after some testing at home here is a Working Code: FluxCP / modules / account / create.php -> http://pastebin.com/puvFgRkN FluxCP / themes / default / account / create.php -> http://pastebin.com/ujLTZCnG FluxCP / lib / Flux / LoginServer.php -> http://pastebin.com/ekjVx9TH You need to create a new coulum at your "login" table that is called "new_field"! Replace all Files with the new Code from pastbin.com I hope i can help you with it. Edited September 13, 2014 by Vincent 1
Vincent Posted September 12, 2014 Posted September 12, 2014 (edited) FluxCP / themes / default / account / create.php Edit this File and copy the new code to the file. http://pastebin.com/CUr7sWpu Edit the FluxCP / modules / account / create.php and copy&paste the Code from here to the create.php http://pastebin.com/r8BmZcit# Make a Backup of your old file. Not tested, because i am at work atm. !!! Edited September 12, 2014 by Vincent 1
Dudots Posted September 12, 2014 Author Posted September 12, 2014 (edited) The new field appeared but it's not creating accounts.. its not showing any error, the page just got white thanks Edited September 12, 2014 by Dudots 1
Vincent Posted September 12, 2014 Posted September 12, 2014 (edited) Find this at FluxCP / modules / account / create.php : $new_field = $params->get('new_field'); Change to: $new_field = $_POST["new_field"]; If this dont work, i have to take a look when i am at home. At the Moment i can test the new fields. Edited September 12, 2014 by Vincent
Question
Dudots
6 answers to this question
Recommended Posts