Page 1 of 2

[Solved] CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Wed Jun 11, 2008 5:36 pm
by Owens
So in previous versions of CMSMS when I clicked the browse button inside the insert/edit image window it would open the Image manager.
Image
However, in CMSMS v1.3 it opens the CMS Made Simple File Selection window instead.
Image
Ok fine, so I don't get the fantastic thumbnails I could have lived with that, but when I try to insert the image it puts in a broken url to the image.

What do I go to get back the original image brower instead of the file section window?

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Wed Jun 11, 2008 7:28 pm
by Dr.CSS
If you go to the tiny interface you will see a "Filepicker style:" drop down with the show both option...

Mine shows correct link info in tiny, but when you choose it it has a longer url, /new/uploads/images/backw.png, but I looked at the html and it was

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 12:47 am
by Owens
mark wrote: If you go to the tiny interface you will see a "Filepicker style:" drop down with the show both option...
I have tried it with all three of the settings, should have mentioned that before. After looking at it again, it looks like there must be a config option that changed during the upgrade, because instead of the thumbnail, I am getting the file name again. As you can see in this screen shot (same as above).
Image
I wish I could still upload images directly from the Insert/edit image, instead of only through the image manager.
mark wrote: Mine shows correct link info in tiny, but when you choose it it has a longer url, /new/uploads/images/backw.png, but I looked at the html and it was
Again it must be a configuration problem somewhere. Because it is inserting an incomplete url into the html, thus causing the broken image. I don't want to have to manually correct the url every time so I will just have to look into some possible configuration corrections.

Any ideas on where the path is set for TinyMCE images?

But then again, TinyMCE Insert/edit image is showing the correct image directory, and the names of the images in those directories, just not the thumbnails. Hummmmm.....

This is the first time I have ever had problems after upgrading a CMS Made Simple install, and I've been doing it for a few years on three different sites. All previous versions have upgraded and worked flawlessly without any intervention on my part. So I was bound to hit a snag like this at some point.

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 3:05 am
by Dr.CSS
Do you happen to have the {metadata} tag in the head...

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 10:34 am
by morloi
excuse me... but with 1.3 tinymce insert/edit image is not possible to upload an image, like in 1.2.x ?
Now I have to load all article images then edit / insert article/page... this is not good...

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 11:43 am
by nuno
morloi wrote: excuse me... but with 1.3 tinymce insert/edit image is not possible to upload an image, like in 1.2.x ?
Now I have to load all article images then edit / insert article/page... this is not good...
tiny 2.4.1 is possible and in svn to, look ours projects in forge

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 11:57 am
by morloi
thanks so much! i've upgraded to tinymce 2.4.1 and found the option "Allow upload and creating dirs in FilePicker" ... ;)

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 12:01 pm
by morloi
mmm it works, but does not generate thumbnails...

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 12:15 pm
by nuno
morloi wrote: mmm it works, but does not generate thumbnails...
No, just image manage generate!

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 12:17 pm
by Silmarillion
Mark and Owens:

have you tried deselecting "make relative paths" on the advanced tab. The FilePicker always returns absolute paths, but Tiny has a setting which mangles them. Works perfect for me with both settings, though.

Owens: when you have trouble with the thumbnails, could I ask you to look in the html and post the path to the thumbnail-file here? So I can see what't going on...

I know it does not generate thumbnails, which is intentionally (don't ask), but I'll reconsider it!

Sil.

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 12:56 pm
by morloi
ok, clear... the old one does... ;) but everything is fine!!

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 9:56 pm
by Owens
Ok so here is what was causing the problem. I have an SSL certificate so I log into the admin section using a secured connection (https). After login the admin section remains secured. The problem goes away by putting the admin section into an unsecured connection. So now the real problem is that you can't use a secured connection with the file manager. Everything else works fine, just as it should using a secured connection.
Silmarillion wrote: I know it does not generate thumbnails, which is intentionally (don't ask), but I'll reconsider it!
Works fine while using the unsecured connection, as I can see the thumbnails and images are inserted correctly with correct URLs.
Image
The only strange thing is that everything else worked fine in the admin section while SSL secured. Any ideas?

While using a secured connection to the admin the file manger inserts images using incomplete URLs:

src="site.com/uploads/images/theimage.jpg"

However to be a fully qualified url it would have to be:

src="http://site.com/uploads/images/theimage.jpg"

Re: CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jun 12, 2008 10:09 pm
by Owens
Anyone having problems with the image border of zero not being set and retained via the Insert/edit image pop up window?

I set it to a number, say 5 and it sets the image border property. However, if I try to set it to 0 (zero), the border property is just removed all together.

Re: [Semi-Solved] CMSMS 1.3 - TinyMCE - Insert/edit image & Image Manager

Posted: Thu Jan 08, 2009 2:11 am
by jmh132
fix for those who manage only over ssl/https:

open: modules/TinyMCE/filepicker.php

replace (lines 34-36-ish):

Code: Select all

$rooturl=substr($rooturl,7); //remove http:/
$rooturl=substr($rooturl,strpos($rooturl,"/")); //Remove domain
with:

Code: Select all

if(substr($rooturl,0,5)=="https"){
        $rooturl=substr($rooturl,8); //remove https:/
} elseif(substr($rooturl,0,4)=="http") {
        $rooturl=substr($rooturl,7); //remove http:/
}
$rooturl=substr($rooturl,strpos($rooturl,"/")); //Remove domain

note: this also fixes a similar issue when adding a url / link via TinyMCE

Re: Thanks to JMH123 for solving this one.

Posted: Tue Mar 10, 2009 9:41 pm
by Owens
Thanks for the solution jmh132.