Hello,
for the FCKEditor, open the file
include.php and search for the line
$oFCKeditor->Config['CustomConfigurationsPath'] = WB_URL .'/modules/fckeditor/wb_config/wb_fckconfig.js';
Replace this line by the following code: (without starting <?php and ending ?>)
<?php
/**
use configuration file depending on group id
**/
$group_id = '';
if(isset($_SESSION['GROUP_ID'])) {
// extract the numeric config id
$group_id = (int) $_SESSION['GROUP_ID'];
}
// include the group id depending configuration file
if(file_exists(WB_PATH .'/modules/fckeditor/wb_config/wb_fckconfig' .$group_id .'.js')) {
$oFCKeditor->Config['CustomConfigurationsPath'] = WB_URL .'/modules/fckeditor/wb_config/wb_fckconfig' .$group_id .'.js';
} else {
// include the default file
$oFCKeditor->Config['CustomConfigurationsPath'] = WB_URL .'/modules/fckeditor/wb_config/wb_fckconfig.js';
}
?>
Then simply create a copy of the config file
/fckeditor/wb_config/wb_fckconfig.js for each group you want to support and rename it as follows: wb_fckconfig
GROUP_ID.js (where GROUP_ID is a numeric group_id; 1:=administrators).
If you want to test it for different groups, remember to delete the browser cache and to clear sessions before login into the WB backend with the new group_id.
Note: If you want to have a custom configuration file for
each user_id, simply replace:
$_SESSION['GROUP_ID'] with $_SESSION['USER_ID']
Regards Christian