• 03-01-2013, 16:27:23
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Arkadaşlar merhaba

    https://developers.facebook.com/docs...gins/comments/

    bu sitedeki yorum eklentisini imzamdaki siteye bi türlü kuramıyorum

    kodları veriyor kodu temanın içindeki comments.php ye ekliyorum ama maalesef sayfalarda çıkmıyor.

    veya farklı bir dosyaya mı eklemeliyim acaba :/

    facebook eklentisini ekledim id numaraları felan istedi onuda almayı beceremedim
  • 03-01-2013, 16:31:19
    #2
    comments.php de nereye koyuyosun? <div class="icerik"></div> kodları arasına yerleştirmelisin html olarak. Ama sanırım başka bi if içine koyduğun için görünmüyo. comments.php dosyanı yapıstırırsan yardımcı olabilirm.
  • 03-01-2013, 16:44:02
    #3
    facebook kodu HTML5 Kodu

    1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

    Alıntı
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/tr_TR/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    2.Place the code for your plugin wherever you want the plugin to appear on your page.

    <div class="fb-comments" data-href="http://www.bankatik.net" data-width="470" data-num-posts="2"></div>


    comments.php

    Alıntı
    <?php
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Bu sayfayı direk yüklemeyin. Teşekkürler!');
    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">Bu yazı parola korumalı. Yorumları görmek için parolayı girin.<p>
    <?php
    return;
    }
    }
    $oddcomment = 'alt';
    ?>
    <?php if ('open' == $post->comment_status) : ?>

    <div class="clr"></div>

    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <div class="msgSuccess">Yorum yapabilmek için <a href="<?php echo get_settings('home'); ?>/giris-yap">giriş</a> yapmalısınız.</div>
    <?php else : ?>

    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

    <?php if ( $user_ID ) : ?><div class="msgError">Hoşgeldiniz - <?php echo $user_identity; ?></div><div class="clr"></div><?php else : ?>

    <div class="msgSuccess">İsminiz</div>
    <input type="text" name="author" id="name" value="<?php echo $comment_author; ?>" tabindex="1" class="cls-input" />
    <div class="clr"></div>

    <div class="msgSuccess">E-Posta Adresiniz</div>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" class="cls-input" />
    <div class="clr"></div>
    <?php endif; ?>

    <div class="msgSuccess">Yorumunuz</div>
    <textarea name="comment" id="words" tabindex="4" class="yorum-text" ></textarea>
    <div class="clr"></div>


    <?php do_action('secure_image', $post->ID);?>

    <input name="submit" type="submit" id="submit" tabindex="5" value="Gönder" class="yorumtamam" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    <?php endif; // If registration required and not logged in ?>

    <div class="clr"></div><div class="araver"></div><div class="clr"></div>

    <?php if ($comments) : ?>
    <?php foreach ($comments as $comment) : ?>

    <div class="msgWarning"><b><?php comment_author_link() ?></b> <div class="saga"><?php comment_date('d F Y') ?> - <?php comment_time() ?></div></div>
    <div class="icerik"><?php comment_text() ?></div>
    <div class="araver"></div>

    <?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. -->
    <div class="msgWarning">Yorum yapma kapalı.</div>


    <?php endif; ?>
    <?php endif; ?>

    <?php endif; // if you delete this the sky will fall on your head ?>


    Hocam yardımlarınız için şimdiden çok teşekkür ederim
  • 03-01-2013, 16:58:35
    #4
    Developer
    manual yapmak yerine eklentiyle de halledebilirsiniz;

    http://wordpress.org/extend/plugins/...ebook+comments
  • 03-01-2013, 17:15:07
    #5
    brown adlı üyeden alıntı: mesajı görüntüle
    manual yapmak yerine eklentiyle de halledebilirsiniz;

    http://wordpress.org/extend/plugins/...ebook+comments
    Hocam id numarası istiyor yeni versiyonda telefon onaylı olmak lazım id almak için

    fakat telefona da onay kodu gelmedi :/
  • 04-01-2013, 15:35:39
    #6
    Konu güncel
  • 04-01-2013, 17:36:22
    #7
    sanırım bu comments.php sitede bulunan temanın değil. Yapı çok farklı geldi sitedekinden.

    /wp-content/themes/portal klasoru içindeki dosyayı düzenlemen gerek.
  • 04-01-2013, 22:47:43
    #8
    Kimlik doğrulama veya yönetimden onay bekliyor.
    xyor adlı üyeden alıntı: mesajı görüntüle
    Hocam id numarası istiyor yeni versiyonda telefon onaylı olmak lazım id almak için

    fakat telefona da onay kodu gelmedi :/
    Geçenlerde ben onay kodu istedim.İki telefon kullanıyorum.Avea ve Turkcell hattımdan 2şer kere istedim.Yaklaşık 3-4 saat sonra Avea hattıma onay kodu geldi.Ancak Turkcell hattıma hiçbir şey gelmedi.Bu konuyla ilgili araştırma yaptım kimisi vodafone a geliyor diyor kimisi turkcelle hatta avea'ya onay kodu gelmiyor deniyordu.Bende umudu kesmiş, kara kara düşünüyordum.Kısacası 2 farklı hattan istek yollayın biraz geç geliyor ama.Henüz facebook comments kullanmadım ama eklenti ile bu işi çözmek daha faydalı gözüküyor.