Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/05/2010, 14:30
Avatar de helyanne
helyanne
 
Fecha de Ingreso: marzo-2005
Ubicación: madrid
Mensajes: 119
Antigüedad: 19 años, 1 mes
Puntos: 0
Respuesta: No se puede comentar en mi blog!

Aqui está.
No lo he tocado...

Código PHP:
Ver original
  1. <?php // Do not delete these lines
  2.     if ('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. ?>
  17.  
  18. <!-- You can start editing here. -->
  19.  
  20. <?php if ($comments) : ?>
  21.     <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
  22.  
  23.     <ol>
  24.  
  25.     <?php foreach ($comments as $comment) : ?>
  26.  
  27.         <li id="comment-<?php comment_ID() ?>">
  28.             <cite><?php comment_author_link() ?></cite> Says:
  29.             <?php if ($comment->comment_approved == '0') : ?>
  30.             <em>Your comment is awaiting moderation.</em>
  31.             <?php endif; ?>
  32.             <br />
  33.  
  34.             <small><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small>
  35.  
  36.             <?php comment_text() ?>
  37.  
  38.         </li>
  39.  
  40.     <?php endforeach; /* end for each comment */ ?>
  41.  
  42.     </ol>
  43.  
  44.  <?php else : // this is displayed if there are no comments so far ?>
  45.  
  46.     <?php if ('open' == $post->comment_status) : ?>
  47.         <!-- If comments are open, but there are no comments. -->
  48.  
  49.      <?php else : // comments are closed ?>
  50.         <!-- If comments are closed. -->
  51.         <p>Comments are closed.</p>
  52.  
  53.     <?php endif; ?>
  54. <?php endif; ?>
  55.  
  56.  
  57. <?php if ('open' == $post->comment_status) : ?>
  58.  
  59. <h3 id="respond">Leave a Reply</h3>
  60.  
  61. <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  62. <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
  63. <?php else : ?>
  64.  
  65. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  66.  
  67. <?php if ( $user_ID ) : ?>
  68.  
  69. <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>
  70.  
  71. <?php else : ?>
  72.  
  73. <label for="author">Name <?php if ($req) echo "(required)"; ?></label>
  74. <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
  75.  
  76. <label for="email">Mail (will not be published) <?php if ($req) echo "(required)"; ?></label>
  77. <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
  78.  
  79. <label for="url">Website</label>
  80. <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  81.  
  82. <?php endif; ?>
  83.  
  84. <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
  85.  
  86. <label for="comments">Comments</label>
  87. <textarea name="comment" id="comment" cols="50%" rows="10" tabindex="4"></textarea>
  88.  
  89. <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
  90. <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  91. </p>
  92. <?php do_action('comment_form', $post->ID); ?>
  93.  
  94. </form>
  95.  
  96. <?php endif; // If registration required and not logged in ?>
  97.  
  98. <?php endif; // if you delete this the sky will fall on your head ?>
__________________
___________________

...::: ¡¡ SuperEli.com !! :::...