![]() |
|
|
|||||||
For more information about the ads and why they're here, please see the FAQ
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
#1
|
|||
|
|||
|
Just change your owner name from Michael to <your owner name> and your user_id to <your roundcube user_id> Code:
INSERT INTO roundcube.contacts( name, firstname, surname, email, user_id ) SELECT nickname, firstname, lastname, email, '2' FROM squirrelmail.address WHERE owner = 'michael' ORDER BY lastname ASC |
|
#2
|
||||
|
||||
|
Thanks for the solution, I have the solution modified for RoundCube 0.2 stable that the Squirrelmail Address Book with the first login users after to put on automatically adapted is imported.
Importantly the Squirrelmail and RoundCube tables must lie in the same data base on the same MySQL server. serach in /program/include/rcube_user.php in the static function create PHP Code:
PHP Code:
PHP Code:
inserts for this into /config/main.inc.php PHP Code:
so it should look then PHP Code:
Last edited by lacri; 03-05-2009 at 10:44 AM. |
|
#3
|
|||
|
|||
|
Quote:
One more thing, does it run for the first time only or everytime a user logged? Last edited by zamri; 03-08-2009 at 09:48 AM. |
|
#4
|
||||
|
||||
|
No with each login, only with the first login the Address Book is not imported, then additional modifications are overwritten and are not put on not doubly contacts. A small fast solution is like that without large checking of the input.
If the data base server is the same and the Squirrelmail tables should be appropriate in another railways it also to function the railways before the name to indicate… so long the RoundCube entrance also for vintage right in the Squirrelmail table has. PHP Code:
|
|
#5
|
|||
|
|||
|
Thanks lacri. It's simple.
Can i put the code for inserting data into contacts before or after this line in rcube_user.php? $mail_domain = $rcmail->config->mail_domain($host); I got blank page after logged in for the first time. Refreshing the page didn't help. |
|
#6
|
||||
|
||||
|
the code must placed in the static function create (rcube_user.php)
before $mail_domain = $rcmail->config->mail_domain($host); show in the RC log folder what says the error logfile or show on you server in the php_error logfile to resolve the Problem with the blank page. |
![]() |
LinkBacks (?)
LinkBack to this Thread: http://www.roundcubeforum.net/7-third-party-contributions/25-old-style-plug-ins/726-import-address-book-squirrelmail-table.html
|
||||
| Posted By | For | Type | Date | |
| Re: [RCD] squirrelmail addressbook to roundcube | This thread | Refback | 09-14-2009 05:14 AM | |
| pdadmin-forum | Anwendung | squirrel und roundcube Adressbuch-Abgleich | This thread | Refback | 05-26-2009 10:38 AM | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|