Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/11/2010, 16:54
Avatar de metacortex
metacortex
Viejo demente
 
Fecha de Ingreso: junio-2004
Ubicación: Caracas - Venezuela
Mensajes: 9.027
Antigüedad: 19 años, 11 meses
Puntos: 832
Respuesta: Solo puedo ver los comentarios logueado como Admin

Desde aquí se hace difícil decirte qué líneas eliminar. Reemplaza tu actual código por éste:

Código PHP:
Ver original
  1. <?php // Do not delete these lines
  2.     if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  3.         die ('Please do not load this page directly. Thanks!');
  4.  
  5.     if (!empty($post->post_password)) { // if there's a password
  6.         if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
  7.             ?>
  8.  
  9.             <p>This post is password protected. Enter the password to view comments.</p>
  10.  
  11.             <?php
  12.             return;
  13.         }
  14.     }
  15.  
  16.     /* This variable is for alternating comment background */
  17.     $oddcomment = 'alt';
  18. ?>
  19.  
  20. <?php if ( $comments ) : ?>
  21. <!-- You can start editing here. -->
  22.  
  23. <?php $urlHome = get_bloginfo('template_directory'); ?>
  24.    
  25.    
  26.     <ol class="commentlist">
  27.         <?php foreach ($comments as $comment) : ?>
  28.         <li class="comment" id="comment-<?php comment_ID() ?>">
  29.             <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
  30.                 <div class="comment-author vcard">
  31.                     <?php echo get_avatar( $comment, 32, $default = $urlHome . '/images/default_avatar_visitor.gif' ); ?>
  32.                     <cite class="fn"><?php comment_author_link() ?></cite>
  33.                     <span class="says">dice:</span>
  34.                 </div>
  35.  
  36.                 <div class="comment-meta commentmetadata">
  37.                     <span style="color:#712098"><?php the_time('d'); ?> <?php echo get_the_time('F'); ?> <?php the_time('Y'); ?></span>
  38.                 </div>
  39.    
  40.                 <p><?php comment_text() ?></p>
  41.  
  42.                 <div class="reply"></div>
  43.             </div>
  44.             <?php if ($comment->comment_approved == '0') : ?>
  45.                 <strong>(Su Comentario esta esperando por aprovaci&oacute;n)</strong>
  46.             <?php endif; ?>
  47.  
  48.         </li>
  49.         <?php $oddcomment = ( empty( $oddcomment ) ) ? 'alt' : ''; ?>
  50.         <?php endforeach; // end for each comment ?>
  51.     </ol>
  52. <?php endif; ?>
  53. <div id="respond">
  54.     <h3 id="comments">Deja aqu&iacute; tu comentario</h3>
  55.     <div id="form_com">
  56.         <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  57.             <fieldset>
  58.            
  59.                 <div class="divline_com">
  60.                     <label class="imputlabel_com" for="author"><small>Nombre (requiredo)</small></label>
  61.                
  62.                     <input class="textInput_com" type="text" name="author" id="author" value=""  tabindex="1" aria-required='true' />
  63.                 </div>
  64.                
  65.                 <div class="divline_com">
  66.                     <label class="imputlabel_com"  for="email"><small>Mail (No sera publicado) (requerido)</small></label>
  67.                     <input class="textInput_com" type="text" name="email" id="email" value="" size="22" tabindex="2" aria-required='true' />
  68.                 </div>
  69.                
  70.                 <div class="divline_com">
  71.                     <label class="imputlabel_com"  for="url"><small>Pagina Web</small></label>
  72.                     <input class="textInput_com" type="text" name="url" id="url" value="" size="22" tabindex="3" />
  73.                 </div>
  74.                
  75.                
  76.                 <div class="divline_com">
  77.                     <label class="imputlabel_com"  for="url"><small>Escribe tu comentario</small></label>                    
  78.                     <textarea name="comment" id="comment" class="textInput_com" cols="100%" rows="10" tabindex="4"></textarea></div>
  79.                
  80.                 <div class="divline_com">
  81.                     <input name="submit" class="submitButton_com" type="submit" id="submit" tabindex="5" value=" " />
  82.                     <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  83.                     <?php do_action('comment_form', $post->ID); ?>
  84.                 </div>
  85.             </fieldset>
  86.         </form>
  87.     </div>
  88. </div>