> According to the following references: > > http://article.gmane.org/gmane.mail.squirrelmail.devel/6272/match=dbprefs > http://www.squirrelmail.org/wiki/DefaultPreferences > > I should be able to set user preference defaults for any users logging > into squirrelmail for the first time. The following variable in > db_prefs.php is the one I believe must be added to: > > var $default = Array('theme_default' => 0, > 'show_html_default' => '0'); > > Any preferences I add above (like 'sort' => 0) do not get written to my > db userprefs entry nor does the 2 prefs above. Has anyone successfully > used/added default preferences to their database backend? I don't see > any php errors when trying this out. > > I'm running: > courier-imap-3.0.4 > php-common-4.3.10 > apache-module-php-4.3.10 > apache-1.3.31 > Solaris 9 > squirrelmail-1.4.7 > Too many plugins to list... > > Note: The default preferences that do get added for a new account are > the hililist and javascript_on prefkeys. Default DB settings are not saved in database. They are applied if settings are not present in database. Set 'left_size' to some big value and see if it is applied. See getKey() and fillPrefsCache() methods in dbPrefs class. -- Tomas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users