[horde] Setting Default Preferences Before First Login

Brian Spraker spraker at yahoo.com
Mon Feb 6 14:07:47 UTC 2012






>________________________________
> From: Vilius Šumskas <vilius at lnk.lt>
>To: horde at lists.horde.org 
>Sent: Monday, February 6, 2012 5:49 AM
>Subject: Re: [horde] Setting Default Preferences Before First Login
> 
>> I have a similar situation as you have.
>> 
>> Did a mysqldump of the data, and lo-and-behold, the data is readable...
>> 
>> Based on the mysqldump result I did successfully insert new data into the
>> database even though the field is a binary - blob field now.
>> 
>> I tested this with a test account on my test webmailserver, and the user
>> preferences set through the script I made worked without any problem.
>
>Why so complicated? As Gunnar already pointed out, you should be using prefs.local.php or hooks. It's much easier, cleaner and less over engineering.
>
>-- 
>  Vilius
>
>-- 
>Horde mailing list
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
>

Thank you for the responses.  This is exactly what I did.  I added another file in the horde/config/prefs.d folder with some of the preferences.  I also did have to update the imp/config/prefs.php file directly to get some of the settings to stick for some reason (even though I had them sent in the horde/config/prefs.d folder - maybe it is because they needed to be in the imp/config/prefs.d folder instead?).

Either way, doing the default preferences there was pretty easy - and that prevents one more MySQL import for each user created.

However, I didn't really find any good documentation about updating the preferences and making your own.  The big question I had was - how do you know what to put in the preferences file?  All of them start with:

$_prefs['application']['attribute'] = '<preference config>'

But there isn't a good document/listing anywhere that provides all of the different preferences that can be set and their settings.

Either way, I have a fully functioning Horde 4 install and everything is working great.  The last bit causing an issue - is I don't have the vacation/auto-reply ability now.  I guess I could code a quick page that asks for username, password, whether to turn the auto-responder on or off, and the note.  Then it would just link to the current database that already has all of that set.


Brian S.



More information about the horde mailing list