Jump to content

[Solved] How to remove the birthday option on the registration form


Recommended Posts

I would like to remove the birthday option from the registration form.
I have commented out the following lines from the authentication.tpl and identity.tpl files located in the themes\mytheme directory but it does not work. Please help. Thank you in advance.

<!--


{l s='Date of Birth'}

-
{foreach from=$days item=v}
{$v|escape:'htmlall':'UTF-8'}  
{/foreach}

{*
{l s='January'}
{l s='February'}
{l s='March'}
{l s='April'}
{l s='May'}
{l s='June'}
{l s='July'}
{l s='August'}
{l s='September'}
{l s='October'}
{l s='November'}
{l s='December'}
*}

-
{foreach from=$months key=k item=v}
{l s="$v"} 
{/foreach}


-
{foreach from=$years item=v}
{$v|escape:'htmlall':'UTF-8'}  
{/foreach}


-->
Link to comment
Share on other sites

Now I have the solution. Actually, in the file authentication.tpl there are 2 occurences of the block of lines to comment out. The file identity.tpl is to remove the birth day from the form when you change your personal info previously registered. I will close this post.

Link to comment
Share on other sites

  • 1 month later...

Thanks very much for this info! I also [successfully] killed the 'Assign an address title for future reference' in this file as well.

 

<!--

<p class="required text" id="address_alias">

<label for="alias">{l s='Assign an address title for future reference'} !</label>

<input type="text" class="text" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" />

<sup>*</sup>

</p>

-->

Link to comment
Share on other sites

  • 4 months later...

I was so happy to find this as it seemed the prefect answer to my very much exact same problem. But it doesn't work for me. I have commented out unwanted parts in both authentication.tpl and identity.tpl but all the parts show up anyway.

Is there any other file involved in this?

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...