Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/01/2011, 14:26
esaenz22
(Desactivado)
 
Fecha de Ingreso: abril-2008
Mensajes: 787
Antigüedad: 16 años
Puntos: 7
Respuesta: problemas al previsualizar una imagen con el ckfinder

le puse imagenes/img/todo en el archivo config.php del ckfinder. ahora se me presento otro problema. cargo el gestor de imagenes y archivos en el ckfinder, subo una imagen y no se previsualiza. le doy clic derecho en ver y la imagen si esta.

instale el ckfinder fuera de la carpeta donde esta mi proyecto.



mejor les dejo el archivo config.php del ckfinder.


Código PHP:
Ver original
  1. function CheckAuthentication()
  2. {
  3.     // WARNING : DO NOT simply return "true". By doing so, you are allowing
  4.     // "anyone" to upload and list the files in your server. You must implement
  5.     // some kind of session validation here. Even something very simple as...
  6.  
  7.     // return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
  8.  
  9.     // ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
  10.     // user logs in your system. To be able to use session variables don't
  11.     // forget to add session_start() at the top of this file.
  12.  
  13.     return true;
  14. }
  15.  
  16. // LicenseKey : Paste your license key here. If left blank, CKFinder will be
  17. // fully functional, in demo mode.
  18. $config['LicenseName'] = '';
  19. $config['LicenseKey'] = '';
  20.  
  21. /*
  22.  Uncomment lines below to enable PHP error reporting and displaying PHP errors.
  23.  Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
  24. */
  25. // error_reporting(E_ALL);
  26. // ini_set('display_errors', 1);
  27.  
  28. /*
  29. To make it easy to configure CKFinder, the $baseUrl and $baseDir can be used.
  30. Those are helper variables used later in this config file.
  31. */
  32.  
  33. /*
  34. $baseUrl : the base path used to build the final URL for the resources handled
  35. in CKFinder. If empty, the default value (/userfiles/) is used.
  36.  
  37. Examples:
  38.     $baseUrl = 'http://example.com/ckfinder/files/';
  39.     $baseUrl = '/userfiles/';
  40.  
  41. ATTENTION: The trailing slash is required.
  42. */
  43. $baseUrl = '/kantohome/img/novedades/';
  44.  
  45. /*
  46. $baseDir : the path to the local directory (in the server) which points to the
  47. above $baseUrl URL. This is the path used by CKFinder to handle the files in
  48. the server. Full write permissions must be granted to this directory.
  49.  
  50. Examples:
  51.     // You may point it to a directory directly:
  52.     $baseDir = '/home/login/public_html/ckfinder/files/';
  53.     $baseDir = 'C:/SiteDir/CKFinder/userfiles/';
  54.  
  55.     // Or you may let CKFinder discover the path, based on $baseUrl.
  56.     // WARNING: resolveUrl() *will not work* if $baseUrl does not start with a slash ("/"),
  57.     // for example if $baseDir is set to  http://example.com/ckfinder/files/
  58.     $baseDir = resolveUrl($baseUrl);
  59.  
  60. ATTENTION: The trailing slash is required.
  61. */
  62. $baseDir = resolveUrl($baseUrl);
  63.  
  64. /*
  65.  * ### Advanced Settings
  66.  */

por cierto. me descargue el ckfinder la version 2. puede ser que sea por eso.

si no es el foro correcto, pueden mover mi tema.

saludos.

Última edición por esaenz22; 15/01/2011 a las 18:33 Razón: correccion.