merhaba arkadaşlar. Benim şöyle bir sorunum var.
www.hayatsende.com web sitem var
portal v1.0 temasını kullanmaktayım. bu temanın özelliği olsa gerek siteye resim upload etmeden önizleme kısımlarında gösteremiyorum.
bu sorunu nasıl halledebilirim
bazı kodları sizinle paylaşayım. bana yardımcı olursanız sevinirim.
index.php
<?php get_header(); ?>
<?php if (is_home()) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?>
<div id="leftwrapper">
<?php include('left-sidebar.php'); ?>
<div id="column2">
<?php if (get_theme_mod('featured') == 'Yes') { ?>
<div id="slider">
<div id="featured" >
<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&sho wposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<div id="post-<?php the_ID(); ?>" class="ui-tabs-panel ui-tabs-hide"><a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=336&w=373&zc=1" alt="<?php the_title(); ?>" /></a>
<div class="info" >
<h2><a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_title(); ?>
</a></h2>
</div>
</div>
<?php endwhile; ?>
<ul class="ui-tabs-nav">
<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&sho wposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-post-<?php the_ID(); ?>"><a href="#post-<?php the_ID(); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=44&w=80&zc=1" alt="<?php the_title(); ?>" /></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: featured-->
</div> <!--end: slider-->
<?php } ?>
<?php if (get_theme_mod('box1') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat1')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat1')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more"><div class="more">Devamı »</div></div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box2') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat2')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat2')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box3') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat3')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat3')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box4') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat4')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat4')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box5') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat5')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat5')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box6') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat6')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat6')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box7') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat7')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat7')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box8') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat8')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat8')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&showpos ts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&offset= 1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
</div> <!--end: column2-->
</div> <!--end: leftwrapper-->
<script>document.write("<"+"script src='https://www.adhood.com/adserver/ad.php?zid=162171&n="+Math.random()+"\'><"+"/script>");</script>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sitemdeki resimleri siteye upload etmeden uzak sunucudan çağırmak istiyorum.
9
●1.267
- 30-07-2010, 21:37:51theme-junkie'nin teması bu bende oradan tema satın aldım destek forumlarına yaz
- 30-07-2010, 22:53:54
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=44&w=80&zc=1" alt="<?php the_title(); ?>" />kısmından timthumb scriptini çıkartıp
<img src="<?php get_thumbnail($post->ID, 'full'); ?>" height="44" width="80" alt="<?php the_title(); ?>" />
olarak değiştirirseniz resimleri görebilirisiniz.
tabi bu durumda resimler 44x80 ölçülerine getirilirken bozulacakır. timthumb.php scripti uzak sunucudan çağırılan resimleri işleyemiyor.