TinyMCE

Hilfe zu Modulen und Tags
eprom3000

TinyMCE

Post by eprom3000 »

Hallo zusammen,

endlich habe ich mal ein CMS gefunden das wirklich einfach zu bedienen ist. Leider habe ich nun das Problem, das ich mit TinyMCE in den Content keine Bilder einbinden kann.

Das CMS läuft derzeit unter XAMPP in der neusten Version als localhost. Die Bilder die in den Kontent eingebunden werden sollen liegen im Verzeichnis ./uploades/images.

Habe nun alle möglichen Pfadangaben auf die Bilder durch. Nur kein Bild kommt da zum vorschein. Wenn ich den Platzhalter der Grafik anklicke und wieder auf das Image-Symbol gehe soll man ja die Werte der Grafikdatei ändern können.

Und hier liegt das Problem! Die Maske zeigt als Pfad/ Imageangebae total was anderes: ../../../../undefined/http://localhost.

Wie diese Pfadangabe zustande kommt ist mir momentan unerklärlich.

Das CMS läuft als Standartinstallation, ohne das irgendwo was rumgefingert wurde. Kann da jemand helfen und hat einen Tip woran das liegen mag?

Gruß

eprom3000
cyberman

Re: TinyMCE

Post by cyberman »

eprom3000 wrote: ../../../../undefined/http://localhost.
                  ^^^^^^
Lokal arbeite ich auch mit XAMPP und hab keine Probleme :-) .

Hast Du schon mal die Einträge in der config.php überprüft ?

Dort sollten bezüglich der Imagepfade im Normalfall so etwas ähnliches wie

Code: Select all

$config['image_uploads_path'] = 'C:\\Programme\\xampp\\htdocs\\cms011b2/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cms011b2/uploads/images';
zu finden sein.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

To continue in English ;)
If I try to insert an image in the content, the image browser from TinyMCE point to the images/ directory while FCKeditor points to the uploads/ one. Config.php shows:

Code: Select all

$config['previews_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/tmp/cache';
$config['uploads_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/uploads';
$config['uploads_url'] = 'http://www.uisge-beatha.eu/uploads';
That means moving all images to another directory  :-\ Is there a way to have TinyMCE pointing to another directory? (BTW, I don't want to go back to FCKeditor, see discussion else in the form...)
stefan

Re: TinyMCE

Post by stefan »

eprom3000 wrote:
Das CMS läuft derzeit unter XAMPP in der neusten Version als localhost. Die Bilder die in den Kontent eingebunden werden sollen liegen im Verzeichnis ./uploades/images.

Habe nun alle möglichen Pfadangaben auf die Bilder durch. Nur kein Bild kommt da zum vorschein. Wenn ich den Platzhalter der Grafik anklicke und wieder auf das Image-Symbol gehe soll man ja die Werte der Grafikdatei ändern können.

Und hier liegt das Problem! Die Maske zeigt als Pfad/ Imageangebae total was anderes: ../../../../undefined/http://localhost.

Wie diese Pfadangabe zustande kommt ist mir momentan unerklärlich.
Das ist wahrscheinlich gar nicht so unerklärlich - ist ein bekannter Bug in der aktuellsten Version. Wenn es nicht noch weitere Probleme gibt, dann sollte die SVN version deine Probleme lösen. Wäre mir sehr gedient, wenn du diese ausprobieren könntest. Oder einfacher, ersetze die Datei

Code: Select all

trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php
durch die aktuellste

Code: Select all

http://viewsvn.cmsmadesimple.org/viewsvn/*checkout*/trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php?content-type=text%2Fplain&rev=29&root=tinymce
cyberman

Re: TinyMCE

Post by cyberman »

Gregor wrote: If I try to insert an image in the content, the image browser from TinyMCE point to the images/ directory while FCKeditor points to the uploads/ one.
In my opinion only TinyMCE does it right  :). The directory /uploads/images is supposed for uploading images, directory /uploads is for all the other uploads.
That means moving all images to another directory  :-\ Is there a way to have TinyMCE pointing to another directory?
Take another look to config.php

Code: Select all

$config['image_uploads_path'] = 'C:\\Programme\\xampp\\xampp\\htdocs\\cms0121/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cms0121/uploads/images';
Please try to change these values.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

Thanks Cyberman.

Reading my comment, I see I meant uploads/images/ instead of uploads/

I have my pictures on the server instead of on my pc. Have changed config.php to:

Code: Select all

$config['image_uploads_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/uploads/images';
$config['image_uploads_url'] = 'http://www.uisge-beatha.eu/uploads/images';
It still goes to images/ instead of uploads/images/
Last edited by Gregor on Thu May 11, 2006 8:46 am, edited 1 time in total.
cyberman

Re: TinyMCE

Post by cyberman »

Gregor wrote: It still goes to images/ instead of uploads/images/
If you wanna use only /uploads directory for all files change these values to /uploads  :) ...
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

I've changed the config.php file. When asking the properties of a picture, I click browse, a new windws opens called FKCeditor - Resource Browser. FKCeditor is not installed (says the module manager). Resource type is 'image' and the directory 'Images/' is shown.

I assume that the full path in the variables is required.
cyberman

Re: TinyMCE

Post by cyberman »

Hmm, perhaps there's a path inside TinyMCE installation too  ??? ... don't know.

Current TinyMCE uses the file browser from FCK.

Have you cleared your system cache ? It should be done every time you change something in config.php.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

Thanks for the tip. Cleard all caches, still no luck.
Also installed FCKeditor and set tinyMCE as default editor, but does not make any difference. SO, this does leave one big question mark...
cyberman

Re: TinyMCE

Post by cyberman »

Which TinyMCE version you are using?
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

Version 2.0.1
If you want, I can give entrance to my cms. In that case, please post a private e-mail.
stefan

Re: TinyMCE

Post by stefan »

Gregor wrote: Version 2.0.1
If you want, I can give entrance to my cms. In that case, please post a private e-mail.
There is a bug in version 2.0.1 in the filebrowser plugin. Have you replaced

Code: Select all

trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php
with

Code: Select all

http://viewsvn.cmsmadesimple.org/viewsvn/*checkout*/trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php?content-type=text%2Fplain&rev=29&root=tinymce
? If yes, then I don't know a solution at the moment and have to investigate the problem further.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: TinyMCE

Post by Gregor »

I installed TinyMCE yesterday evening. I have not replaced any file. The content of my config.php deep inside the TinyMCE directory is:

Code: Select all

<?php 
/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: config.php
 * 	Configuration file for the File Manager Connector for PHP.
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
 */

global $Config ;

// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
// $Config['UserFilesPath'] = 'uploads/' ;
$Config['UserFilesPath'] = str_replace($config["root_url"].'/', '', $config["uploads_url"])."/";

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
// $Config['UserFilesAbsolutePath'] = '' ;
$Config['UserFilesAbsolutePath'] = $config['uploads_path'];

$Config['AllowedExtensions']['File']	= array() ;
$Config['DeniedExtensions']['File']		= array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;

$Config['AllowedExtensions']['Image']	= array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image']	= array() ;

$Config['AllowedExtensions']['images']	= array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['images']	= array() ;

$Config['AllowedExtensions']['Flash']	= array('swf','fla') ;
$Config['DeniedExtensions']['Flash']	= array() ;

$Config['AllowedExtensions']['Media']	= array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media']	= array() ;

$cfgfilename = '../config.php';
while(!@file_exists($cfgfilename)){
            $cfgfilename = "../".$cfgfilename;
}
@include($cfgfilename);

// $Config['UserFilesPath'] = $config['uploads_url'];
// $Config['UserFilesPath'] = str_replace( 'http://', '', $Config['UserFilesPath'] );
// $Config['UserFilesPath'] = substr($Config['UserFilesPath'], strpos($Config['UserFilesPath'], "/"));
// $Config['UserFilesPath'] = $Config['UserFilesPath']."/" ;

// $diff = str_replace($config["root_url"].'/', '', $config["uploads_url"])."/";

?>


cyberman

Re: TinyMCE

Post by cyberman »

Please try to replace the file which fractal called ...
Last edited by cyberman on Fri May 12, 2006 6:35 am, edited 1 time in total.
Post Reply

Return to “Module und Tags”