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

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.
User avatar
Owens
Forum Members
Forum Members
Posts: 97
Joined: Thu Dec 27, 2007 11:29 pm

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

Post 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?
Last edited by Anonymous on Tue Mar 10, 2009 9:40 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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
User avatar
Owens
Forum Members
Forum Members
Posts: 97
Joined: Thu Dec 27, 2007 11:29 pm

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

Post 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.
Last edited by Anonymous on Thu Jun 12, 2008 2:33 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

Do you happen to have the {metadata} tag in the head...
morloi
New Member
New Member
Posts: 7
Joined: Wed Sep 27, 2006 2:26 pm

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

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

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

Post 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
morloi
New Member
New Member
Posts: 7
Joined: Wed Sep 27, 2006 2:26 pm

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

Post by morloi »

thanks so much! i've upgraded to tinymce 2.4.1 and found the option "Allow upload and creating dirs in FilePicker" ... ;)
morloi
New Member
New Member
Posts: 7
Joined: Wed Sep 27, 2006 2:26 pm

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

Post by morloi »

mmm it works, but does not generate thumbnails...
nuno

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

Post by nuno »

morloi wrote: mmm it works, but does not generate thumbnails...
No, just image manage generate!
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

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

Post 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.
morloi
New Member
New Member
Posts: 7
Joined: Wed Sep 27, 2006 2:26 pm

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

Post by morloi »

ok, clear... the old one does... ;) but everything is fine!!
User avatar
Owens
Forum Members
Forum Members
Posts: 97
Joined: Thu Dec 27, 2007 11:29 pm

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

Post 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"
Last edited by Anonymous on Fri Jun 13, 2008 7:14 pm, edited 1 time in total.
User avatar
Owens
Forum Members
Forum Members
Posts: 97
Joined: Thu Dec 27, 2007 11:29 pm

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

Post 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.
Last edited by Anonymous on Thu Jun 12, 2008 10:12 pm, edited 1 time in total.
jmh132

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

Post 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
User avatar
Owens
Forum Members
Forum Members
Posts: 97
Joined: Thu Dec 27, 2007 11:29 pm

Re: Thanks to JMH123 for solving this one.

Post by Owens »

Thanks for the solution jmh132.
Post Reply

Return to “CMSMS Core”