• Hi,

    I´m designing my ow own theme and would like to have a customized “Reply Comment” link. When I put this chunk of code, for showing the reply comments link, (<?php comment_reply_link(array_merge( $args, array(‘reply_text’ => ‘Atsakyti’ ,’depth’ => $depth, ‘max_depth’ => $args[‘max_depth’]))) ?>) I get this message. The message appears each time the loop is running.
    How can I fix it?
    Another thing: When I put only comment_reply_link(); I get nothing.

    Here is a screenshot.

    And the code for comments.php

    <div id="comentarios">
        <h6 class="titulo">Comentarios</h6>
    	  <?php if($comments) : ?>
          <?php foreach($comments as $comment) : ?>  
    
          <div class="modulo-comentario">   <div class="div-izquierda"><img class="gravatar" src="<?php bloginfo('template_url'); ?>/imagenes/gravatar.jpg" width="80" height="80" /></div>
          <div class="comentarios-div-derecha">
      <div class="autor"><?php comment_author(); ?></div><div class="info"><?php comment_date(); ?> &bull;<?php comment_reply_link(array_merge( $args, array('reply_text' => 'Responder' ,'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
              <div class="comentario"><?php comment_text(); ?></div>
            </div>
          </div>
              <?php endforeach; ?>
          <?php else : ?>
          <p>No hay comentarios </p>
    <?php endif; ?>  
    
    <?php if(comments_open()) : ?>
        <?php if(get_option('comment_registration') && !$user_ID) : ?>
            <p><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">inicia sesi&oacute;n</a> para comentar</p><?php else : ?>
            <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
                <?php if($user_ID) : ?>
                    <p>Iniciaste ses&oacute;n como <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="Cerrar sesión">Cerrar sesi&oacute;n.</a></p>
                <?php else : ?>
    <span class="titulo">Escribí tu comentario</span>
                    <input type="text" name="author" id="author" onfocus="if (this.value == 'Nombre') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Nombre';}" onclick="" value="Nombre" size="22" tabindex="1" />  
    
                    <input type="text" name="email" id="email" onfocus="if (this.value == 'Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Email';}" value="Email" size="22" tabindex="2" />
                               <?php endif; ?>
                <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4" onfocus="clearContents(this);" onblur="putContents(this);">Comentario</textarea></p>
                <p><input name="submit" type="submit" id="submit" tabindex="5" value="Escribir" />
                <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
                <?php do_action('comment_form', $post->ID); ?>
            </form>
        <?php endif; ?>
    <?php else : ?>
        <p>The comments are closed.</p>
    <?php endif; ?>  
    
    </div>
        </div>

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter flipus

    (@flipus)

    The message is WARNING: ARRAY_MERGE() [FUNCTION.ARRAY-MERGE]: ARGUMENT #1 IS NOT AN ARRAY IN C:\WAMP\WWW\WORDPRESS\WP-CONTENT\THEMES\NICOLASGOLUB\COMMENTS.PHP ON LINE 8

Viewing 1 replies (of 1 total)
  • The topic ‘Custom "Reply Comment" Link don't work’ is closed to new replies.