Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: User’s Email in menu/page title Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gfit
Newbie
Newbie


Joined: 21 September 2014
Online Status: Offline
Posts: 17
Posted: 15 November 2014 at 9:45am | IP Logged Quote gfit

Afterlogic Webmail displays the selected user's email address on the header menu and on the message list webpage title. This could present a privacy issue in certain implementations.

Is there an option to specify a different menu title (e.g. 'mail') or, alternatively, can you point out where the relevant code can be found?

Thanks in advance.
Back to Top View gfit's Profile Search for other posts by gfit
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 17 November 2014 at 3:39am | IP Logged Quote Igor

The code for building window title is found in static/js/app.js file, line ~41040:

Code:
switch (this.currentScreen())
{
     case Enums.Screens.Login:
          sTitle = Utils.i18n('TITLE/LOGIN', null, '');
          break;
     case Enums.Screens.Mailbox:
          sTitle = AppData.Accounts.getEmail() + ' - ' + Utils.i18n('TITLE/MAILBOX');
          break;
          ...


and AppData.Accounts.getEmail() is responsible for putting email address in there, so you can replace that part with anything else.

Note that app.js file isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:

Code:
'labs.use-app-min-js' => false,


Also, be sure to clear browser cache to apply changes.

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


Joined: 21 September 2014
Online Status: Offline
Posts: 17
Posted: 17 November 2014 at 7:43am | IP Logged Quote gfit

Thanks for your prompt reply. It has helped a lot.

Two more questions:

1) Which javascript compressor and/or encryption do you recommend for transferring the changes to app.min.js?

2) Is creating a plugin the recommended way to add static links to the top menu and/or settings tab? If not, where can the relevant code be found?

Thanks again for your help.
Back to Top View gfit's Profile Search for other posts by gfit
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 18 November 2014 at 3:05am | IP Logged Quote Igor

Quote:
1) Which javascript compressor and/or encryption do you recommend for transferring the changes to app.min.js?


I believe developers use UglifyJS for that purpose.

Quote:
2) Is creating a plugin the recommended way to add static links to the top menu and/or settings tab?


Indeed, as that's the only way to have the changes preserved upon upgrading to a newer version.

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