• 10-11-2008, 13:54:08
    #1
    Aşağıda resimde görüldüğü gibi yorumlarda avatar üstte görünüyor, ben bunu avatar solda yorum yazısı ise sağda olmasını istiyorum. comments.php de ne gibi değişiklikler yapmalıyım?

  • 11-11-2008, 02:02:50
    #2
    yok mu yahu bi wp ustası babayiğit?
  • 11-11-2008, 02:04:38
    #3
    comments.php kodlarını buraya ekler misiniz.
  • 11-11-2008, 02:07:58
    #4
    Alıntı
    <?php // Do not delete these lines
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');

    if (!empty($post->post_password)) { // if there's a password
    if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
    ?>

    <p><span class="highlight">This post is password protected! Enter the password
    to view comments!</span> </p>
    <?php
    return;
    }
    }
    $oddcomment = 'alt';
    ?>
    <?php if ($comments) : ?>
    <div class="article-top"></div>
    <div class="article">
    <h1 class="title-comments">
    <?php comments_number('No comments', 'One comment', '% comments' );?>
    </h1>
    <ol class="commentlist">
    <?php foreach ($comments as $comment) : ?>
    <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    <?php echo get_avatar( $comment, 32 ); ?>
    <p class="comment-author">
    <?php comment_author_link() ?>
    says:</p>
    <?php if ($comment->comment_approved == '0') : ?>
    <span class="red">Your comment is awaiting moderation!</span>
    <?php endif; ?>
    <?php comment_text() ?>
    <p class="comment-data">
    <?php edit_comment_link('Edit','','&nbsp;|'); ?>
    <?php comment_date('F jS, Y') ?>
    at
    <?php comment_time() ?>
    </p>
    </li>
    <?php /* Changes every other comment to a different class */
    if ('alt' == $oddcomment) $oddcomment = '';
    else $oddcomment = 'alt';
    ?>
    <?php endforeach; /* end for each comment */ ?>
    </ol>
    </div>
    <div class="article-bottom"></div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p><span class="highlight">Comments are closed!</span></p>
    <?php endif; ?>
    <?php endif; ?>
    <?php if ('open' == $post->comment_status) : ?>
    <div class="article-top"></div>
    <div class="article">
    <a name="respond"></a>
    <h1 class="title-respond">Leave a reply</h1>
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged
    in</a> to post a comment.</p>
    <?php else : ?>
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( $user_ID ) : ?>
    <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</a></p>
    <?php else : ?>
    <p>
    <input style="width: 350px" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1"/>
    <label for="author">Name <span class="required">
    <?php if ($req) echo "<sup>(required)</sup>"; ?>
    </span> </label>
    </p>
    <p>
    <input style="width: 350px" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2"/>
    <label for="email">Email <span class="required">
    <?php if ($req) echo "<sup>(required)</sup>"; ?>
    </span> </label>
    </p>
    <p>
    <input style="width: 350px" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3"/>
    <label for="url">Website</label>
    </p>
    <?php endif; ?>
    <!--<p><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></p>-->
    <p>
    <textarea style="width: 350px" name="comment" id="comment" cols="30" rows="10" tabindex="4"></textarea>
    </p>
    <p>
    <input name="submit" type="submit" id="submit" tabindex="5" value="send"/>
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>"/>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    </div>
    <div class="article-bottom"></div>
    </form>
    <?php endif; ?>
    <?php endif; ?>
    kodlar bunlar.
  • 11-11-2008, 02:15:40
    #5
    edit
    bi dener misin. bu arada siteni pm lersen iyi olur
  • 11-11-2008, 02:22:23
    #6
    olmadı ne yazık ki aynı.
  • 11-11-2008, 02:27:37
    #7
    edit
    şunları dene bakalım?
  • 11-11-2008, 02:30:49
    #8
    hayır olmadı. avatarın kodu bu;

    <?php echo get_avatar( $comment, 32 ); ?>

    burdan sola almak için gerekli php kodu ne acaba. onu bilmek gerek sanırım.