Foros del Web » Programando para Internet » PHP »

Problema con Commentarios de GentleSource

Estas en el tema de Problema con Commentarios de GentleSource en el foro de PHP en Foros del Web. Hola a todos :) Recurro a ustedes por que ya no se que hacer y como hacerlo funcionar... Aqui detallo todo... Quiero implementar en mi ...
  #1 (permalink)  
Antiguo 22/08/2009, 13:43
Avatar de janlux  
Fecha de Ingreso: marzo-2009
Mensajes: 57
Antigüedad: 15 años, 1 mes
Puntos: 2
Problema con Commentarios de GentleSource

Hola a todos :)

Recurro a ustedes por que ya no se que hacer y como hacerlo funcionar...

Aqui detallo todo...

Quiero implementar en mi web un sistema de comentarios el cual cogi de
Código:
http://www.gentlesource.com/comment-script/
Aqui detallo los pasos a seguir para su implementacion:

Código:
1. Connect to your web server using an FTP program.
2. Create a new folder on your server named i.e. comments.
3. Upload the whole script including all files and folders to your server into the new
folder. Make sure the original file structure appears on the server. Read more details
in chapter 4.2 Upload.
4. Make sure the script folder and the sub-folder cache are writable by the script
(chmod 777). Read more details in the chapter 4.3 File and Folder Permissions. If
those folders are not writable the installation will fail.
5. Call the admin area of the script in your browser:
http://www.example.com/comments/admin/
6. You are probably seeing now the installation screen of the script. Please make sure
you have the database access data. Read more details in chapter 4.4 Database
Access Data.
7. Choose a prefix for the database tables. Default value is c5t_ and there is actually
no need to change that unless you want to have more than one installation of the
script side by side.
8. Enter the information for the admin account you want to create and use, once the
script is working.
9. Click the button Install Now. In case the installation was successful, you will be
provided with a link to the login screen where you can use the account data you just
entered.

4.2 Upload
All files have to be uploaded in text mode (ASCII mode) except for the font file(s) in
the folder /include/font/. The font file daft.ttf has to be transferred in binary mode.
Otherwise the Captcha feature will not work properly.

4.4 Database Access Data
You need following four items:
• Database hostname
• Database name
• Database user name
• Database password
//////Termina el proceso de instalaion en mi servidor, ya lo he configurado y se ha instalado todo correctamente.

El problema surje aqui:

Código:
5.1 Include into a PHP File
You can include the script anywhere on your web server.
Step-by-Step:
1. Copy the file include.php into the folder where your files reside you want to
implement with Comment Script.
2. Add the PHP include statement at the very top of your existing PHP file. It is
important that no output is made before the include statement.
include './include.php';
In case you have HTML code in your PHP file, it would have to look like this:
<?php include './include.php'; ?>
<html>
<head>[...]</head>
<body>[...]</body>
</html>

3. Move the variable $c5t_output from the new include.php file to the place in
your existing PHP file where you want the Comment Script content to appear.
echo $c5t_output;
It is important that you delete the variable $c5t_output from include.php
once you have moved $c5t_output to your existing web page.
4. The script should work now. If not, please check steps 1 and 2.
El caso para incluirlo en mi PHP con codigo HTML

Arriba de mi codigo he incluido:
<?php include './include.php'; ?>
Dentro del:
Código PHP:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include './include.php'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>(Ejemplo de Web)</title>
</head>
<body>[...]</body>
</html>
Al mover la variable $c5t_output desde include.php.tpl y borrarla en el, la movi a mi documento de php con codigo html que arriba menciono y quedo asi:

Código PHP:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include './include.php'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>(Ejemplo de Web)</title>
</head>
<body>
 Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido 
<p><? echo $c5t_output?></p>
 Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido 
</body>
</html>
El archivo include.php.tpl antes de movel la variable era:
Código PHP:
<?php

/** 
 * GentleSource Comment Script
 * 
 * (C) Ralf Stadtaus http://www.gentlesource.com/
 */


define('C5T_ROOT''{$server_script_path}');
include 
C5T_ROOT 'comment.php';

echo 
$c5t_output;

?>
Tras moverla y eliminarla quedo asi:
Código PHP:
<?php

/** 
 * GentleSource Comment Script
 * 
 * (C) Ralf Stadtaus http://www.gentlesource.com/
 */


define('C5T_ROOT''{$server_script_path}');
include 
C5T_ROOT 'comment.php';



?>
En teoria como dicen el el documento de istalacion y demas,deberia de funcionar pero cuando entro a la pagina donde he implemntado esto me sale arriba:


Warning: include({$server_script_path}comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11

Warning: include({$server_script_path}comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11

Warning: include() [function.include]: Failed opening '{$server_script_path}comment.php' for inclusion (include_path='.:/usr/share/pear') in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11

Entonces no me sale la tabla para poner los comentarios y estos errores arriba.

Y la pregunta del millon Que es lo que falla?

A ver si me days una respuesta del millon... porque yo soy nuevo en php... :(

saludos
  #2 (permalink)  
Antiguo 22/08/2009, 13:46
Avatar de abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Problema con Commentarios de GentleSource

Cambia las comillas simple por doble comillas.
Código php:
Ver original
  1. define('C5T_ROOT', "{$server_script_path}");
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos
  #3 (permalink)  
Antiguo 22/08/2009, 15:43
Avatar de janlux  
Fecha de Ingreso: marzo-2009
Mensajes: 57
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Problema con Commentarios de GentleSource

Hola abimaelrc , gracias.

Lo he cambiado y quedo asi: pero sale ahora otro error... mira:
archivo include.php.tpl
Código:
 
<?php

/** 
 * GentleSource Comment Script
 * 
 * (C) Ralf Stadtaus http://www.gentlesource.com/
 */


define('C5T_ROOT', "{$server_script_path}");

include C5T_ROOT . 'comment.php';



?>
y sale el error:


Warning: include(comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11

Warning: include(comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11

Warning: include() [function.include]: Failed opening 'comment.php' for inclusion (include_path='.:/usr/share/pear') in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11


Cual seria el error?


gracias :)
  #4 (permalink)  
Antiguo 22/08/2009, 16:33
Avatar de abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Problema con Commentarios de GentleSource

¿De donde tu defines $server_script_path? Mientras tanto escribe tambien la estructura de los archivos. Me refiero donde esta hubicado include.php comment.php etc etc. Escribe toda la estructura para poder indicarte que podrías hacer
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos
  #5 (permalink)  
Antiguo 23/08/2009, 04:35
Avatar de janlux  
Fecha de Ingreso: marzo-2009
Mensajes: 57
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Problema con Commentarios de GentleSource

Hola abimaelrc gracias por querer ayudarme con este problema aun que para mi es un prblemon!

bien aqui te escribo lo que me pides:

Donde defino $server_script_path: Sale en archivo: include.php.tpl

ejemplo nombre de mi web y pongo la estroctura:

www.miweb.com

Tengo todos los archivos (paginas) php con codigo html en este directorio mas carpetas:

www.miweb.com/comment

Aqui tengo todos los archivos del Gentlesource: Excepto el include.php.tpl (que indican que hay que trasladarlo al directorio de paginas en las cuales quieres que aparezca la tabla de comments. Entonces lo traslade donde tengo las paginas hphp con codigo html. Luego en la carpeta comment tengo:

Admin
Cache
Configuration
Docu
Include
Language
Module
Template
comment.php
dbconfig.php
include.php (este include surgio automaticamente...)
index.php

El comment.php esta hubicado en: /web/miweb.com/comment/
El include.php.tpl esta en: /web/miweb.com/ antes estaba en: /web/miweb.com/comment/include/include.php.tpl

Necesitas alguna cosa mas?

Tambien hoy probe trasladar el comment.php desde /web/miweb.com/comment/ a /web/miweb.com

Claro me salen estos errores cuando abro la pagina ejemplo: http://www.miweb/paginadondequieroqu...ommentario.php y donde he incluido:

<?php include './include.php'; ?>

y

echo $c5t_output;

Pero claro la tabla de commentarios no sale y salen los errores ....

Si necesitas mas directorios dime y los escribo aver.

Gracias!!!
  #6 (permalink)  
Antiguo 23/08/2009, 10:47
Avatar de abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Problema con Commentarios de GentleSource

¿Que es lo que tu quieres hacer exactamente, a parte de instalar esto? Me refiero a hacer un sistema de comentarios o un foro, etc. etc
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos
  #7 (permalink)  
Antiguo 23/08/2009, 14:09
Avatar de janlux  
Fecha de Ingreso: marzo-2009
Mensajes: 57
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Problema con Commentarios de GentleSource

yo quiero insertar un sistema de comentarios en unas zonas/paginas de mi web :)
  #8 (permalink)  
Antiguo 24/08/2009, 11:13
Avatar de janlux  
Fecha de Ingreso: marzo-2009
Mensajes: 57
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Problema con Commentarios de GentleSource

entonces nadie sabria mas o menos el fallo?

gracias.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:43.