Author Topic: Add global contacts . Addresbook  (Read 5527 times)

Offline soromir

  • Jr. Member
  • **
  • Posts: 15
Add global contacts . Addresbook
« 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
« Last Edit: December 04, 2017, 06:01:36 AM by soromir »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Add global contacts . Addresbook
« Reply #1 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.

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline soromir

  • Jr. Member
  • **
  • Posts: 15
Re: Add global contacts . Addresbook
« Reply #2 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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Add global contacts . Addresbook
« Reply #3 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…