• 17-02-2010, 23:55:32
    #1
    http://tinyurl.com/ygaofel
    arkadaşlar sitede resimler lightbox içinde gözüküyor onu nasıl kaldırabilirim acaba..
    buyrun kod
    index.php
    <?php get_header(); ?>
      <div id="contents" class="clearfix">
      
    
    
       <div id="left_col">
    
    
    <?php  if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
        <div class="post">
    	
        
    	  		<div class="posttop"> </div>
    <div class="postmiddle">
    <div class="icon"><?php if (function_exists('get_cat_icon')) get_cat_icon(); ?></div>
    
           <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    	   
    	   <div class="single_meta">	  
    <div class="dates"><?php the_time(__('j F Y', 'inove')) ?></div>
    <div class="com"><?php comments_popup_link(__('Yorum yapılmamış'), __('1 Yorum'), __('% Yorum')); ?></div>
    </div>
    
           <div class="post_content">
            <?php the_content(__('Devamını oku &raquo;')); ?>
           </div>
    	  
    
    	   </div>
    
    
    <div class="postbottom"></div>
    
        </div>
    
    <?php endwhile; ?>
    
    <?php endif; ?>
    
    <div class="posttop"> </div>
    <div class="postmiddle">
    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
    </div>
    <div class="postbottom"></div>
    
       </div><!-- #left_col end -->
    
       <?php get_sidebar(); ?>
    
      </div><!-- #contents end -->
    
    
    
    <?php get_footer(); ?>
    functions.php

    <?php
    //Widget ekleme: http://www.yazikolik.com
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
    	'before_title' => '<h2>',
            'after_title' => ' </h2>',
            'before_widget' => '<div class="sidetop"> </div>
    <div class="sidemiddle">',
            'after_widget' => ' </div>
    <div class="sidebottom"></div>',
            
        ));
    	//http://www.yazikolik.com
    	
    	
    // Original custom comments function is written by mg12 - http://www.neoease.com/
    
    if (function_exists('wp_list_comments')) {
    	// comment count
    	add_filter('get_comments_number', 'comment_count', 0);
    	function comment_count( $commentcount ) {
    		global $id;
    		$_commnets = get_comments('post_id=' . $id);
    		$comments_by_type = &separate_comments($_commnets);
    		return count($comments_by_type['comment']);
    	}
    }
    
    
    function custom_comments($comment, $args, $depth) {
    	$GLOBALS['comment'] = $comment;
    	global $commentcount;
    	if(!$commentcount) {
    		$commentcount = 0;
    	}
    ?>
    
     <li class="comment <?php if($comment->comment_author_email == get_the_author_email()) {echo 'admin-comment';} else {echo 'guest-comment';} ?>" id="comment-<?php comment_ID() ?>">
      <div class="comment-meta">
       <div class="comment-meta-left">
      <?php if (function_exists('get_avatar') && get_option('show_avatars')) { echo get_avatar($comment, 35); } ?>
      
        <ul class="comment-name-date">
         <li class="comment-name">
    <?php if (get_comment_author_url()) : ?>
    <a id="commentauthor-<?php comment_ID() ?>" class="url <?php if($comment->comment_author_email == get_the_author_email()) {echo 'admin-url';} else {echo 'guest-url';} ?>" href="<?php comment_author_url() ?>" rel="external nofollow">
    <?php else : ?>
    <span id="commentauthor-<?php comment_ID() ?>">
    <?php endif; ?>
    
    <?php comment_author(); ?>
    
    <?php if(get_comment_author_url()) : ?>
    </a>
    <?php else : ?>
    </span>
    <?php endif; ?>
         </li>
         <li class="comment-date"><?php echo get_comment_time(__('j F Y')); ?></li>
        </ul>
       </div>
    
       <ul class="comment-act">
    <?php if (function_exists('comment_reply_link')) { 
            if ( get_option('thread_comments') == '1' ) { ?>
        <li class="comment-reply"><?php comment_reply_link(array_merge( $args, array('add_below' => 'comment-content', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => '<span><span>'.__('Cevap ver').'</span></span>'.$my_comment_count))) ?></li>
    <?php   } else { ?>
        <li class="comment-reply"><a href="javascript:void(0);" onclick="MGJS_CMT.reply('commentauthor-<?php comment_ID() ?>', 'comment-<?php comment_ID() ?>', 'comment');">Cevap ver</a></li>
    <?php   }
          } else { ?>
        <li class="comment-reply"><a href="javascript:void(0);" onclick="MGJS_CMT.reply('commentauthor-<?php comment_ID() ?>', 'comment-<?php comment_ID() ?>', 'comment');">Cevap ver</a></li>
    <?php } ?>
        <li class="comment-quote"><a href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php comment_ID() ?>', 'comment-<?php comment_ID() ?>', 'comment-content-<?php comment_ID() ?>', 'comment');">Alıntı yap</a></li>
       </ul>
    
      </div>
      <div class="comment-content" id="comment-content-<?php comment_ID() ?>">
      <?php if ($comment->comment_approved == '0') : ?>
       <span class="comment-note">Yorumunuz onay için bekliyor.</span>
      <?php endif; ?>
      <?php comment_text(); ?>
      </div>
    
    <?php } ?>
  • 17-02-2010, 23:57:47
    #2
    index.php yi atsana
  • 18-02-2010, 00:11:37
    #3
    koydum hocam index ve functions.php