• 05-05-2010, 17:09:08
    #1
    Üyeliği durduruldu
    merhaba arkadaşlar.. Arthemia Teması nı kurdum fakat habler slalyt ve kategoriler kısmını kaldırmayı başaramadım..


    yardımcı olursanız çok sevinirim..


    resim


    yukardaki resimdeki

    headline,featured ve clear fload yerlerini kaldırmak istiyorum...

    index.php ;


    <?php get_header(); ?>
    	
    	<?php if(!is_paged()) { ?>
    
    	<div id="top" class="clearfloat">
    	
    		<div id="headline">
    		<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
    		<?php query_posts("showposts=1&category_name=Haberler"); ?>
    		<?php while (have_posts()) : the_post(); ?>	
    	
    	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Yorum Yok', '1 Yorum', '% Yorum');?> | <?php if(function_exists('the_views')) { the_views(); } ?>  <?php edit_post_link('Düzenle'); ?>]</div>	
    	<?php $values = get_post_custom_values("Headline");?>
     	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısını göster...">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="300px" height="275px"  /></a>
    	<?php the_excerpt(); ?>
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısının devamını oku...">Devamını Oku &raquo;</a>
    	<?php endwhile; ?>
    		</div>
    		
    	<div id="featured">
    	
    	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />
    	<?php query_posts("showposts=4&category_name=Slayt"); $i = 1; ?>
    		
          <?php while (have_posts()) : the_post(); ?>
    	<div class="clearfloat">
    	<?php	$values = get_post_custom_values("Image");
    	if (isset($values[0])) { ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısının devamını oku...">
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  /></a>
          <?php } ?>
    	<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
    <?php the_excerpt(); ?>
    </div>
        	</div>
    	
          <?php endwhile; ?>
    
    	</div>
    
    </div>	
    
    	<div id="middle" class="clearfloat">
    	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
    	<?php $display_categories = array(107,3,66,6,7); $i = 1;
    	foreach ($display_categories as $category) { ?>
    
    	<div id="cat-<?php echo $i; ?>" class="category">
    		<?php query_posts("showposts=1&cat=$category")?>
    		<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
    		<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
    	</div>
    
    	<?php $i++; ?>
        	<?php } ?>
    
    	</div>
    
    	<?php } ?>
    
    	<div id="bottom" class="clearfloat">
    		
    	<div id="front-list">	
    	
    	<?php
          $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
          query_posts("cat=-9,-8&paged=$page&posts_per_page=5"); ?>
    	
    	<?php while (have_posts()) : the_post(); ?>		
    
    	<div class="clearfloat">
    	<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
    	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Yorum Yok', '1 Yorum', '% Yorum');?> | <?php if(function_exists('the_views')) { the_views(); } ?> <?php edit_post_link('Düzenle'); ?>]</div>	
    	
    	<div class="spoiler">
    	<?php	$values = get_post_custom_values("Image");
    	if (isset($values[0])) { ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısını göster">
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
          <?php } ?>
    
    	<?php the_excerpt(); ?>
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısının devamını oku...">Devamını Oku &raquo;</a>
    	</div>
    
    	</div>
    		
         <?php endwhile; ?>
    
    	<div class="navigation">
    		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
    			else { ?>
    
    			<div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
    			<div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
    			<?php } ?>
    
    	</div>
    	
    	</div>
    		
    
    	<?php get_sidebar(); ?>
    
    	</div>	
    
    <?php get_footer(); ?>
  • 05-05-2010, 19:34:59
    #2
    Orjinal kodlarının yedeğini alarak aşağıda vermiş olduğum kodları denermisin..

    Alıntı
    <?php get_header(); ?>

    <?php if(!is_paged()) { ?>

    <div class="spoiler">
    <?php $values = get_post_custom_values("Image");
    if (isset($values[0])) { ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısını göster">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="150px" height="150px" /></a>
    <?php } ?>

    <?php the_excerpt(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısının devamını oku...">Devamını Oku &raquo;</a>
    </div>

    </div>

    <?php endwhile; ?>

    <div class="navigation">
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    else { ?>

    <div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
    <div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
    <?php } ?>

    </div>

    </div>


    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>
  • 05-05-2010, 19:57:07
    #3
    Üyeliği durduruldu
    maalesef olmadı hocam "Parse error: syntax error, unexpected T_ENDWHILE in /home/****/public_html/wp-content/themes/arthemia/index.php on line 20"

    böyle hata veriyor.
  • 05-05-2010, 20:02:55
    #4
    Msn adresini pm olarak gönderir misin online yardımcı olsam daha iyi olucak.
  • 05-05-2010, 20:24:03
    #5
    Üyeliği durduruldu
    pm gönderildi hocam.
  • 05-05-2010, 21:31:20
    #6
    Sitemdeki index.php yi yolluyorum. Konu resimleri direk gözüküyor + anasayfadaki yazılarınız nofollowlor tagları yüzünden daha hızlı indexlenir.

    Kolay gelsin

    <?php get_header(); ?>
        <?php if(!is_paged()) { ?>
        <?php $i++; ?>
            <?php } ?>    </div>
        <?php } ?>
        <div id="bottom" class="clearfloat">
            <div id="front-list">            <?php
          $page = (get_query_var('paged')) ? get_query_var('paged') : 1;      query_posts("cat=-2840,-313&paged=$page&posts_per_page=5"); ?>
        <?php while (have_posts()) : the_post(); ?>        
        <div class="clearfloat">
        <h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
        <div class="title">
            <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>" style="text-decoration: none"><?php the_title(); ?></a></div>
    <!--
        <font size="1">
    <?php if (function_exists('the_tags')) { ?>Etiketler: <?php the_tags('', ', ', ''); ?>
    <?php } ?>
    -->      </font>
        <div class="meta"><b>Tarih: </b><?php the_time('j M Y') ?> | <?php if(function_exists('the_views')) { the_views(); } ?> <?php edit_post_link('Düzenle'); ?> <b>Yazar:</b> <?php the_author() ?> ]</div>
        <div class="entry clearfloat">
        <?php the_content(''); ?>
        <a rel="nofollow" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> yazısının devamını oku." style="text-decoration: none; font-weight: 700">
        <font color="#0FACF0">Devamını Oku &raquo;</font></a>
        </div>
        </div>
         <?php endwhile; ?>
        <div class="navigation">
            <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
                else { ?>
                <div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
                <div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
                <?php } ?>
        </div>    </div>
        <?php get_sidebar(); ?>
        </div>    
    <?php get_footer(); ?>
  • 05-05-2010, 21:47:04
    #7
    Üyeliği durduruldu
    yine olmadı maalesef hocam
  • 05-05-2010, 22:04:47
    #8
    ByRocco adlı üyeden alıntı: mesajı görüntüle
    yine olmadı maalesef hocam
    ne hatası veriyor ?
  • 05-05-2010, 23:05:29
    #9
    Üyeliği durduruldu
    BurakH adlı üyeden alıntı: mesajı görüntüle
    ne hatası veriyor ?
    "Parse error: syntax error, unexpected '}' in /home/****/public_html/wp-content/themes/arthemia/index.php on line 5"