[color=#000000][font=Arial][size=4]¿En Drupal de qué forma puedo imprimir sólo un comentario al momento de trabajar con los posts del cms?[/size][/font][/color]
imprimir un solo comentario drupal
Iniciado por
Mario Garcia
, feb 10 2014 14:47
#1 AUTOR PREGUNTA
Preguntas Similares
Esto también te interesa!
#2
Publicado 10 febrero 2014 - 15:31
Debes dirigirte a modules/comment/comment.tpl.php y allí implementa la siguiente función:
function print_comment($cid) { $sql = "SELECT * FROM {comment} c WHERE c.cid = %d"; if ($comment = db_fetch_object(db_rewrite_sql(db_query($sql, $cid), 'c')) { return theme('my_special_comment_formatting', $comment); } }
#3
Publicado 10 febrero 2014 - 18:03
Debes dirigirte a modules/comment/comment.tpl.php y allí implementa la siguiente función:
function print_comment($cid) { $sql = "SELECT * FROM {comment} c WHERE c.cid = %d"; if ($comment = db_fetch_object(db_rewrite_sql(db_query($sql, $cid), 'c')) { return theme('my_special_comment_formatting', $comment); } }
Me vino de fábula y eso que no fui el que lo pregunté jeje. Gracias Leandro.