MantisBT - Piwigo
View Issue Details
0002307Piwigotemplatepublic2011.05.20 22:272011.05.25 20:28
mrjoel 
mistic100 
normalminoralways
closedfixed 
 
2.2.2 
any
Apache 1.3.x
0002307: 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.
Go to registration page with email requirement enabled. Note that the asterisk from the field is missing and message just describes how it's sometimes useful instead of being required.
Suggested diff after a quick look is listed below, although I would assume you want to do a check on the value of ($main.obligatory_user_mail_address) instead of indirectly.

    --- 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 @@
           
           

  •              <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}
               

  •          
    No tags attached.
    Issue History
    2011.05.20 22:27mrjoelNew Issue
    2011.05.20 22:27mrjoelbrowser => any
    2011.05.20 22:27mrjoelWeb server => Apache 1.3.x
    2011.05.22 15:33mistic100Statusnew => assigned
    2011.05.22 15:33mistic100Assigned To => mistic100
    2011.05.22 15:33mistic100Statusassigned => confirmed
    2011.05.22 15:38mistic100Note Added: 0005113
    2011.05.22 15:49svnCheckin
    2011.05.22 15:49svnNote Added: 0005114
    2011.05.22 15:51svnCheckin
    2011.05.22 15:51svnNote Added: 0005115
    2011.05.22 15:51mistic100Note Deleted: 0005113
    2011.05.22 15:52mistic100Statusconfirmed => resolved
    2011.05.22 15:52mistic100Fixed in Version => 2.2.2
    2011.05.22 15:52mistic100Resolutionopen => fixed
    2011.05.25 20:28mistic100Statusresolved => feedback
    2011.05.25 20:28mistic100Resolutionfixed => reopened
    2011.05.25 20:28mistic100Statusfeedback => closed
    2011.05.25 20:28mistic100Resolutionreopened => fixed

    Notes
    (0005114)
    svn   
    2011.05.22 15:49   
    [Subversion] r10992 by mistic100 on trunk

    -----[Subversion commit log]----------------------------------------------------
    bug:2307 Adjust registration form based on email requirement
    (0005115)
    svn   
    2011.05.22 15:51   
    [Subversion] r10993 by mistic100 on branch 2.2

    -----[Subversion commit log]----------------------------------------------------
    bug:2307 merge r10992 from trunk - Adjust registration form based on email requirement