• 21-08-2014, 00:10:41
    #1
    Arkadaşlar resimde gösterdiğim gibi sorunum o beğen butonunu , CEVAPLA kısmının sağ tarafına almak.

    eklentimin kodu bu :
    <?php if (class_exists('ZakiLikeDislike')) ZakiLikeDislike::getLikeDislikeHtml(); ?>
    comments kodumda bu,

    <?php
    	if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) )
    		if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    ?>
    <div class="kutuArka" style="margin-top:10px;overflow:hidden;padding-bottom:8px;">    
    	  
    <div id="comments">
    <?php
    	if ( !empty($post->post_password) ) :
    		if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) :
    ?>
    	<div class="nopassword"><?php _e( 'This post is protected. Enter the password to view any comments.', 'wpbx' ) ?></div>
    </div><!-- #comments -->
    <?php
    		return;
    	endif;
    endif;
    ?>
    <?php if ( $comments ) : ?>
    
    <?php global $wpbx_comment_alt ?>
    
    
    <?php // Number of pings and comments
    $ping_count = $comment_count = 0;
    foreach ( $comments as $comment )
    	get_comment_type() == "comment" ? ++$comment_count : ++$ping_count;
    ?>
    
    <?php if ( $comment_count ) : ?>
    <?php $wpbx_comment_alt = 0 ?>
    <ul>
    <?php wp_list_comments('type=comment&callback=wpbx_comment&max_depth=7'); ?>
    </ul>
    
    
    		<div id="nav-comm" class="navigation clearfix" style="background:none;">
    			<div class="alignleft"><?php previous_comments_link() ?></div>
    			<div class="alignright"><?php next_comments_link() ?></div>
    		</div>
    	<!-- #comments-list .comments -->
    
    <?php endif; // REFERENCE: if ( $comment_count ) ?>
    <?php if ( $ping_count ) : ?>
    <?php $wpbx_comment_alt = 0 ?>
    
    	<div class="videolarBaslik">
            <h1><span class="renk5 regular">Geri İzlemeler (<?php printf($ping_count > 1 ? __('<span>%d</span> GERİ İZLEME') : __('<span>1</span> GERİ İZLEME'), $ping_count) ?>)</span></h1>
          </div>			
    		<ul>
    <?php wp_list_comments('type=pings&callback=wpbx_comment'); ?>
    		</ul>
    
    
    		<div id="nav-pings" class="navigation clearfix">
    			<div class="alignleft"><?php previous_comments_link( '&laquo; Older Trackbacks' ); ?></div>
    			<div class="alignright"><?php next_comments_link( 'Newer Trackbacks &raquo;' ) ?></div>
    		</div>
    	
    
    <?php endif // REFERENCE: if ( $ping_count ) ?>
    
    <?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 ?>
    		<p class="nocomments">Yorumlara kapalı</p>
    
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if ( 'open' == $post->comment_status ) : ?>
    <?php $req = get_option('require_name_email'); // Checks if fields are required. Thanks, Adam. ;-) ?>
    
    
    
    		<div class="formcontainer">
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    			<p id="login-req">
    			<?php printf(__('Yorum yapmak için <a href="%s" title="Log in">GİRİŞ</a> yapmalısınız'),
    				get_bloginfo('wpurl') . '/wp-login.php?redirect_to=' . get_permalink() ) ?></p>
    		</div>
    
    <?php else : ?>
    <script type="text/javascript">
    	function sanitizeCommentFields(form) {
    		if (form.url.value == 'Website') {
    			form.url.value = '';
    		}
    		if (form.comment.value == 'Comment') {
    			form.comment.value = '';
    		}
    		return true;
    }
    </script>
    
    			<form id="commentform" class="clearfix" action="<?php bloginfo('wpurl') ?>/wp-comments-post.php" method="post" onsubmit="javascript:sanitizeCommentFields(this);">
    
    
    					<div class="newComment">
    						<div class="title">
    							 <?php comment_form_title(__( '<strong>Makale\'ye</strong> Yorum Yapın' ), __( '<strong>Cevap verdiğiniz</strong> yorumcu %s' )); ?> <?php cancel_comment_reply_link(__( '(Vazgeç)' )); ?>
    						</div>
    						
    						<div class="temizle"></div>
    
    						
    						<div class="form">
    <?php if ( $user_ID ) : ?>
    				<p id="login">
    				<?php printf( __( '<div style="padding:4px;border:1px #ccc solid;margin:4px;"><span class="loggedin">Giriş yapan kullanıcı <a href="%1$s" title="Kullanıcı %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Sistemden çıkış">Çıkış?</a></span> yap</div>' ),
    					get_bloginfo('wpurl') . '/wp-admin/profile.php',
    					wp_specialchars( $user_identity, 1 ),
    					get_bloginfo('wpurl') . '/wp-login.php?action=logout&amp;redirect_to=' . get_permalink() )
    				?>
    				</p>
    <?php else : ?>
    							<div id="comment-user-details"> <?php do_action('alt_comment_login'); ?>
    
    							<input id="author" name="author" type="text" placeholder="Adınız" class="name" />
    							<input id="email" name="email" type="text" placeholder="E-mail Adresiniz" class="mail" />
    
    							</div>
    <?php endif // REFERENCE: * if ( $user_ID ) ?>
    							<?php comment_id_fields(); ?>
    							<textarea id="comment" name="comment" cols="30" rows="10"></textarea>
    							<input id="submit" name="submit" type="submit" value="" />
    						</div>
    					</div>
    			</form><!-- #commentform -->
    		
    <?php endif // REFERENCE: if ( get_option('comment_registration') && !$user_ID ) ?>
    
    
    	</div><!-- #respond -->
    <?php endif // REFERENCE: if ( 'open' == $post->comment_status ) ?>
    
    
    </div><!-- #comments -->
    </div>
  • 21-08-2014, 08:56:47
    #2
    Yardimci olabilecek yokmu acaba
  • 21-08-2014, 10:13:03
    #3
    Hocam yorumları oluşturan fonksiyon wpbx_comment fonksiyonu. Düzenleme yapmamız için bu fonksiyon kodlarını paylaşmanız gerekiyor(büyük ihtimalle functions.php içindedir). Ayrıca CSS düzenlemeleride gerekebilir; bunun içinde sitenizi paylaşabilirseniz daha sağlıklı olur.