|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
New hook for search_sources reg.Dear List Members,
Yesterday, I applied the Horde Groupware WebMail Edition 1.2.3-1.2.4 patches. Following are some of the settings in prefs.php in IMP. $_prefs['search_sources'] = array( 'value' => "localsql\tlocalldap\tfavourites", 'locked' => true, 'shared' => true, 'hook' => true, 'type' => 'implicit'); $_prefs['search_fields'] = array( 'value' => "localsql\tname\temail\nlocalldap\tname\temail\tstaffnumber\nfavourites\tname\temail", 'locked' => true, 'shared' => true, 'type' => 'implicit'); I enabled the example hook for search_sources. And also set 'use_shares' for localsql in turba to true. As per the CHANGES document, I should have been able to expand my personal address book which is in localsql. But, It did not happen. Again, I reverted 'use_shares' to false, and expand works for all of localsql, localldap and favourites. After applying the patch, hook => true was mentioned only for 'add_source'. Now I added it for 'search_sources' also. So, still my users are not able to use their additional personal address books created by them. Did I do any mistake in setting up prefs.php or hooks.php? Regards, Anant Athavale. -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscribe@... |
|
|
Re: New hook for search_sources reg.Zitat von ANANT S ATHAVALE <asa@...>:
> Dear List Members, > > Yesterday, I applied the Horde Groupware WebMail Edition 1.2.3-1.2.4 patches. > > Following are some of the settings in prefs.php in IMP. > > $_prefs['search_sources'] = array( > 'value' => "localsql\tlocalldap\tfavourites", > 'locked' => true, > 'shared' => true, > 'hook' => true, > 'type' => 'implicit'); > > $_prefs['search_fields'] = array( > 'value' => > "localsql\tname\temail\nlocalldap\tname\temail\tstaffnumber\nfavourites\tname\temail", > 'locked' => true, > 'shared' => true, > 'type' => 'implicit'); > > I enabled the example hook for search_sources. And also set 'use_shares' for > localsql in turba to true. > > As per the CHANGES document, I should have been able to expand my > personal address book which is in localsql. But, It did not happen. > Again, I reverted 'use_shares' to false, and expand works for all > of localsql, localldap and favourites. Does this happen with a fresh account? If you are using an older account which already has the preference set, it doesn't have any effect to enable the hook. > After applying the patch, hook => true was mentioned only for > 'add_source'. Now I added it for 'search_sources' also. > > So, still my users are not able to use their additional personal > address books created by them. > > Did I do any mistake in setting up prefs.php or hooks.php? > > Regards, > > Anant Athavale. > -- > IMP mailing list - Join the hunt: http://horde.org/bounties/#imp > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: imp-unsubscribe@... > Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscribe@... |
|
|
Re: New hook for search_sources reg.----- Message from jan@... ---------
Date: Wed, 30 Sep 2009 11:05:51 +0200 From: Jan Schneider <jan@...> Subject: Re: [imp] New hook for search_sources reg. To: imp@... > Zitat von ANANT S ATHAVALE <asa@...>: > >> Dear List Members, >> >> Yesterday, I applied the Horde Groupware WebMail Edition >> 1.2.3-1.2.4 patches. >> >> Following are some of the settings in prefs.php in IMP. >> >> $_prefs['search_sources'] = array( >> 'value' => "localsql\tlocalldap\tfavourites", >> 'locked' => true, >> 'shared' => true, >> 'hook' => true, >> 'type' => 'implicit'); >> >> $_prefs['search_fields'] = array( >> 'value' => >> "localsql\tname\temail\nlocalldap\tname\temail\tstaffnumber\nfavourites\tname\temail", >> 'locked' => true, >> 'shared' => true, >> 'type' => 'implicit'); >> >> I enabled the example hook for search_sources. And also set >> 'use_shares' for >> localsql in turba to true. >> >> As per the CHANGES document, I should have been able to expand my >> personal address book which is in localsql. But, It did not >> happen. Again, I reverted 'use_shares' to false, and expand works >> for all of localsql, localldap and favourites. > > Does this happen with a fresh account? If you are using an older > account which already has the preference set, it doesn't have any > effect to enable the hook. I checked, preference name 'search_source' is not set to anything for the user for whom I am testing this feature. This is a older account. > >> After applying the patch, hook => true was mentioned only for >> 'add_source'. Now I added it for 'search_sources' also. >> >> So, still my users are not able to use their additional personal >> address books created by them. >> >> Did I do any mistake in setting up prefs.php or hooks.php? >> >> Regards, >> >> Anant Athavale. >> -- >> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp >> Frequently Asked Questions: http://horde.org/faq/ >> To unsubscribe, mail: imp-unsubscribe@... >> > > > > Jan. > > -- > Do you need professional PHP or Horde consulting? > http://horde.org/consulting/ > > -- > IMP mailing list - Join the hunt: http://horde.org/bounties/#imp > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: imp-unsubscribe@... > ----- End message from jan@... ----- Regards, Anant Athavale. -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscribe@... |
|
|
Re: New hook for search_sources reg.ANANT S ATHAVALE <asa <at> isac.gov.in> writes:
> > ----- Message from jan <at> horde.org --------- > Date: Wed, 30 Sep 2009 11:05:51 +0200 > From: Jan Schneider <jan <at> horde.org> > Subject: Re: [imp] New hook for search_sources reg. > To: imp <at> lists.horde.org > > > Zitat von ANANT S ATHAVALE <asa <at> isac.gov.in>: > > > >> Dear List Members, > >> > >> Yesterday, I applied the Horde Groupware WebMail Edition > >> 1.2.3-1.2.4 patches. > >> > >> Following are some of the settings in prefs.php in IMP. > >> > >> $_prefs['search_sources'] = array( > >> 'value' => "localsql\tlocalldap\tfavourites", > >> 'locked' => true, > >> 'shared' => true, > >> 'hook' => true, > >> 'type' => 'implicit'); Form me the search_sources hook doesn't work if locked. It autoexpand only localsql and not localldap. Instead, If I don't lock the preference, the hook works. Into mysql db it sets the search_sources value rightly and autoexpand works for localsql and localldap too. If you like I wrote this hook also for search_field: // Example hook to set the value of the search_fields pref. Useful when using // a turba source with shares enabled (i.e. the example localsql // configuration) if (!function_exists('_prefs_hook_search_fields')) { function _prefs_hook_search_fields($username = null) { if (!$username) { return; } if ($GLOBALS['registry']->hasMethod('contacts/sources')) { $sources = $GLOBALS['registry']->call('contacts/sources'); return implode("\tname\temail\tlastname\n", array_keys($sources))."\tname\temail\tlastname"; } } } Also in this case, the hook works only if I don't lock the preference. It really seems that these hooks work only if the preference can be written into db (not locked). Regards m. -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscribe@... |
|
|
Re: New hook for search_sources reg.Thanks for your input. I will try out.
Regards, ANANT. ----- Message from falon@... --------- Date: Wed, 4 Nov 2009 13:02:08 +0000 (UTC) From: Marco <falon@...> Subject: Re: [imp] New hook for search_sources reg. To: imp@... > ANANT S ATHAVALE <asa <at> isac.gov.in> writes: > >> >> ----- Message from jan <at> horde.org --------- >> Date: Wed, 30 Sep 2009 11:05:51 +0200 >> From: Jan Schneider <jan <at> horde.org> >> Subject: Re: [imp] New hook for search_sources reg. >> To: imp <at> lists.horde.org >> >> > Zitat von ANANT S ATHAVALE <asa <at> isac.gov.in>: >> > >> >> Dear List Members, >> >> >> >> Yesterday, I applied the Horde Groupware WebMail Edition >> >> 1.2.3-1.2.4 patches. >> >> >> >> Following are some of the settings in prefs.php in IMP. >> >> >> >> $_prefs['search_sources'] = array( >> >> 'value' => "localsql\tlocalldap\tfavourites", >> >> 'locked' => true, >> >> 'shared' => true, >> >> 'hook' => true, >> >> 'type' => 'implicit'); > > > Form me the search_sources hook doesn't work if locked. It autoexpand only > localsql and not localldap. > > Instead, If I don't lock the preference, the hook works. Into mysql > db it sets > the search_sources value rightly and autoexpand works for localsql > and localldap > too. > > If you like I wrote this hook also for search_field: > > // Example hook to set the value of the search_fields pref. Useful when using > // a turba source with shares enabled (i.e. the example localsql > // configuration) > > if (!function_exists('_prefs_hook_search_fields')) { > function _prefs_hook_search_fields($username = null) > { > if (!$username) { > return; > } > > if ($GLOBALS['registry']->hasMethod('contacts/sources')) { > $sources = $GLOBALS['registry']->call('contacts/sources'); > return implode("\tname\temail\tlastname\n", > array_keys($sources))."\tname\temail\tlastname"; > } > } > } > > Also in this case, the hook works only if I don't lock the preference. > > It really seems that these hooks work only if the preference can be > written into > db (not locked). > > Regards > m. > > -- > IMP mailing list - Join the hunt: http://horde.org/bounties/#imp > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: imp-unsubscribe@... > ----- End message from falon@... ----- Regards, Anant Athavale. -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscribe@... |
| Free embeddable forum powered by Nabble | Forum Help |