Regresar a la página ComoCrearTuWeb.com
Resultados 1 al 3 de 3

Tema: HELP! Mostrar y agregar comentarios en Cutenews.

  1. #1
    Recien Llegado! Merodeador
    Fecha de Ingreso
    31 jul, 08
    Mensajes
    9
    Poder de Reputación
    0

    HELP! Mostrar y agregar comentarios en Cutenews.

    Mi problema es este..
    http://mileystyle.freetzi.com/comentar.php

    Cuando hago click en Add Comment, no sucede nada! no se refresca la pagina ni nada de nada... el codigo que tengo actualemente en "comentar.php" es:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">



    <head>

    <html>
    <meta http-equiv="Content-Language" content="pt-br">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>noticias </title>

    <STYLE type="text/css">
    <!--
    BODY {FONT: 8pt Verdana; COLOR: 000000; MARGIN: 3px;
    {scrollbar-DarkShadow-Color: #E0E0DF;
    scrollbar-Track-Color: #E0E0DF;
    scrollbar-Face-Color: #E0E0DF;
    scrollbar-Shadow-Color: #E0E0DF;
    scrollbar-3dLight-Color: #E0E0DF;
    scrollbar-Highlight-Color: #E0E0DF;
    scrollbar-Arrow-Color: #E0E0DF}
    a {text-decoration: none}
    body, p, td {font-size:7pt;
    font-family:Verdana;
    text-align:;
    color:#000000}
    }

    A:link {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:visited {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:active {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:hover {FONT-WEIGHT: bold; COLOR: #F00000; TEXT-DECORATION: none; cursor: default}
    -->
    </STYLE>
    <table border="0" width="304" cellspacing="0" cellpadding="0">
    <tr>
    <td width="65">Name:</td>
    <td width="239"><input type="text" name="name" size="20"></td>
    </tr>
    <tr>
    <td width="65">E-mail:</td>

    <td width="239"><input type="text" name="mail" size="20"> (optional)</td>
    </tr>
    <tr>
    <td width="65">Smile:</td>
    <td width="239">
    <script type="text/javascript">
    //<![CDATA[
    function insertext(text){
    document.comment.comments.value+=" "+ text;
    document.comment.comments.focus();
    }
    //]]></script>
    <noscript>Your browser is not Javascript enable or you have turn it off. We recommend you to activate, otherwise you will have to enter the emoticons representations manually.
    </noscript></td>

    </tr>
    <tr>
    <td colspan="2" width="304">
    <textarea cols="29" rows="6" id=commentsbox name="comments"></textarea>

    <input type="submit" name="submit" value="Add My Comment">

    <input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
    Forget Me

    </td>
    </tr>
    </table>
    </html>



    </head> <div><input type="hidden" name="subaction" value="addcomment" /><input type="hidden" name="ucat" value="" /><input type="hidden" name="show" value="" /></div></form>


    <script type="text/javascript" src="http://www.mileystyle.freestyle.com/cutenews/remember.js"></script><script>CNreadCookie();</script><div style="margin-top:15px;width:100%;text-align:center;font:9px Verdana;">Content Management Powered by CuteNews</div>
    :S:S en el archivo shows.inc.php (donde estan todos los codigos) esta el de mostrar comentarios, pero cuando lo agrego es como que se me queda todo en blanco. Este seria el codigo completo:(agregue las dos cosas)

    //################################################## ################################################## ################
    // Show Comments
    //################################################## ################################################## ################
    if($allow_comments){


    $comm_per_page = $config_comments_per_page;

    $total_comments = 0;
    $showed_comments = 0;
    $comment_number = 0;
    $showed = 0;
    $all_comments = file("$comm_file");

    foreach($all_comments as $comment_line)
    {
    $comment_line = trim($comment_line);
    $comment_line_arr = explode("|>|", $comment_line);
    if($id == $comment_line_arr[0])
    {
    $individual_comments = explode("||", $comment_line_arr[1]);

    $total_comments = @count($individual_comments) - 1;

    //show the page with our new comment, if we just added one
    /* causes some problems, will be updated !!!
    if($allow_add_comment and true){
    $comm_start_from = $total_comments-1;
    if($config_reverse_comments == "yes"){
    $comm_start_from = 0;
    }
    }
    */

    $iteration = 0;
    if($config_reverse_comments == "yes"){$iteration = count($individual_comments)+1; $individual_comments = array_reverse($individual_comments); }

    foreach($individual_comments as $comment)
    {
    if($config_reverse_comments == "yes") { $iteration --; }
    else{ $iteration ++; }


    $comment_arr = explode("|", $comment);
    if($comment_arr[0] != "")
    {

    if(isset($comm_start_from) and $comm_start_from != ""){
    if($comment_number < $comm_start_from){ $comment_number++; continue; }
    elseif($showed_comments == $comm_per_page){ break; }
    }

    $comment_number ++;
    $comment_arr[4] = stripslashes(rtrim($comment_arr[4]));

    if($comment_arr[2] != "none"){
    if( preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $comment_arr[2])){ $url_target = "";$mail_or_url = "mailto:"; }
    else{
    $url_target = "target=\"_blank\"";
    $mail_or_url = "";
    if(substr($comment_arr[2],0,3) == "www"){ $mail_or_url = "http://"; }
    }

    $output = str_replace("{author}", "<a $url_target href=\"$mail_or_url".stripslashes($comment_arr[2])."\">".stripslashes($comment_arr[1])."</a>", $template_comment);
    }
    else{ $output = str_replace("{author}", $comment_arr[1], $template_comment); }

    $comment_arr[4] = preg_replace("/\b((http(s?):\/\/)|(www\.))([\w\.]+)([&-~\%\/\w+\.-?]+)\b/i", "<a href=\"http$3://$4$5$6\" target=\"_blank\">$2$4$5$6</a>", $comment_arr[4]);
    $comment_arr[4] = preg_replace("/([\w\.]+)(@)([-\w\.]+)/i", "<a href=\"mailto:$0\">$0</a>", $comment_arr[4]);


    $output = str_replace("{mail}", "$comment_arr[2]",$output);
    $output = str_replace("{date}", date($config_timestamp_comment, $comment_arr[0]),$output);
    $output = str_replace("{comment-id}", $comment_arr[0],$output);
    $output = str_replace("{comment}", "<a name=\"".$comment_arr[0]."\"></a>$comment_arr[4]",$output);
    $output = str_replace("{comment-iteration}", $iteration ,$output);

    $output = replace_comment("show", $output);
    echo $output;
    $showed_comments++;
    if($comm_per_page != 0 and $comm_per_page == $showed_comments){ break; }
    }
    }
    }
    }
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">



    <head>

    <html>
    <meta http-equiv="Content-Language" content="pt-br">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>noticias </title>

    <STYLE type="text/css">
    <!--
    BODY {FONT: 8pt Verdana; COLOR: 000000; MARGIN: 3px;
    {scrollbar-DarkShadow-Color: #E0E0DF;
    scrollbar-Track-Color: #E0E0DF;
    scrollbar-Face-Color: #E0E0DF;
    scrollbar-Shadow-Color: #E0E0DF;
    scrollbar-3dLight-Color: #E0E0DF;
    scrollbar-Highlight-Color: #E0E0DF;
    scrollbar-Arrow-Color: #E0E0DF}
    a {text-decoration: none}
    body, p, td {font-size:7pt;
    font-family:Verdana;
    text-align:;
    color:#000000}
    }

    A:link {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:visited {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:active {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
    A:hover {FONT-WEIGHT: bold; COLOR: #F00000; TEXT-DECORATION: none; cursor: default}
    -->
    </STYLE>
    <table border="0" width="304" cellspacing="0" cellpadding="0">
    <tr>
    <td width="65">Name:</td>
    <td width="239"><input type="text" name="name" size="20"></td>
    </tr>
    <tr>
    <td width="65">E-mail:</td>

    <td width="239"><input type="text" name="mail" size="20"> (optional)</td>
    </tr>
    <tr>
    <td width="65">Smile:</td>
    <td width="239">
    <script type="text/javascript">
    //<![CDATA[
    function insertext(text){
    document.comment.comments.value+=" "+ text;
    document.comment.comments.focus();
    }
    //]]></script>
    <noscript>Your browser is not Javascript enable or you have turn it off. We recommend you to activate, otherwise you will have to enter the emoticons representations manually.
    </noscript></td>

    </tr>
    <tr>
    <td colspan="2" width="304">
    <textarea cols="29" rows="6" id=commentsbox name="comments"></textarea>

    <input type="submit" name="submit" value="Add My Comment">

    <input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
    Forget Me

    </td>
    </tr>
    </table>
    </html>



    </head> <div><input type="hidden" name="subaction" value="addcomment" /><input type="hidden" name="ucat" value="" /><input type="hidden" name="show" value="" /></div></form>


    <script type="text/javascript" src="http://www.mileystyle.freestyle.com/cutenews/remember.js"></script><script>CNreadCookie();</script><div style="margin-top:15px;width:100%;text-align:center;font:9px Verdana;">Content Management Powered by CuteNews</div>
    Espero que se entienda lo que quiero decir :S es un poco complicado.
    Queria saber si alguien tiene el codigo completo parausar en Cutenews los comentarios y poder agregar tambien en la misma pagina.

  2. #2
    Recien Llegado! Merodeador
    Fecha de Ingreso
    31 jul, 08
    Mensajes
    9
    Poder de Reputación
    0

    perdon :S

    perdon, sin querer publique dos veces el mismo tema, si quieren pueden borrar uno :)

  3. #3
    Recien Llegado! Pasaba por aquí...
    Fecha de Ingreso
    15 sep, 22
    Mensajes
    1
    Poder de Reputación
    0
    wow, me volví loco leyendo tu publicación, es muy buena e informativa. y si tienes tiempo libre, te invito a jugar el juego: drift boss and smash karts conmigo.

Temas Similares

  1. Agregar comentarios de facebook y SEO
    Por Flo en el foro Foro General
    Respuestas: 0
    Último Mensaje: 28/01/2013, 13:36
  2. mostrar comentarios por fecha
    Por urquimel en el foro Foro General
    Respuestas: 3
    Último Mensaje: 30/03/2012, 20:38
  3. Agregar Avatar a comentarios en Worpress
    Por johnpeterjp en el foro Sección dedicada a WordPress
    Respuestas: 1
    Último Mensaje: 30/09/2009, 21:40
  4. como agregar Comentarios a una imagen
    Por badaloni en el foro Foro General
    Respuestas: 0
    Último Mensaje: 23/06/2009, 15:12

Permisos de Publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •