• 03-06-2009, 20:34:13
    #1
    Üyeliği durduruldu
    Mrb arkadaşlar,

    Yeni kullandığım temada nedense yorumlarda kişilierin avatarları görünmüyor..

    Admin panelinden avatarları göster seçeneğide aktif, sanırım temada avatarların gözükmesi için gereken kod yok..

    Yardımcı olabilirmisiniz nasıl avatarların görünmesini sağlayabilirim?
  • 03-06-2009, 20:47:01
    #2
    Alıntı
    <?php echo get_avatar( $comment, $size = '45' ); ?>
    Bende şu şekilde bir kod var, uygun CSS kodlarını ayarlayıp kullanabilirsiniz.
  • 03-06-2009, 23:02:12
    #3
    Üyeliği durduruldu
    Bu konu nereye eklemem gerekiyor
  • 03-06-2009, 23:06:06
    #4
    Üyeliği durduruldu
    DaBuLyU adlı üyeden alıntı: mesajı görüntüle
    Bu konu nereye eklemem gerekiyor
    Allah Kolaylık Versin Kardeşim, Sanırım Css'den düzenleme yapıcaksın.
  • 04-06-2009, 00:43:25
    #5
    Üyeliği durduruldu
    Sercedes adlı üyeden alıntı: mesajı görüntüle
    Allah Kolaylık Versin Kardeşim, Sanırım Css'den düzenleme yapıcaksın.
    Sağol Sercedes, css'den düzenleme olacağını sanmıyorum.. Css dosyasında hiç php kodu yok çünki..
  • 04-06-2009, 01:13:32
    #6
    Wordpress'in resmi sitesinde Codex'inde

    Alıntı
    <?php
    echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' );
    ?>
    kodu bulunuyor. Bunu comment.php'ye koymalısın. Ayrıca avatarı sağa, sola yaslamak için CSS kodlarını kullanabilirsin.
  • 04-06-2009, 14:16:52
    #7
    Üyeliği durduruldu
    Nevan adlı üyeden alıntı: mesajı görüntüle
    Wordpress'in resmi sitesinde Codex'inde
    kodu bulunuyor. Bunu comment.php'ye koymalısın. Ayrıca avatarı sağa, sola yaslamak için CSS kodlarını kullanabilirsin.
    Hangi kodların arasına koymam gerekiyor acaba, yanlış birşey yapmayalım Sağda kalması yeterli


    comment.php

    <?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">This post is password protected. Enter the password to view comments.<p>
    				
    				<?php
    				return;
                }
            }
    
    		/* This variable is for alternating comment background */
    		$oddcomment = 'odd';
    ?>
    
    <!-- You can start editing here. -->
    
    <div class="boxcomments">
    
    <?php if ($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 the_title(); ?>” <?php comments_number('Yazı İçin Yorum Yapılmamış', 'Yazı İçin Bi Yorum Var', '% Yazı İçin Yapılan Yorumlar' );?></h2></li>
    	
    	<?php foreach ($comments as $comment) : ?>
    	<?php if (get_comment_type()=="comment") : ?>
    	
    <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 onaylandıktan sonra yayınlanacaktır.</em>
    		<?php endif; ?>
    <p style="margin-bottom:5px;">Bu Yorum <strong><?php comment_author_link() ?></strong> Tarafından <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('M j, Y') ?></a> Tarihinde Yazılmıştır <?php edit_comment_link('Düzenle',' | ',''); ?></p>
            <?php comment_text() ?>
    	</li>
    		
    	<?php /* Changes every other comment to a different class */	
    	if ('alt' == $oddcomment) $oddcomment = '';
    	else $oddcomment = 'odd';
    	?>
    	
    	<?php endif; endforeach; ?>
    	
    	</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 endif; ?>
    	
    <?php else : 
    
    	/* No comments at all means a simple message instead */ 
    ?>
    
    <?php endif; ?>
    
    <?php if (comments_open()) : ?>
    	
    	<?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">Yorum yaz, içinde kalmasın.</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">İsim ( Nick )<?php if ($req) _e(' (required)'); ?></label>
    		<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p>
    				
    		<p><label for="email">E-mail ( Gerekmez, yazarsan da fena olmaz. )<?php if ($req) _e(' '); ?></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ö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">Sorry, comments for this entry are closed at this time.</p>
    <?php endif; ?></div>
  • 04-06-2009, 14:44:02
    #8
    Malesef yorum dosyasında tam olarak nereye konulacak bilmiyorum, bunlar temaya göre değişiyor.
  • 05-06-2009, 00:27:10
    #9
    Üyeliği durduruldu
    O kadar ilgilendin, ilgin için teşekkürler, nacizane +rep / Veremedim, daha önce vermişim