Roundcube Community Forum

 

addressbook in compose window

Started by corbosman, October 28, 2009, 03:42:19 PM

Previous topic - Next topic

corbosman

As soon as I find time I'll add groups. I'll aim for this weekend.

bagu

Thanks a lot, it will be really usefull ;)

tim4dev

Here is the Russian localization ru_RU


<?php
// tim4dev

$labels = array();                   
$labels['compose_addressbook_buttontitle'] = '&#1055;&#1086;&#1082;&#1072;&#1079;&#1072;&#1090;&#1100; &#1072;&#1076;&#1088;&#1077;&#1089;&#1085;&#1091;&#1102; &#1082;&#1085;&#1080;&#1075;&#1091;';
$labels['compose_addressbook_title'] = '&#1040;&#1076;&#1088;&#1077;&#1089;&#1085;&#1072;&#1103; &#1082;&#1085;&#1080;&#1075;&#1072;';
$labels['compose_addressbook_close'] = '&#1047;&#1072;&#1082;&#1088;&#1099;&#1090;&#1100;';
$labels['compose_addressbook_noselect'] = '&#1042;&#1099; &#1085;&#1077; &#1074;&#1099;&#1073;&#1088;&#1072;&#1083;&#1080; &#1072;&#1076;&#1088;&#1077;&#1089;';
$labels['compose_addressbook_added'] = '&#1040;&#1076;&#1088;&#1077;&#1089;&#1072; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1099;';

?>


corbosman

Question for those using this plugin.

Im working on address group support, and im wondering what to do with picking multiple groups, and having overlapping addresses in groups. Lets say you pick 2 groups

group1 { [email protected], [email protected] }
group2 { [email protected], [email protected] }

What should I do? add [email protected] twice? Or once? Id say once, but then again, no where in RC does the code prevent you from adding the same address multiple times.

It's quite complicated to add this to my plugin. There is no core support for asking to expand multiple groups, as RC doesnt do it anywhere. And I also dont want to be doing a lot of ajax calls. Suppose I pick 85 groups I want to mail, I want to do 1 ajax call, and return the whole expanded set in 1 go. But, its getting there slowly..

corbosman

#94
I just released version 2.0 of my plugin. This version is compatible with RC 0.4, and especially with address groups. Ive also changed how it grabs the addressbooks to use. You either configure it in the plugin's config.inc.php, or if you dont, it uses all available address books. Finally, I changed how it hooks into the compose window's toolbar. This used to be done through a template hook, but now I use add_button, as the developers have added a toolbar container to the compose window on my request.

All this combined makes for a rather large change in my plugin code. Hence the 2.0 version. It would be nice to get feedback, if things work as expected.

You can get it here:  Roundcube Plugins | Underwater World

ABerglund

Installed v.2.0 on my test install, now at 3588. Config'd to connect to a large global LDAP directory (~2k users) and Search as the behavior. Seems to work just fine in my initial testing. Will post back if I come across any bugs.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

bagu

Work well for me.
Thanks again

alsyka

I installed compose_addressbook, and the icon show up, and the pop up address book appears, but I get an error message:

SERVICE CURRENTLY NOT AVAILABLE!
Error No. [500]

Help?:(

corbosman

did you use my plugin 2.0 on RC 0.3? That doesnt work.  2.0 works with 0.4 only. For 0.3 you need RC 0.3

alsyka

Hi.. I am using 2.0 with 0.4.....



Quote from: corbosman;27332did you use my plugin 2.0 on RC 0.3? That doesnt work.  2.0 works with 0.4 only. For 0.3 you need RC 0.3

corbosman

did you actually upgrade the SQL database as per the directions in the ugrading readme of RC 0.4?

alsyka


alsyka

You hit it right on.. the mysql update did not take.. I manually updated it and now all works fine..

Thanks for your speedy replies.

corbosman

Does anyone think it's a problem if I replaced the current dialog window with the default jquery-ui dialog window?

In latest SVN versions my plugin doesnt work anymore due to an incompatibility between roundcube javascript and the modal plugin javascript. Instead of trying to fix someone elses plugin that hasnt been worked on in 2 years, i figured i might as well just move to the jquery dialog window.

rosali

IMO, it is a good idea to use jquery-ui.
Regards,
Rosali