Google Fan Webmaster Forum - Tekil Mesaj gösterimi - Yorum sayfalandırma
Tekil Mesaj gösterimi
  7  
Alt 23-06-2009, 01:21:51
harew1 harew1 isimli üyemiz çevrimdışıdır. (Offline)
Eposta Aktivasyonu Gerekmekte
 
Standart

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ış...

HTML-Kodu:
<?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ş...
__________________
WP ve V7 - V5 TEMA YAPILIR (V5-V7-WP video tasarımları bulunur)İLETİŞİM P.M

Konu harew1 tarafından (23-06-2009 Saat 01:50:32 ) değiştirilmiştir..
Alıntı ile Cevapla


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256