Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Defaulting Autocheck Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Adkar
Newbie
Newbie


Joined: 26 September 2011
Location: South Africa
Online Status: Offline
Posts: 15
Posted: 04 October 2011 at 1:40am | IP Logged Quote Adkar

Hi,

I have been working on the autocheck interval setting and what i would like to do is set it to a default of 10 minutes for every user and hide the control from the user so they cannot change it.

Is that kind of thing possible?

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 October 2011 at 3:18am | IP Logged Quote Igor

Both the tasks can be solved easily. Default autocheck interval value is defined in App_Code/User.cs file, line ~912 should look like:

Code:
_auto_checkmail_interval = 10;


Even though the code under App_Code is normally recompiled automatically, you might still need to force the recompilation by running compile.bat file found in main WebMail directory.

As for preventing users from changing that setting, the simplest way is to hide the setting with CSS. In js/settings/common.js file, modify line 140 as follows:

Code:
this._autoCheckMailCont.className = 'wm_hide';


Hope this helps!

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