Quote:
frankblack wrote:
Did I mention that I gave up support for tinyeditor? Guess not!
Did you ?
May be I had a problem with my ear this day ...
Quote:
@hervet: Please check a few things for me
a) Are the templates within tinyeditor generated? These are needed for making the plugin XOOPS image manager to work
b) Try to insert images with Firefox and have a look if the Javascript-Debug-Console is throwing any errors. If yes, post them please
Ok Franck, I believe that I have found the problem and the solution. It's not simple.
First, I had to read the class/XRManager.php file to understand where the problem was coming from.
To do it in the order, if the Php class called "finfo" (that comes with the php_fileinfo extension) exists then it is used to see pictures mime type. If this class (which is an excellent extension) does not exists then the module's class try to use the Php "mime_content_type" function (if you don't have it then I'm sorry for you).
In the case that the finfo class is available AND if you are using Php5, then the class tries to get information about each file via the finfo class.
The problem is that this class (like the mime_content_type function) relies on several files, magic.mime, magic, magic.mgc and magic.mime.mgc.
Those files are not always installed by your host and they are not always correctly set in the Php.ini...
Under Windows it's a real mess !
So, I have downloaded the magic.mime files from here :
http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=18878Then I have added them to TinyEditor (in a new folder called "mime") and I have modified the getMIME() function of the file /modules/tinyeditor/class/XRManager.php so that it uses those files.
As a result, everything is now running for me.
To be short, if, like me, you have problems when you want to insert a picture from this Tiny plugins, that's because your host did not install the fileinfo Php extension and/or because the magic.mime files used by this extension (and by the mime_content_type function) are not available or correctly set in the Php.ini.
If someone is interested, the link to "my" version of TinyEditor is updated.
http://xoops.instant-zero.com/uploads/tinyeditor.zipThanks again Franck !
PS: gcafiero, may I can suggest you to create a new topic for your question ?
Bye,
hervé
** EDIT **
I can confirm that it runs for Linux servers AND Windows (Xp Pro and 2003) servers with Apache or IIS.