Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2011-05-19 21:08:01

mrjoel
Member
Registered: 2011-05-18
Posts: 4

Adjust registration form based on email requirement

The registration page should change the email field indications depending on whether the configuration is set to require email addresses or not.

Suggested diff after a quick look is:

--- themes/default/template/register.orig.tpl   2011-05-19 19:10:40.000000000 +0000
+++ themes/default/template/register.tpl        2011-05-19 19:13:35.000000000 +0000
@@ -46,10 +46,12 @@
       </li>
       <li>
         <span class="property">
-          <label for="mail_address">{'Email address'|@translate}</label>
+          <label for="mail_address">{if not ($main.obligatory_user_mail_address)}* {/if}{'Email address'|@translate}</label>
         </span>
         <input type="text" name="mail_address" id="mail_address" value="{$F_EMAIL}" >
+        {if ($main.obligatory_user_mail_address)}
         ({'useful when password forgotten'|@translate})
+        {/if}
       </li>
     </ul>

Offline

#2 2011-05-20 10:46:41

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3385
Website

Re: Adjust registration form based on email requirement

hello
thx for your suggestion : please post on the bugtracker, http://piwigo.org/bugs, if you want to see this integrated one day
best regards


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013