Thanks Cauld.
I have done modifications in mostlyce_frontend.php:
function getImageList() {
global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_secret;
$pathToImages = $mosConfig_absolute_path.'images/stories';
$imagesArray = array();
$imageList = scan_directory_recursively($pathToImages);
$validExtensions = array('jpeg', 'jpg', 'png', 'gif');
$count = 0;
$jsCode = 'var tinyMCEImageList = new Array(';
foreach ($imageList as $image) {
$count++;
$crtExtension = substr(strrchr($image, '.'), 1);
if (in_array($crtExtension, $validExtensions)) {
$urlImagePath = str_replace($mosConfig_absolute_path, $mosConfig_live_site.'/', $image);
$postAbsolutePath = str_replace($mosConfig_absolute_path, '', $image);
if ($count < count($imageList )) {
$jsCode .= "[\"$postAbsolutePath\", \"$urlImagePath\"],";
} else {
$jsCode .= "[\"$postAbsolutePath\", \"$urlImagePath\"],"; }
}
}
$jsCode = substr($jsCode, 0, strlen($jsCode)-1); //remove final comma
$jsCode .= ");"; //Dump out the newly assembled list of images for MOStlyCE
echo $jsCode;
}
I have done that because sometime I couldn't see list of images.
What do you think about MOStlyCE skins?
TinyMCE offers default and O2K7.
Last edited by tmrow (2009-06-04 00:26:50)