Roundcube Community Forum

Release Support => Requests => Topic started by: soromir on December 04, 2017, 04:22:56 AM

Title: Add global contacts . Addresbook
Post by: soromir on December 04, 2017, 04:22:56 AM
Good afternoon. It is necessary to make the import of contacts from another other site, and write them to the contacts table, but it must be written so that all imported data is of type Global. The data for the import is already selected, only write to the RC table with a certain type.
I use the plugin globaladdressbook
Who can tell how to implement it. THX
Title: Re: Add global contacts . Addresbook
Post by: JohnDoh on December 04, 2017, 01:03:21 PM
Do you have the information you want to import in either vCard or CSV format? If so then the easiest option would be to use the Import function inside Roundcube. Using the Larry skin go to the Contacts section and Import is the first option on the toolbar.

Title: Re: Add global contacts . Addresbook
Post by: soromir on December 05, 2017, 04:45:21 AM
I need to do an import of the back of their other site. There are sample query data sql. I need to write this data in the table roundcube.contacts. I do not have vCard or CSV format only an array | data object
Title: Re: Add global contacts . Addresbook
Post by: JohnDoh on December 05, 2017, 01:11:49 PM
as long as you have all the data then all you need is the userid of the global address book user which you can get from the users table in the same database.