+ Cevap Yaz
5 sonuçtan 1 ile 5 arası gösteriliyor

Konu: Wordpress yorum sorunu

  1. #1
    Üye afk07 Adlı Üyenin Profil Grafiği
    Üyelik Tarihi
    05/2009
    Mesaj
    18

    Wordpress yorum sorunu

    wordpress blogumda yazılan yorumlar görünmüyor :S

    temamda mı sorun var anlamadım yardımcı olursanız sevinirim.

    temamdaki comments.php dosyası:

    Kod:
    <?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>This post is password protected. Enter the password to view comments.<p>
    
                <?php
                return;
            }
        }
    
        /* This variable is for alternating comment background */
        $oddcomment = 'comment';
    ?>
    
    <!-- You can start editing here. -->
    
    <?php if ($comments) : ?>
    
    <div class="comments_caption" id="comments">
    <h2><?php comments_number('No Comments', 'One Comment', '% Comments' );?> to “<?php the_title(); ?>”</h2>
    </div>
    
    <?php foreach ($comments as $comment) : ?>
    
    <div class="comment_wrap" id="comment-<?php comment_ID() ?>">
    <div class="comment_wrap_head">
    <p><b><?php echo "#"; ?></b> Posted by <b><?php comment_author_link() ?></b> <span>(<?php comment_time('d.m.y') ?> at <?php comment_time('H:i') ?></span> )</p>
    </div>
    <div class="comment_wrap_post">
    <?php comment_text() ?>
    <?php if ($comment->comment_approved == '0') : ?>
    <p><em>Your comment is awaiting moderation.</em></p>
    <?php endif; ?>
    </div>
    
    </div>
    
    
    
    
        <?php /* Changes every other comment to a different class */
            if ('comment' == $oddcomment) $oddcomment = 'alt';
            else $oddcomment = 'comment';
        ?>
    
        <?php endforeach; /* end for each comment */ ?>
    
    
     <?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 class="nocomments">Comments are closed.</p>-->
    
        <?php endif; ?>
    <?php endif; ?>
    
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <div id ="leave_a_comment_wrap">
    <div class="leave_a_comment">
    <h2>Leave a Comment</h2>
    </div>
    <div class="trackback_rss">
    <p><?php comments_rss_link('RSS feed for comments on this post.'); ?></p></div>
    </div>
    
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <h2>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.</h2>
    <?php else : ?>
    
    <div id="comment_form">
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    <p>Logged in as <b><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a></b>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account"><b>Logout</b></a></p>
    <?php else : ?>
    
    <p>
    <label for="author">Username <?php if ($req) echo "(required)"; ?> :</label><br />
    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="27" tabindex="1" class="data" /><br />
    </p>
    
    <p>
    <label for="email">Email <?php if ($req) echo "(required)"; ?> :</label><br />
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="27" tabindex="2" class="data" /><br />
    </p>
    
    <p>
    <label for="url">Web Site :</label><br />
    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="27" tabindex="3" class="data" /><br />
    </p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
    
    <p>
    <label for="comment">Comment :</label><br />
    <textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea>
    </p>
    
    <p>
    <input name="submit" type="submit" id="submit" tabindex="5" value="Submit" class="sbutton"/>
    </p>
    
    <p>
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    </div>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
    

  2. #2
    Üye afk07 Adlı Üyenin Profil Grafiği
    Üyelik Tarihi
    05/2009
    Mesaj
    18

    arkadşlar sorun sanrım single.php de.

    bi baksanız

    Kod:
    <?php get_header(); ?>
    
    
    <div id="content_wrap">
    <div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="page_post">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div id="reklam">
    	<div id="reklamsol">
    <script type="text/javascript"><!--
    google_ad_client = "pub-2185173845859082";
    /* 200x200, olusturulma 20.06.2009 */
    google_ad_slot = "0991579826";
    google_ad_width = 200;
    google_ad_height = 200;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    	</div>
    	<div id="reklamsag">
    <script type="text/javascript"><!--
    google_ad_client = "pub-2185173845859082";
    /* 200x200, olusturulma 21.06.2009 */
    google_ad_slot = "5857886268";
    google_ad_width = 200;
    google_ad_height = 200;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    	</div> 
    </div>
    <div id="content_icerik">
    
    <?php the_content(); ?>
    </div>
    </div>
    <div class="post_details">
    <?php
    //for use in the loop, list 5 post titles related to first tag on current post
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
      echo '<h3>Bunu okudun mu? Bunlara da bak bi :)</h3><br />';
      $first_tag = $tags[0]->term_id;
      $args=array(
        'tag__in' => array($first_tag),
        'post__not_in' => array($post->ID),
        'showposts'=>5,
        'caller_get_posts'=>1
       );
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
         <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">- <?php the_title(); ?></a><br /> <?php
        endwhile;
      }
      else {
    echo "Alakalı birşey yok ama sen benim son yazıma bak ?<br />";
     $myposts = get_posts('numberposts=1&offset=0&category=0');
     foreach($myposts as $post) :
     ?>
     <a href="<?php the_permalink(); ?>">- <?php the_title(); ?></a><br />
     <?php endforeach;
      }
    }
    ?>
    <br />
    <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink() ?>&t=<?php the_title() ?>" title="Facebook'a ekle"><img src="/buton/facebook.gif" /></a>
    <a href="http://www.addtoany.com/add_to/twitter?linkurl=<?php the_permalink() ?>&linkname=<?php the_title() ?>" title="Tweet'le" ><img src="/buton/twitter.png" /></a>
    <a href="http://digg.com/submit?url=<?php the_permalink() ?>&title=<?php the_title() ?>&bodytext=<?php the_title() ?>" title="Digg'le"><img src="/buton/digg.gif" /></a>
    <a href="http://del.icio.us/post?v=4&&noui&jump=close&url=<?php the_permalink() ?>&title=<?php the_title() ?>" title="Del icio us'a Ekle"><img src="/buton/del.jpg" /></a>
    <a href="http://friendfeed.com/?url=<?php the_permalink() ?>&title=<?php the_title() ?>" target="_blank"><img src="/buton/ff.jpg" /></a>
    </div>
    <div class="post_details">
    <p><?php the_time("j F 20y"); ?> tarihinde <?php the_author_posts_link(); ?> tarafından gönderilen yazıda <a href="<?php comments_link(); ?>"><?php comments_number('Yorum yok','1 Yorum var','% Yorum var'); ?></a>
    <br />
    Kategori: <?php the_category(', ') ?>
    <br />
    <?php the_tags( 'Etiketler: ', ', ', ''); ?></p>
    </div>
    	
    <?php comments_template(); ?> <?php endwhile; else: ?>
    		<p>Uppss! sizin kriterlerinize uygun yazı bulamadım :S</p>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    

  3. #3
    Üye
    Üyelik Tarihi
    06/2009
    Mesaj
    23

    bu dosyalarda bir oynama yapmadıysanız sorun yoktur.Ekleni filan ekledıysenız bı kaldırıp deneyın bir de yonetim panelı ayarlarına bakın.

  4. #4
    Üye afk07 Adlı Üyenin Profil Grafiği
    Üyelik Tarihi
    05/2009
    Mesaj
    18

    diğer temalarda denediğimde sorun yok ama. site yeni 1 hafta oldu şimdi tema değiştirmek istemiyom açıkcası

    http://www.bilgispot.com/

  5. #5
    Üye afk07 Adlı Üyenin Profil Grafiği
    Üyelik Tarihi
    05/2009
    Mesaj
    18

    wp temamı değiştirdim yardımımınız içi sağolun

+ Cevap Yaz

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Mesaj Yazma Hakları

  • Yeni mesajgöndermezsiniz
  • Cevap yazamazsınız
  • Dosya ekleyemezsiniz
  • Mesajınızı düzenleyemezsiniz