Jump to content
  • 0

FluxCP Account Creation


mitsukee

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

When I try to make an account, I get this error:

Fatal error: Undefined class constant 'INVALID_BIRTHDATE_FORMAT' in /home/scarlett/public_html/modules/account/create.php on line 115

I've gone to see that line, but I am now sure how to define the Birthdate content to make it work.

Thank you.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

put this on your modules/account/create.php

Find :

<tr>
<th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th>
<td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td>
</tr>

Add below :

<tr>
<th><label for="register_birth_date"><?php echo htmlspecialchars(Flux::message('BirthDateLabel')) ?></label></th>
<td><input type="text" name="birth_date" id="register_birth_date" value="<?php echo htmlspecialchars($params->get('birth_date')) ?>" /><i>(Format: YYYY-MM-DD)</i></td>
</tr>

Format is Format: YYYY-MM-DD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

Do you mean in themes/account/create.php? Because I do not see that in the modules/account/create.php

Also in the theme/account/create.php, I also have that added below the first one already...

 <tr>
  <th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th>
  <td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td>
 </tr>

 <tr>
 <th><label for="register_birth_date"><?php echo htmlspecialchars(Flux::message('BirthDateLabel')) ?></label></th>
 <td><input type="text" name="birth_date" id="register_birth_date" value="<?php echo htmlspecialchars($params->get('birth_date')) ?>" /><i>(Format: YYYY-MM-DD)</i></td>
 </tr>

It's still showing that error.

Edited by mitsukee
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

Any help on this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

go to your CpFolder->themes->default->account and paste this create.php in there

create.php

Edited by Thanna
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

It still give me the error "Fatal error: Undefined class constant 'INVALID_BIRTHDATE_FORMAT' in /home/scarlett/public_html/modules/account/create.php on line 118"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

why dont you ask your Control Panel Maker.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

try this

go to your CpFolder->themes->default->account and paste this create.php in there

create.php

Link to comment
Share on other sites

×
×
  • Create New...