Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: wueb on August 30, 2012, 04:25:01 AM

Title: Change autocomplete source
Post by: wueb on August 30, 2012, 04:25:01 AM
Is possible to change the autocomplete source on the "To:" field when i'm writing a new message.

I mean, instead the source be the roundcube adress book, i would like to be something from another personal table i have on the database.

Thanks.
Title: Re: Change autocomplete source
Post by: alec on August 30, 2012, 05:47:09 AM
You need to create a plugin. See example_addressbook plugin.
Title: Re: Change autocomplete source
Post by: wueb on August 30, 2012, 07:45:33 AM
Thank you very much alec!
Title: Re: Change autocomplete source
Post by: wueb on August 30, 2012, 01:29:33 PM
One more thing.

On the example_addressbook the constructor only have 1 parameter

public function __construct($name)

I want to change the static arrays from the example to dynamic values from mine database, but i think i would need the $dbconn parameter on the constructor to access the database. How can i do it?