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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
GSM
Forum Members
Forum Members
Posts: 19
Joined: Wed Aug 08, 2007 2:38 pm

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

Post 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.
Last edited by GSM on Thu Jul 24, 2008 10:18 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: No thumbnails due to non-standard upload path

Post by Dr.CSS »

I would check farther down in config.php as there may be another call for auto thumb generation path...
User avatar
GSM
Forum Members
Forum Members
Posts: 19
Joined: Wed Aug 08, 2007 2:38 pm

Re: No thumbnails due to non-standard upload path

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: No thumbnails due to non-standard upload path

Post 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?...
User avatar
GSM
Forum Members
Forum Members
Posts: 19
Joined: Wed Aug 08, 2007 2:38 pm

Re: No thumbnails due to non-standard upload path

Post by GSM »

Because "upload" is kind of misleading, specifically when you host a Germanic site.
User avatar
GSM
Forum Members
Forum Members
Posts: 19
Joined: Wed Aug 08, 2007 2:38 pm

Re: No thumbnails due to non-standard upload path

Post 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.
Post Reply

Return to “CMSMS Core”