Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Disable user changing email address? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jrquint
Newbie
Newbie


Joined: 26 February 2009
Location: United States
Online Status: Offline
Posts: 10
Posted: 28 August 2010 at 12:37pm | IP Logged Quote jrquint

Is there a way to disable users from changing the email address without disabling "Allow new users to
change email settings"?

PHP Webmail Pro v5
Back to Top View jrquint's Profile Search for other posts by jrquint
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 30 August 2010 at 3:04am | IP Logged Quote Igor

Try modifying webmail/js/settings/account-properties.js file (line ~589):

Code:
td.innerHTML = '* ' + Lang.MailEmail + ':';
WebMail.LangChanger.Register('innerHTML', td, 'MailEmail', ':', '* ');
td = tr.insertCell(1);
td.colSpan = 2;
inp = CreateChild(td, 'input', [['class', 'wm_input wm_settings_input'], ['type', 'text'], ['maxlength', '255']]);

The last line should be appended with 'readonly' attribute as follows:

Code:
inp = CreateChild(td, 'input', [['class', 'wm_input wm_settings_input'], ['type', 'text'], ['maxlength', '255'], ['readonly', 'readonly']]);

Be sure to clear web browser cache to apply changes.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide