hello,
FCKEditor.php does this...
$wgDefaultUserOptions['riched_use_toggle'] = 1;
$wgDefaultUserOptions['riched_start_disabled'] = 1;
$wgDefaultUserOptions['riched_use_popup'] = 1;
$wgDefaultUserOptions['riched_toggle_remember_state'] = 1;
...but as http://www.mediawiki.org/wiki/Manual:$w ... serOptions indicates "Settings added to this array will override the default user preferences used by anonymous visitors and newly created accounts"
So existing users suddenly get a behaviour change! Power-users cant get their beloved buttons / standard mediawiki (they'd need to know to Edit -> Preferences -> Misc which is too difficult for us to tell 1000+ users)
How do I ensure these settings are applied to everybody (new & existing accts)?
Thanks, AC
Tue, 11/04/2008 - 21:25
#1
Re: how to get FCKEdit mediawiki riched_start_disabled=1 on star
Let me know if you get help on this since I've asked the identical question.
I think the answer may be found by updateing the SQL table directly (http://www.gossamer-threads.com/lists/w ... t=1#105379)
Re: how to get FCKEdit mediawiki riched_start_disabled=1 on star
If we come up w/ a generic, reusable script to do this then I'll repost it here.
cheers, Alan
Re: how to get FCKEdit mediawiki riched_start_disabled=1 on star
For completeness here's the SQL commands we used to ensure that the Rich Editor comes up disabled by default for existing users, as it already does for new users: -
# Update riched_use_toggle if it already exists, or add it if it doesn't
update wiki_user set user_options = REPLACE(user_options, 'riched_use_toggle=0', 'riched_use_toggle=1') where user_options regexp 'riched_use_toggle=';
update wiki_user set user_options = CONCAT_WS('\n', user_options, 'riched_use_toggle=1') where user_options not regexp 'riched_use_toggle=';
# Update riched_start_disabled if it already exists, or add it if it doesn't
update wiki_user set user_options = REPLACE(user_options, 'riched_start_disabled=0', 'riched_start_disabled=1') where user_options regexp 'riched_start_disabled=';
update wiki_user set user_options = CONCAT_WS('\n', user_options, 'riched_start_disabled=1') where user_options not regexp 'riched_start_disabled=';
# Update riched_use_popup if it already exists, or add it if it doesn't
update wiki_user set user_options = REPLACE(user_options, 'riched_use_popup=0', 'riched_use_popup=1') where user_options regexp 'riched_use_popup=';
update wiki_user set user_options = CONCAT_WS('\n', user_options, 'riched_use_popup=1') where user_options not regexp 'riched_use_popup=';
# Update riched_toggle_remember_state if it already exists, or add it if it doesn't
update wiki_user set user_options = REPLACE(user_options, 'riched_toggle_remember_state=0', 'riched_toggle_remember_state=1') where user_options regexp 'riched_toggle_remember_state=';
update wiki_user set user_options = CONCAT_WS('\n', user_options, 'riched_toggle_remember_state=1') where user_options not regexp 'riched_toggle_remember_state=';
cheers, Alan