Back to top

Autore Topic: Problema editor FCK e permessi cartelle  (Letto 6530 volte)

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Problema editor FCK e permessi cartelle
« il: 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

Offline Luca Curatola

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1086
  • Sesso: Maschio
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #1 il: 28 Nov 2007, 09:55:29 »
Sostituisci:

Codice: [Seleziona]
$Config['UserFilesPath'] = $mosConfig_live_site.'C:\\xampp\\htdocs\\miosito\\images\\' ;// /joom_v3/images/stories/
con:

Codice: [Seleziona]
$Config['UserFilesPath'] = $mosConfig_live_site.'/images/stories/';
Sgaragnao il provider più ricercato su google! :)

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #2 il: 28 Nov 2007, 10:32:58 »
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>&nbsp;</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 

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #3 il: 28 Nov 2007, 10:51:03 »
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?

Offline Luca Curatola

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1086
  • Sesso: Maschio
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #4 il: 28 Nov 2007, 11:36:43 »
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.
Sgaragnao il provider più ricercato su google! :)

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #5 il: 28 Nov 2007, 21:17:01 »
ti ringrazio vivamente x l'aiuto che mi hai dato.grazie

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #6 il: 01 Dic 2007, 20:53:43 »
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?


Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #7 il: 01 Dic 2007, 20:59:42 »
l'errore dice connectors disabled

Offline Luca Curatola

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1086
  • Sesso: Maschio
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #8 il: 02 Dic 2007, 01:06:46 »
Non utilizzo il tuo editor, probabilmente controllando le impostazioni dello stesso, ci sarà la possibilità di indicare la directory di root dele immagini.
Sgaragnao il provider più ricercato su google! :)

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #9 il: 02 Dic 2007, 20:42:34 »
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à?

Offline simgiallorosso

  • Appassionato
  • ***
  • Post: 315
    • Mostra profilo
Re: Problema editor FCK e permessi cartelle
« Risposta #10 il: 02 Dic 2007, 23:06:03 »
risolto....era il file config.php nn settato su chmod 777 o 775

 



Web Design Bolzano Kreatif