Joomla.it Forum
Componenti per Joomla! => Editor => : simgiallorosso 28 Nov 2007, 03:25:19
-
salve ragazzi,
innanzitutto un saluto a tutti coloro che come me "smanettano" con joomla da neofiti ed a tutti coloro che pazientemente cercano di risolvere problemi che ci si pongono davanti...e da neofita con tanto di guida jooma in mano vi chiedo un aiuto per l'editro FCK con cui non riesco a caricare le immagini e cercarle sul server.
inizialmente parlava di un errore sul UserFilesAbsolutePath.
Leggendo qui sul forum e da altre fonti (nn la guida che non specifica sta cosa) sono andato ad editare il file
mambots\editors\fckeditor\editor\filemanager\browser\default\connectors\php\config.php
inserendo, spero correttamente, la cartella di dove ho il sito e quindi la cartella delle immagini
____________________________
// 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'] = '/images/' ;
//raj
$sRealPath = realpath( './' ) ;
$sSelfPath = $_SERVER['PHP_SELF'] ;
$sSelfPath = substr( $sSelfPath, 1, strrpos( $sSelfPath, '/' ) ) ;
$ex= explode('/',$sSelfPath) ;
$Config['UserFilesPath'] = $mosConfig_live_site.'C:\\xampp\\htdocs\\miosito\\images\\' ;// /joom_v3/images/stories/
// 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'] = 'C:\\xampp\\htdocs\\miosito\\images\\' ;
//$Config['UserFilesAbsolutePath'] = $mosConfig_absolute_path.'/images/stories' ;//raj
// Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;
_____________________________
ho fatto bene?
se non altro ora nn mi da pių l'errore di prima e mi dā la possibilitā di caricare immagini e cercarle sul server , solo che non succede mai nulla....niente immagini.
controllavo i permessi delle varie cartelle nel mio sito tra cui images ed č in sola lettura, ma se vado a levare st'opzione non si leva...rimane sempre la spunta sulla parte sola lettura.
come devo fare x cambiare i permessi nelle cartelle sul mio sito in locale?
scusate la lunghezza del post e grazie cmq a tutti del tempo dedicatomi
-
Sostituisci:
$Config['UserFilesPath'] = $mosConfig_live_site.'C:\\xampp\\htdocs\\miosito\\images\\' ;// /joom_v3/images/stories/
con:
$Config['UserFilesPath'] = $mosConfig_live_site.'/images/stories/';
-
grazie mille per la pronta risposta, pero ancora non vā.
controllando nel sorgente della pagina con l'editor risutano le immagini messe ma in pratica gli manca sempre prima
http://localhost/miosito
ecco perchč nn si vedono.
guarda ti copio la stringa
<p><img alt="" src="http://localhost/divinahostess/images/apply_f2.png" />[img width= height= alt=]http://localhost/divinahostess/divinahostess/images/apply_f2.png[/img]testo<img alt="" src="http://localhost/divinahostess/images/stories/apply_f2.png" /><img alt="" src="http://localhost/divinahostess/images/apply_f2.png" /><img src="/images/archive_f2.png" alt="" /></p>
<p> </p>
vedi nelle prime immagini inserite l'ho messa a mano la stringa
http://localhost/divinahostess/
mentre nell'ultima inserita cosi come viene caricata con l'fck la parte iniziale nn c'č
________________________________-
il config php ora č cosi composto:
<?php
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Configuration file for the File Manager Connector for PHP.
*/
global $Config,$mosConfig_absolute_path, $mosConfig_live_site ;
// 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'] = '/images/' ;
//raj
$sRealPath = realpath( './' ) ;
$sSelfPath = $_SERVER['PHP_SELF'] ;
$sSelfPath = substr( $sSelfPath, 1, strrpos( $sSelfPath, '/' ) ) ;
$ex= explode('/',$sSelfPath) ;
$Config['UserFilesPath'] = $mosConfig_live_site.'/images/';
// 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'] = 'C:\\xampp\\htdocs\\divinahostess\\images\\' ;
//$Config['UserFilesAbsolutePath'] = $mosConfig_absolute_path.'C:\\xampp\\htdocs\\divinahostess\\images\\' ;//raj
// Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;
$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File'] = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = 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() ;
?>
______________________________
ho provato a cambiare la stringa come hai scritto tu ma non č cambiato nulla.....
scusami il disturbo e grazie x la pazienza
-
ho risolto....grazie mille cmq....in pratica hodovuto mettere osi la stringa:
// Path to user files relative to the document root.
//$Config['UserFilesPath'] = '/images/' ;
//raj
$sRealPath = realpath( './' ) ;
$sSelfPath = $_SERVER['PHP_SELF'] ;
$sSelfPath = substr( $sSelfPath, 1, strrpos( $sSelfPath, '/' ) ) ;
$ex= explode('/',$sSelfPath) ;
$Config['UserFilesPath'] = $mosConfig_live_site.'http://localhost/divinahostess/images/';
// 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'] = 'C:\\xampp\\htdocs\\divinahostess\\images\\' ;
//$Config['UserFilesAbsolutePath'] = $mosConfig_absolute_path.'C:\\xampp\\htdocs\\divinahostess\\images\\' ;//raj
una domanda ma quando spostero' il sito on line...ste stringhe le riconoscerā?nel senso le immagini se vedranno?
-
La variabile $mosConfig_live_site dovrebbe giā di suo restituirti l'url del dominio, se non lo fa significa che hai qualche problema sulla configurazione del server locale.
Probabilmente, in remoto dovrai ricaricare il componente senza effettuare alcuna modifica al codice.
-
ti ringrazio vivamente x l'aiuto che mi hai dato.grazie
-
ciao rieccomi qui a scrivervi....
messo il sito su uno spazio web l'editor nn funzionava gestendolo dall'admin on line.
ho ricaricato l'fck come mi hai detto tu e funziona....solo che punta solo alla cartella images/stories a quelle prima nn ci posso andare.....
ti incollo i file config del browser e dell upload
____________________________________
congig.php nella cartella browser
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * Configuration file for the File Manager Connector for PHP. */ global $Config,$mosConfig_absolute_path, $mosConfig_live_site ; // 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'] = '/images/' ; //raj $sRealPath = realpath( './' ) ; $sSelfPath = $_SERVER['PHP_SELF'] ; $sSelfPath = substr( $sSelfPath, 1, strrpos( $sSelfPath, '/' ) ) ; $ex= explode('/',$sSelfPath) ; $Config['UserFilesPath'] = $mosConfig_live_site.'/images/stories/' ;// /joom_v3/images/stories/ // 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'] = $mosConfig_absolute_path.'/images/stories' ;//raj // Due to security issues with Apache modules, it is reccomended to leave the // following setting enabled. $Config['ForceSingleExtension'] = true ; $Config['AllowedExtensions']['File'] = array() ; $Config['DeniedExtensions']['File'] = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ; $Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ; $Config['DeniedExtensions']['Image'] = 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() ; ?>
_______________________________________ _
config.php nella cartella upload
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * Configuration file for the File Manager Connector for PHP. */ global $Config,$mosConfig_absolute_path, $mosConfig_live_site ; // 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'] = '/images/' ; //raj $sRealPath = realpath( './' ) ; $sSelfPath = $_SERVER['PHP_SELF'] ; $sSelfPath = substr( $sSelfPath, 1, strrpos( $sSelfPath, '/' ) ) ; $ex= explode('/',$sSelfPath) ; $Config['UserFilesPath'] = $mosConfig_live_site.'/images/stories/' ;// /joom_v3/images/stories/ // 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'] = $mosConfig_absolute_path.'/images/stories' ;//raj // Due to security issues with Apache modules, it is reccomended to leave the // following setting enabled. $Config['ForceSingleExtension'] = true ; $Config['AllowedExtensions']['File'] = array() ; $Config['DeniedExtensions']['File'] = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ; $Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ; $Config['DeniedExtensions']['Image'] = 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() ; ?>
io ho provato a levare la string stories dopo images ma da errore quando apro l'editor.,.....puoi aiutarmi?
-
l'errore dice connectors disabled
-
Non utilizzo il tuo editor, probabilmente controllando le impostazioni dello stesso, ci sarā la possibilitā di indicare la directory di root dele immagini.
-
ma nn si setta sul file config.php che ti ho incollato?
perchč da pannello admin nn fa settare nulla....
quale usi di editor x curiositā?
-
risolto....era il file config.php nn settato su chmod 777 o 775