Jump to content
  • 0

Fluxcp PHP Help


Dudots

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/09/14
  • Last Seen:  

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 by Dudots
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

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 by Vincent
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

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 by Vincent
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/09/14
  • Last Seen:  

The new field appeared but it's not creating accounts.. its not showing any error, the page just got white

 

 

thanks

Edited by Dudots
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

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 by Vincent
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/09/14
  • Last Seen:  

nothing yet :/ 
same problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/09/14
  • Last Seen:  

It worked! :D
thanks man

Link to comment
Share on other sites

×
×
  • Create New...