• 07-10-2010, 19:03:49
    #1
    Merhaba arkadaşlar ,

    Yorumların başına numara eklemek istiyorumda, nasıl halledebilirim acaba ?
  • 07-10-2010, 20:48:57
    #2
    alttaki kodu temanın comment.psp dosyasında uygun bir yere ekle örnek olarak siteme bakabilirsin http://www.sablonmix.com/kendi-kulla...ervisleri.html
    <?php $i++; ?>  <?php echo $i; ?>
  • 07-10-2010, 21:07:44
    #3
    <?php do_action('fbc_display_login_button') ?> 
    
    <?php
    
    if (!empty($comments)) {
    
      if (!get_query_var('comments_per_page')) {
    
        set_query_var('comments_per_page', 20);
    
      }
    
      if (!get_query_var('cpage')) {
    
        set_query_var('cpage', ceil(get_comments_number() / get_query_var('comments_per_page')));
    
        if (!empty($_GET['page'])) {
    
          set_query_var('cpage', $_GET['page']);
    
        }
    
      }
    
    }
    
    $comments = array_slice($comments, (get_query_var('cpage') - 1) * get_query_var('comments_per_page'), get_query_var('comments_per_page'));
    
    global $commentcount;
    
    if (!isset($commentcount)) {
    
      $commentcount = (get_query_var('cpage') - 1) * get_query_var('comments_per_page');
    
    }
    
    ?>
    
                <div class="navigation">
    
                </div>
    
                <?php if (!empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password): ?>
    
                <p><?php _e('Yaziyi g�rmek i�in giris yapin.'); ?></p>
    
                <?php return; endif; ?>
    
    
    
                <?php if (comments_open()): ?>
    
                <h3 id="comments">
    
                </h3>
    
                <?php numb_paginate_comments('#comments'); ?>
    
    <?php comment_ID(); ?>
    
                <?php if ($comments): ?>
    
                <ol class="commentlist">
    
                </div>
    				
                <?php foreach ($comments as $comment): ?>
    
                  <li id="comment-<?php comment_ID(); ?>">
    
                    <p class="meta">
    
                      <span>(<b><?php comment_author(); ?></b>)<span><a href="#" class="comment-reply"><?php _e('Reply'); ?></a> &nbsp; <a href="#" class="comment-quote"><?php _e('Quote'); ?></a> &nbsp; <i class="comment-edit-link"><?php edit_comment_link(__("Edit")); ?></i></span>
    
                      <?php if ($comment->comment_type == 'trackback' or $comment->comment_type == 'pingback'): ?>
    
                      &nbsp;(<?php comment_type(); ?>)
    
                      <?php endif; ?>
    
                    </p>
    
                    <div class="comment-text">
    
                    <?php comment_text(); ?>
    
                    </div>
    
                  </li>
    
    
    
                <?php endforeach; ?>
    
    
    
                </ol>
    
    
    
                <?php numb_paginate_comments('#comments'); ?>
    
    
    
                <?php else: ?>
    
                <p><?php _e('No comments yet.'); ?></p>
    
                <?php endif; ?>
    
                </p>
    
    
    
                <h3 id="postcomment"><?php _e('Leave a comment'); ?></h3>
    
    
    
                <?php if (get_option('comment_registration') && !$user_ID): ?>
    
                <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
    
                <?php else: ?>
    
    
    
                <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    
    
                  <?php if ($user_ID): ?>
    
    
    
                  <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?></p>
    
    
    
                  <?php else: ?>
    
    
    
                  <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
    
                  <label for="author"><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></label></p>
    
    
    
                  <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
    
                  <label for="email"><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></label></p>
    
    
    
                  <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
    
                  <label for="url"><?php _e('Website'); ?></label></p>
    
    
    
                  <?php endif; ?>
    
    
    
                  <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="5"></textarea></p>
    
                  <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
    
                  <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    
                  </p>
    
                  <?php do_action('comment_form', $post->ID); ?>
    
    
    
                </form>
    		
    
    
                <?php endif; // If registration required and not logged in ?>
    
    
    
                <?php else: // Comments are closed ?>
    
                <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    
                <?php endif; ?>
    Bi ayarlarmısın lütfen
  • 07-10-2010, 21:40:34
    #4
    alttaki kodları denermisin
    <?php do_action('fbc_display_login_button') ?> 
    
    <?php
    
    if (!empty($comments)) {
    
      if (!get_query_var('comments_per_page')) {
    
        set_query_var('comments_per_page', 20);
    
      }
    
      if (!get_query_var('cpage')) {
    
        set_query_var('cpage', ceil(get_comments_number() / get_query_var('comments_per_page')));
    
        if (!empty($_GET['page'])) {
    
          set_query_var('cpage', $_GET['page']);
    
        }
    
      }
    
    }
    
    $comments = array_slice($comments, (get_query_var('cpage') - 1) * get_query_var('comments_per_page'), get_query_var('comments_per_page'));
    
    global $commentcount;
    
    if (!isset($commentcount)) {
    
      $commentcount = (get_query_var('cpage') - 1) * get_query_var('comments_per_page');
    
    }
    
    ?>
    
                <div class="navigation">
    
                </div>
    
                <?php if (!empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password): ?>
    
                <p><?php _e('Yaziyi g�rmek i�in giris yapin.'); ?></p>
    
                <?php return; endif; ?>
    
    
    
                <?php if (comments_open()): ?>
    
                <h3 id="comments">
    
                </h3>
    
                <?php numb_paginate_comments('#comments'); ?>
    
    <?php comment_ID(); ?>
    
                <?php if ($comments): ?>
    
                <ol class="commentlist">
    
                </div>
    				
                <?php foreach ($comments as $comment): ?>
    
                  <li id="comment-<?php comment_ID(); ?>">
    
                    <p class="meta">
    
                      <span>(<b><?php comment_author(); ?></b>)<span><a href="#" class="comment-reply"><?php _e('Reply'); ?></a> &nbsp; <a href="#" class="comment-quote"><?php _e('Quote'); ?></a> &nbsp; <i class="comment-edit-link"><?php edit_comment_link(__("Edit")); ?></i></span>
    
                      <?php if ($comment->comment_type == 'trackback' or $comment->comment_type == 'pingback'): ?>
    
                      &nbsp;(<?php comment_type(); ?>)
    
                      <?php endif; ?>
    
                    </p>
    
                    <div class="comment-text">
    
                   <?php $i++; ?>  <?php echo $i; ?>.
     <?php comment_text(); ?>
    
                    </div>
    
                  </li>
    
    
    
                <?php endforeach; ?>
    
    
    
                </ol>
    
    
    
                <?php numb_paginate_comments('#comments'); ?>
    
    
    
                <?php else: ?>
    
                <p><?php _e('No comments yet.'); ?></p>
    
                <?php endif; ?>
    
                </p>
    
    
    
                <h3 id="postcomment"><?php _e('Leave a comment'); ?></h3>
    
    
    
                <?php if (get_option('comment_registration') && !$user_ID): ?>
    
                <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
    
                <?php else: ?>
    
    
    
                <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    
    
                  <?php if ($user_ID): ?>
    
    
    
                  <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?></p>
    
    
    
                  <?php else: ?>
    
    
    
                  <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
    
                  <label for="author"><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></label></p>
    
    
    
                  <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
    
                  <label for="email"><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></label></p>
    
    
    
                  <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
    
                  <label for="url"><?php _e('Website'); ?></label></p>
    
    
    
                  <?php endif; ?>
    
    
    
                  <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="5"></textarea></p>
    
                  <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
    
                  <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    
                  </p>
    
                  <?php do_action('comment_form', $post->ID); ?>
    
    
    
                </form>
    		
    
    
                <?php endif; // If registration required and not logged in ?>
    
    
    
                <?php else: // Comments are closed ?>
    
                <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    
                <?php endif; ?>
  • 07-10-2010, 21:53:18
    #5
    yorumlar kayboldu :|
  • 07-10-2010, 21:59:36
    #6
    hallettim tamam. Çok saol
  • 08-10-2010, 16:43:19
    #7
    Ya peki 2'den nasıl başlatırız sıralamayı ?