Dudots Posted September 12, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 1 Joined: 09/09/14 Last Seen: October 30, 2019 Share 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 Link to comment Share on other sites More sharing options...
Vincent Posted September 12, 2014 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Dudots Posted September 12, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 1 Joined: 09/09/14 Last Seen: October 30, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
Vincent Posted September 12, 2014 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Dudots Posted September 12, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 1 Joined: 09/09/14 Last Seen: October 30, 2019 Author Share Posted September 12, 2014 nothing yet :/ same problem Link to comment Share on other sites More sharing options...
Vincent Posted September 13, 2014 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Dudots Posted September 13, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 1 Joined: 09/09/14 Last Seen: October 30, 2019 Author Share Posted September 13, 2014 It worked! thanks man Link to comment Share on other sites More sharing options...
Question
Dudots
Link to comment
Share on other sites
6 answers to this question
Recommended Posts