Page 1 of 1

[solved] No thumbnails due to non-standard upload path

Posted: Sat Jul 19, 2008 10:35 am
by GSM
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.

Re: No thumbnails due to non-standard upload path

Posted: Mon Jul 21, 2008 3:25 am
by Dr.CSS
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

Posted: Tue Jul 22, 2008 6:03 pm
by GSM
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.

Re: No thumbnails due to non-standard upload path

Posted: Tue Jul 22, 2008 6:29 pm
by Dr.CSS
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?...

Re: No thumbnails due to non-standard upload path

Posted: Thu Jul 24, 2008 9:17 pm
by GSM
Because "upload" is kind of misleading, specifically when you host a Germanic site.

Re: No thumbnails due to non-standard upload path

Posted: Thu Jul 24, 2008 10:17 pm
by GSM
Now I found the problem.

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>' ;
Just swap the /uploads\/images\/ with your new path.