• 02-09-2009, 23:02:32
    #1
    Arkadaşlar bu kodlarda bir hata var ama bulamadım.Pek php bilmiyorum

    Comments.php dosyası şu ;

    <?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 article is password protected. Enter the password to see the comments.<p>
    				
    				<?php
    				return;
                }
            }
    
    		/* This variable is for alternating comment background */
    		$oddcomment = 'alt';
    ?>
    
    <!-- You can start editing here. -->
    <hr class="separator" />
    <?php if ($comments) : ?>
    	<h2 id="comments"><?php comments_number("No Comments", "1 Comment", "% Comments"); ?></h2> 
    
    	<ol class="commentlist">
    
    	<?php foreach ($comments as $comment) : ?>
    
    		<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    			<div class="comment-author">
    				<cite><?php comment_author_link() ?></cite> says:
    				<?php if ($comment->comment_approved == '0') : ?>
    				<em>Your comment is awaiting moderation.</em>
    				<?php endif; ?>
    			</div>
    			<div class="comment-content">
    				<?php comment_text() ?>
    			</div>
    		</li>
    
    	<?php /* Changes every other comment to a different class */	
    		if ('alt' == $oddcomment) $oddcomment = '';
    		else $oddcomment = 'alt';
    	?>
    
    	<?php endforeach; /* end for each comment */ ?>
    
    	</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. -->
    		
    	 <?php else : // comments are closed ?>
    		<!-- If comments are closed. -->
    		<p class="nocomments">Comments closed.</p>
    		
    	<?php endif; ?>
    <?php endif; ?>
    
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <h3 id="respond">İlk Yorumu Sen Yapmalısın :) <span class="dark"></span></h3>
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to leave comments.</p>
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <!--
    <p>Ol&aacute;, <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Sair</a>.</p>
    -->
    
    <?php else : ?>
    
    <p>
    	<label for="author">Adınız:</label>
    	<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" class="text user" tabindex="1" />
    </p>
    
    <p>
    	<label for="email">Mail Adresiniz:</small></label>
    	<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" class="text passwd" tabindex="2" /></p>
    <p>
    	<label for="url">Sitemizin Adı:</label>
    	<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" class="text website" tabindex="3" />
    </p>
    
    <?php endif; ?>
    
    <p>
    	<label for="comment">Mesajınız:</label>
    	<div class="message"><textarea name="comment" id="comment" class="textarea" tabindex="4"></textarea></div>
    </p>
    <p class="info"><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></p>
    <br />
    <p><input name="submit" type="Gönder" id="submit" class="button" 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 endif; // if you delete this the sky will fall on your head ?>

    Yardım ederseniz mutlu olurum..
  • 02-09-2009, 23:14:26
    #2
    Teşekkürler arkadaşlar düzelttim..

    Aynı sorunu yaşayabilecekler için belirtelim ;

    Bu kısım ;
    <p><input name="submit" type="Gönder" id="submit" class="button" tabindex="5" value="Gönder" />

    Böyle değiştirildi ;
    <p><input name="submit" type="submit" id="submit" class="button" tabindex="5" value="Gönder" />


    / Konu kapatılabilir.