• 22-06-2009, 14:27:25
    #1
    Üyeliği durduruldu
    Mrb arkadaşlar,

    Cpu problemi yaşıyorum bu günlerde ve cpuyu yoran herşeyi deaktif hale getirmeye çalışıyorum..

    Az önce düşündüm de, diyelimki bi yazımda 150 yorum var, yazıya girildiğinde 150 yorum gelmesi için sanırım sorgu yapılıyor ve bu da cpu yu yer diye düşündüm..

    Onun için yazıdaki yorumları sayfalara bölmek istiyorum ama bunu nasıl yapacağımı bilmiyorum..

    Bilen arkadaşlar bi zahmet yol gösterirlerse sevinirim
  • 22-06-2009, 15:31:50
    #2
    Önce bi' arama yapsanız? Hazır bekliyorsunuz herşeyi.

    site:r10.net wordpress yorum sayfalama - Google'da Ara
  • 22-06-2009, 16:45:45
    #3
    Üyeliği durduruldu
    Arama yapmıştım kafat verdiğiniz şekilde değildi ve karşıma çıkan sonuçlarda hep eklentiler vardı, eklentilerden uzak durmaya çalışıyorum..

    Konuyu açmadan öncede wp den anlayan bi çok arkadaşıma sordum fakat bilmediklerini öğrenip kendilerinide bilgilendirmemi istediler

    Eklentisiz halletmek istiyordum ben

    Eklentiyi kullanmak isteyenlerde sorun yaşamış hep
  • 22-06-2009, 20:58:22
    #4
    eski sürümlerde eklenti ile yapıyorduk ama yeni sürümlerde eklentiye gerek yok. ayrıca, eklenti de hiç sorun çıkarmaz

    http://www.site.com/wp-admin/options-discussion.php

    yani, AYARLAR-TARTIŞMA

    Diğer yorum ayarları kısmından ayarlayabilirsin.

    edit;

    https://www.r10.net/wordpress/338504-...sayfalama.html (resimde görünen kısım)
  • 22-06-2009, 21:01:01
    #5
    şuan 2.7.1 sürümünü kullanıyorum ve yorum sayfalama kendiliğinden var.
    ancak yine bilenler olursa bende bu konu altından sorayım older comments ve newest comments - sayfa ile geri için bu kelimeler ingilizce, tam olarak türkçeleştirilmemiş. acaba bunları nerede bulabilirim?
  • 22-06-2009, 23:08:12
    #6
    Üyeliği durduruldu
    bondcemil adlı üyeden alıntı: mesajı görüntüle
    eski sürümlerde eklenti ile yapıyorduk ama yeni sürümlerde eklentiye gerek yok. ayrıca, eklenti de hiç sorun çıkarmaz
    http://www.site.com/wp-admin/options-discussion.php
    yani, AYARLAR-TARTIŞMA
    Diğer yorum ayarları kısmından ayarlayabilirsin.
    edit;
    https://www.r10.net/wordpress/338504-...sayfalama.html (resimde görünen kısım)
    Bahsettiğin kısım işaretli bende ve 50 olarak ayarlanmış fakat 100 küsürlü yorum olan yazılarım var onlara baktım, sayfalanma göremedim..

    Bütün yorumlar yazısayfasında
  • 23-06-2009, 00:21:51
    #7
    sorun temayla alakalı tema daha önceki wp sürümlerine göre yapıldığı için comments.php dosyasını editlemek lazım...

    Wordpress 2.7 Güncellemesi Geçiş Notları burda konu anlatılmış...

    <?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 class="nocomments">Sifrelidir Bu Alan Giremezsin.<p>
                    
                    <?php
                    return;
                }
            }
    
            /* This variable is for alternating comment background */
            $oddcomment = 'odd';
    ?>
    
    <!-- You can start editing here. -->
    
    <div class="boxcomments">
    
    <?php
    
    if (have_comments()) : ?>
    
    <?php 
    
        /* Count the totals */
        $numPingBacks = 0;
        $numComments  = 0;
    
        /* Loop through comments to count these totals */
        foreach ($comments as $comment) {
            if (get_comment_type() != "comment") { $numPingBacks++; }
            else { $numComments++; }
        }
    
    ?>
    
    <?php 
    
        /* This is a loop for printing comments */
        if ($numComments != 0) : ?>
    
        <ol class="commentlist">
    
        <li class="commenthead"><h2 id="comments"><?php comments_number('Yorum Ekle', '1 Yorum ', '% Yorum' );?> to “<?php the_title(); ?>”</h2></li>
        
        <ul class="commentlist">
    
        <?php wp_list_comments(); ?>
    
    </ul>
    
    <div class="navigation">
    
    <div class="alignleft"><?php previous_comments_link() ?></div>
    
    <div class="alignright"><?php next_comments_link() ?></div>
    
    </div>
        
    <li class="<?php if ( $comment->comment_author_email == get_the_author_email() ) echo 'mycomment'; else echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    
            <?php if ($comment->comment_approved == '0') : ?>
            <em>Yorumunuz Onaylandiktn Sonra Eklenecek..</em>
            <?php endif; ?>
            <?php comment_text() ?>
            <p style="margin-bottom:5px;">yazan <strong><?php comment_author_link() ?></strong> on <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('M j, Y') ?></a> <?php edit_comment_link('D�zenle',' | ',''); ?></p>
        </li>
            
        <?php /* Changes every other comment to a different class */    
        if ('alt' == $oddcomment) $oddcomment = '';
        else $oddcomment = 'odd';
        ?>
        
    
        
        </ol>
        
        <?php endif; ?>
    
    <?php
    
        /* This is a loop for printing trackbacks if there are any */
        if ($numPingBacks != 0) : ?>
    
        <ol class="tblist">
    
        <li style="background:transparent;padding-left:0;"><h2 id="trackbacks"><?php _e($numPingBacks); ?> Trackback(s)</h2></li>
        
    <?php foreach ($comments as $comment) : ?>
    <?php if (get_comment_type()!="comment") : ?>
    
        <li id="comment-<?php comment_ID() ?>">
            <?php comment_date('M j, Y') ?>: <?php comment_author_link() ?>
            <?php if ($comment->comment_approved == '0') : ?>
            <em>Your comment is awaiting moderation.</em>
            <?php endif; ?>
        </li>
        
        <?php if('odd'==$thiscomment) { $thiscomment = 'even'; } else { $thiscomment = 'odd'; } ?>
        
    <?php endif; endforeach; ?>
    
        </ol>
    
    
        
    <?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.
    
        else : // comments are closed
    
        endif;
    
    endif;
    
    ?>
        
        <?php if (get_option('comment_registration') && !$user_ID ) : ?>
            <p id="comments-blocked">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">
    
        <h3 id="respond">Yorumunuz...</h3>
    
        <?php if ($user_ID) : ?>
        
        <p>You are logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php">
            <?php echo $user_identity; ?></a>. To logout, <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">click here</a>.
        </p>
        
    <?php else : ?>    
        
            <p><label for="author">Isim<?php if ($req) _e(' (zorunlu)'); ?></label>
            <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p>
                    
            <p><label for="email">E-mail (Yayinlanmiyacak)<?php if ($req) _e(' (zorunlu)'); ?></label>
            <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" size="22" /></p>        
            
        
        <?php endif; ?>
    
            <p><textarea name="comment" id="comment" cols="5" rows="10" tabindex="4"></textarea></p>
    
            <p><input name="submit" type="submit" id="submit" tabindex="5" value="G&ouml;nder" />
            <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 id="comments-closed">&nbsp;</p>
    <?php endif; ?></div>
    bu kodları comments.php ile değiş...
  • 23-06-2009, 01:09:10
    #8
    Üyeliği durduruldu
    Teşekkürler Murat, müsait bi zamanımda deneyeceğim.. +rep'ini veremedim..

    ( You must spread some Reputation around before giving it to harew1 again. )
  • 23-06-2009, 01:31:31
    #9
    DaBuLyU adlı üyeden alıntı: mesajı görüntüle
    Teşekkürler Murat, müsait bi zamanımda deneyeceğim.. +rep'ini veremedim..

    ( You must spread some Reputation around before giving it to harew1 again. )
    deneme yapılmıştır çalışıyor kullanabilirsin demo içim msn gel...