Checked out the "forced user preferences" plugin, but wasn't sure how to configure it to disallow the setting of Folder Refresh (ie, want to set it to "Never" for everyone).
I'm running SM 1.4.2. I set under the forced_user_preferences config.php (in the plugin directory):
$fp_forced_settings = array( 'left_refresh' => SMPREF_NONE );
But, it doesn't seem like that's right (as I was able to just set the preference to be something else in my local options, and it was refreshing again).
Is there anything I can do shy of removing the code from the folders module? Or, does someone know the proper attribute (and value) that needs to be set? Thanks.
Plugin currently does not remove settings from option pages. It is planned feature for 1.1. Currently I have only thoughts about way of doing it.
I had been thinking about that and I think that it would be easily accomplished by adding hooks for your plugin for all of the optpage_loadhook hooks (there are something like four of them), where the code could then modify the optpage_data array to unset() unwanted options. Problem is that the optpage_data array might not be global, so it'd have to be made global or passed into/out of the hook. The plugin would also need to know about all the options array keys, but they should be static so hopefully that's not a problem.
- paul
If you want to be able to do it in forced_prefs - write the code, that modifies option block with folder preferences.
I think in order to disable certain options, plugin must have extra functions added to init function and extra functions hooked to display and folder option hooks.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
