I installed CMSMS and everything is running smoothly. I changed the default upload path from "uploads" to "files" in "config.php". Everything works as supposed but for the thumbnails. The thumbnails are generated when images are uploaded, I checked that.
In the TinyTMC editor, when I call the image function, I can open the image manager and I do get a listing of all images but as mentioned only the "No Thumbnail available" picture is shown. It seems to be a problem with "/lib/filemanager/ImageManager/thumbs.php?img=files/images/image_xyz.jpg".
Anybody can help?
Thanks.
[solved] No thumbnails due to non-standard upload path
[solved] No thumbnails due to non-standard upload path
Last edited by GSM on Thu Jul 24, 2008 10:18 pm, edited 1 time in total.
Re: No thumbnails due to non-standard upload path
I would check farther down in config.php as there may be another call for auto thumb generation path...
Re: No thumbnails due to non-standard upload path
The changed directory name works fine with the normal (image) upload functionality.
And the thumbnail generation is not the issue, just the use of them by the ImageManager.
And the thumbnail generation is not the issue, just the use of them by the ImageManager.
Re: No thumbnails due to non-standard upload path
You will have to go thru the Image Manager files to find where it's path to images tells it to look for the images to change it to your path, but the next upgrade will change it back so you'll have to rewrite it again...
Can I ask why you have changed the default paths/folders?...
Can I ask why you have changed the default paths/folders?...
Re: No thumbnails due to non-standard upload path
Because "upload" is kind of misleading, specifically when you host a Germanic site.
Re: No thumbnails due to non-standard upload path
Now I found the problem.
It's actually hard coded in the file "frmresourceslist.html" in the simplebrowser folder of TinyMCE around line 79:
Just swap the /uploads\/images\/ with your new path.
It's actually hard coded in the file "frmresourceslist.html" in the simplebrowser folder of TinyMCE around line 79:
Code: Select all
var oCell = oRow.insertCell(-1) ;
oCell.width = 16 ;
fileUrl = fileUrl.replace(/uploads\/images\//g,"");
oCell.innerHTML = sLink + '<img src="' + rootUrl + '/lib/filemanager/ImageManager/thumbs.php?img=' + fileUrl + '" border="0"></a>' ;