Jump to content
  • 0

How to disable birthdate


Legendary

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  09/07/13
  • Last Seen:  

How to disable birthdate when you register?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   2
  • Joined:  04/27/16
  • Last Seen:  

@Sanasol

 

Thanks

Edited by rmon
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

Which CP?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  09/07/13
  • Last Seen:  

FLux Sir

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

\fluxcp\themes\default\account\create.php

remove 75-78 lines

<tr>
	<th><label><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></label></th>
	<td><?php echo $this->dateField('birthdate',null,0) ?></td>
</tr>

 
\fluxcp\modules\account\create.php
 
find 

$birthdate = $params->get('birthdate_date');

change to
 

$birthdate = date("Y-m-d");

and birthdate will be register date

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

\fluxcp\themes\default\account\create.php

remove 75-78 lines

<tr>
	<th><label><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></label></th>
	<td><?php echo $this->dateField('birthdate',null,0) ?></td>
</tr>

 

\fluxcp\modules\account\create.php

 

find 

$birthdate = $params->get('birthdate_date');

change to

 

$birthdate = date("Y-m-d");

and birthdate will be register date

 

Thanks its work at mine :D

Link to comment
Share on other sites

×
×
  • Create New...