hi!
i have two things i would like to do with the login form:
(1) i would like to display "E-Mail" instead of username. our username is the full email address - so it is easier to directly ask for that :)
the only way i found to achieve this was to modify the .program/include/rcube_template.php, line 1101
$table->add('title', html::label('rcmloginuser', Q(rcube_label('mail'))));
(2) i would like to add some information below the login box. of course, this is easily achieved by updating my specific skin.
i was now thinking if either of these modifications - especially (1) - might be of interest to a wider audience and could be made configurable?
cheers, raoul ps. you an see the result at https://secure.ipax.at/webmail.new/ _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80
Hello,
Not all systems are using e-mail for identification. IMHO "Username" is too specific for the login identifier, so I recommend to replace it with "Account name" or "Account".
Also, adding a common footer is not a bad idea either. The best solution would be if it's configurable via main.inc.php. So one could add Terms of service, Privacy etc link/notices to the footer of the RoundCube (and login page).
-- Best regards, Günter Kits
On 10.08.2011 14:43, Raoul Bhatia [IPAX] wrote:
hi!
i have two things i would like to do with the login form:
(1) i would like to display "E-Mail" instead of username. our username is the full email address - so it is easier to directly ask for that :)
the only way i found to achieve this was to modify the .program/include/rcube_template.php, line 1101
$table->add('title', html::label('rcmloginuser', Q(rcube_label('mail'))));
(2) i would like to add some information below the login box. of course, this is easily achieved by updating my specific skin.
i was now thinking if either of these modifications - especially (1) - might be of interest to a wider audience and could be made configurable?
cheers, raoul ps. you an see the result at https://secure.ipax.at/webmail.new/ _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/7f575fcd
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 08/10/2011 02:48 PM, Günter Kits wrote:
Hello,
Not all systems are using e-mail for identification. IMHO "Username" is too specific for the login identifier, so I recommend to replace it with "Account name" or "Account".
i was more thinking of something configurable via main.inc.php - something in the fashion of
$rcmail_config['loginlabel_username'] = rcube_label('username')
or simply
$rcmail_config['loginlabel_username'] = 'username';
(and roundcube will try searching for a translation by itself)
Also, adding a common footer is not a bad idea either. The best solution would be if it's configurable via main.inc.php. So one could add Terms of service, Privacy etc link/notices to the footer of the RoundCube (and login page).
thanks, raoul _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80
On Wed, Aug 10, 2011 at 13:43, Raoul Bhatia [IPAX] r.bhatia@ipax.at wrote:
hi!
i have two things i would like to do with the login form:
(1) i would like to display "E-Mail" instead of username. our username is the full email address - so it is easier to directly ask for that :)
the only way i found to achieve this was to modify the .program/include/rcube_template.php, line 1101
$table->add('title', html::label('rcmloginuser', Q(rcube_label('mail'))));
(2) i would like to add some information below the login box. of course, this is easily achieved by updating my specific skin.
As already mentioned in this thread, not all systems use a full email address for logins. This seems like a clear case for a custom skin, especially (2). I could imagine to add more arguments to the template object to customize the label. That could look something like this:
<roundcube:label name="youremail" en_US="Your email address" de_DE="Deine E-Mail-Adresse" noshow="true" /> <roundcube:object name="loginform" form="form" usernameLabel="youremail" />
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80