Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Autoimport to Addressbook Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Philipp_K
Newbie
Newbie


Joined: 18 December 2013
Location: Austria
Online Status: Offline
Posts: 3
Posted: 18 December 2013 at 1:31am | IP Logged Quote Philipp_K

Hi, my name is Philipp and I use Afterlogic Webmail Lite on my server.
My question:
Is it possible, to disable, that the e-mail-adress will be auto-importet to the mysql table "_addr_book".
Next question:
Is it possible to take the suggestions on keyup from another table?

Thank you!
Back to Top View Philipp_K's Profile Search for other posts by Philipp_K
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 18 December 2013 at 2:15am | IP Logged Quote Igor

Quote:
Is it possible, to disable, that the e-mail-adress will be auto-importet to the mysql table "_addr_book".


It's rather simple to disable that, yes. In libraries/ProjectSeven/Actions.php file, around line 1214:

Code:
if (is_array($aEmails))
{
    $oApiContacts->UpdateSuggestTable($oAccount->IdUser, $aEmails);
}


comment out the line:

Code:
if (is_array($aEmails))
{
   // $oApiContacts->UpdateSuggestTable($oAccount->IdUser, $aEmails);
}


Quote:
Is it possible to take the suggestions on keyup from another table?


For that, you'll need to modify GetSuggestContactItems functions found in command_creator.php and storage.php files under libraries/afterlogic/common/managers/maincontacts/storages/db directory.

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


Joined: 18 December 2013
Location: Austria
Online Status: Offline
Posts: 3
Posted: 18 December 2013 at 3:03am | IP Logged Quote Philipp_K

Ok, thank you for your help.
I'll check it. At any problems I will ask you again.
Back to Top View Philipp_K's Profile Search for other posts by Philipp_K
 
Philipp_K
Newbie
Newbie


Joined: 18 December 2013
Location: Austria
Online Status: Offline
Posts: 3
Posted: 18 December 2013 at 4:20am | IP Logged Quote Philipp_K

Hello again.
The first point I was able to implement.
With the second point I have problems.
I have my contacts in a table. Fields : Vorname (first name), Nachname (last name) , Mail (e-mail).
How is it possible to obtain the suggestions only from this table?
Thank you. Greetings
Back to Top View Philipp_K's Profile Search for other posts by Philipp_K
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 18 December 2013 at 4:32am | IP Logged Quote Igor

In command_creator.php file, GetSuggestContactItems function basically builds SQL query for searching in awm_addr_book database table. What you need to do is to provide your own query for searching in your database table.

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