• 21-05-2009, 15:10:53
    #19
    Üyeliği durduruldu
    nerenin öyle olması lazım
    en son değiştirdiğimiz kodun mu ?
  • 21-05-2009, 15:11:45
    #20
    Üyeliği durduruldu
    bu arada
    Güncel Haber Sitesi demoda göründüğü üzere

    aynı haber farklı iki gösterim var

    üstdekinde çıkmıyo resim
  • 21-05-2009, 15:14:12
    #21
    biryerde oluyor ama değil mi?
    eğer oluyorsa üst kısmın kodunu da o şekilde ayarlayın. ama anlamadığım şey ben siteyi yaparken olan şeyler sizde olmuyor
  • 21-05-2009, 19:07:34
    #22
    Üyeliği durduruldu
    onrbilisim adlı üyeden alıntı: mesajı görüntüle

    teşekkürler arkadaşlar
    çok şükür o hata düzeldi. arttık katlanıcaz dikeni neyse
    bu arada ufak bişey daha sorsam yüzsüzlük sayılmazsa
    bugüne kadar ekli bütün konularda varbu rsim hatası şu anda.
    ben bundan sonrakileri düzgün yaparımda öncekiler için ne yapabiliriiz.
    yani ben thumb koymadığımda standart otomatik kendi atsa bi tane varmı öyle bir modül.
    13000 başlık var önceden açılan onlarada default resim gelse acaba olabilir mi
    bunu da şu şekilde yapabilirsin. Sana değiştir diye verdiğim kodu aşağıdaki kod ile değiştir.

    <?php if (echo get_post_meta($post->ID, "thumbnail", true) !="") { ?>
    
    <a href="<?php the_permalink(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" width="194" height="94"></a>
    
    <?php }else{ ?>
    
    <a href="<?php the_permalink(); ?>"><img src="http://www.benimbiricikgüzelsitem.com/goruntuyok.jpg)" width="194" height="94"></a>
    
    <?php } ?>
    Yukardaki kodda goruntuyok.jpg yi gösterecek konuda resim yok ise. Sen onu istediğin gibi değiştir.
  • 22-05-2009, 01:01:18
    #23
    Üyeliği durduruldu
    hata aldım hocam
    Parse error: syntax error, unexpected T_ECHO in /home/trguncel/public_html/wp-content/themes/centric/index.php on line 37
    index.php
    <?php get_header(); get_sidebar(); ?>
    	<!-- BEGIN content -->
    	<div id="content">
    		<!-- begin latest -->
    		<div id="latest">
    			<?php if (have_posts()) : the_post(); ?>
    			<a href="<?php the_permalink(); ?>"><img src="<?php dp_attachment_image(0, 'full', '380', '230'); ?>" alt="Son Haberler" /></a>
    			<div>
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    			<p><?php ob_start(); the_excerpt(); echo dp_clean(ob_get_clean(), 500); ?></p>
    			<a href="#" class="readmore">Devamını oku &raquo;</a>
    			</div>
    			<?php endif; ?>
    		</div>
    		<!-- end latest -->
    		<div class="break"></div>
    		<?php 
    		$thecat = explode(',', dp_settings('categories'));
    		$count = 0;
    		foreach ($thecat as $val) :
    		$count++;
    		if ($count == 3) $end = ' end'; else $end = '';
    		?>
    		<!-- begin  -->
    		<div class="box<?php echo $end; ?>">
    		<h2><?php echo get_cat_name($val); ?></h2>
    		<?php 
    		query_posts('cat=' . $val);
    		if (have_posts()) : $first = true;
    		while (have_posts()) : the_post();
    		if ($first) : $first = false;
    		?> 
    		<?php if (echo get_post_meta($post->ID, "thumbnail", true) !="") { ?>
    <a href="<?php the_permalink(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" width="198" height="98"></a>
    <?php }else{ ?>
    <a href="<?php the_permalink(); ?>"><img src="http://www.trguncel.com/goruntuyok.jpg)" width="198" height="98"></a>
    <?php } ?>  
    		<p><?php ob_start(); the_excerpt(); echo dp_clean(ob_get_clean(), 140); ?></p>
    		<a href="<?php the_permalink(); ?>" class="readmore">Devamını oku &raquo;</a>
    		<ul>
    		<?php else: ?>
    		<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
    		<?php endif; endwhile; ?>
    		</ul>
    		<?php endif; ?>
    		</div>
    		<!-- end -->
    		<?php endforeach; ?>
    		<div class="break"></div>
    		<!-- begin recent posts -->
    		<div class="box">
    		<h2>Son Yazılar</h2>
    		<ul>
    		<?php dp_recent_posts(10); ?>
    		</ul>
    		</div>
    		<!-- end recent posts -->
    		<!-- begin recent comments -->
    		<div class="box">
    		<h2>Son Yorumlar</h2>
    		<ul>
    		<?php dp_recent_comments(10); ?>
    		</ul>
    		</div>
    		<!-- end recent comments -->
    		<!-- begin top commentators -->
    		<div class="box end">
    		<h2>Yazarlar</h2>
    		<ul>
    		<?php dp_top_commentators(10); ?>
    		</ul>
    		</div>
    		<!-- end top commentators -->
    	</div>
    	<!-- END content -->
    <?php get_footer(); ?>