• 03-02-2010, 18:11:10
    #1
    Üyeliği durduruldu
    Arkadaşlar özellikle magazin temalarda özel alanlara girilen anahtarlarda resimler thumb şeklinde wp-conten/uploads gibi bir yol izleyerek ftp ye gönderiliyor dışarıdan url ekleme mantığıyla resim eklenmiyor maalesefki birçok tema bu şekilde.

    Birkaç tema beğendim ancak sırf bu yüzden vazgeçtim. Bütün konulara da tek resim göstermek görüntü kirliliği oluşturuyor şimdi üstadlardan nacizane isteğim: bu özel alanlara resim eklerken başka url den de resim ekleyebilmek istiyorum bunu nasıl ve hangi dosyadan yapabiliriz?
  • 04-02-2010, 00:21:46
    #2
    Başka url den resim eklemek için index.php veya home.php den thumb yerindeki timthumb,phpthumb gibi scriptleri kaldırman gerekli..

    örnek bir temanın thumb değerini ver ayarlıyım.
  • 04-02-2010, 12:30:54
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Aynı Dert Bendede Var İşte İndex.php İçi
    <?php get_header() ?>
    
    <?php if(!is_paged()) { ?>
    <div id="top" class="clearfloat">
    <div id="headline">
    
    
    <center><img src="<?php bloginfo('template_url'); ?>/images/manset.jpg" width="590px" height="32px" alt="" /></center>
    <?php include (TEMPLATEPATH . "/manset/manset.php"); ?> 
    
    </div>
    
    
    <div id="featured">
    
    <img src="<?php bloginfo('template_url'); ?>/images/featured.png" width="300px" height="19px" alt="" />
    <?php query_posts("showposts=4&category_name=Graphic Design"); $i = 1; ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <div class="clearfloat">
    <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">
    <?php if( get_post_meta($post->ID, "thumbnail", true) ) { ?>
    <img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumbnail", true); ?>&w=100&h=65&zc=1" width="100" height="65" alt="Önizleme" class="alignleft" />
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/fea_thumb.jpg" width="100" height="65" alt="Önizleme" class="alignleft" />
    <?php } ?>
     
     
    </a>
    
    <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a></div>
    
    <div class="yazi"><?php the_content_limit(75, "..."); ?></div>
    
    </div>
    
    <?php endwhile; ?>
    </div>
    </div> 
    <div id="middle" class="clearfloat">
    <img src="<?php bloginfo('template_url'); ?>/images/category.png" class="clearfloat" alt="" />
    <?php $display_categories = array(3,4,6,5,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="botto" class="clearfloat">
    
    <div id="front-list"> 
    
    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=-27,-28&paged=$page"); ?>
    
    <?php while (have_posts()) : the_post(); ?> 
    <div class="clearfloat">
    
    
    
    
    <div class="spoiler">
    <div class="videoitem">
    <div class="ratings">
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?> 
    </div>
    
    <div class="comments3">
    <?php comments_number('0', '1', '%'); ?>
    </div>
    
    <div class="thumbnail">
    <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">
    <?php if( get_post_meta($post->ID, "thumbnail", true) ) { ?>
    <img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumbnail", true); ?>&w=192&h=120&zc=1" width="192" height="120" class="alignleft" />
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/fea_thumb.jpg" width="192" height="120" class="alignleft" />
    <?php } ?>
     
     
    </a>
    
    
    
    </div>
    </div>
    <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    
    <div class="text"> <?php the_content_limit(250, "<span class='read-more'>Devamını okuyun &raquo;</span>"); ?></div>
    <div class="clear"></div> 
    </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() ?>
  • 04-02-2010, 12:37:34
    #4
    KadirAK adlı üyeden alıntı: mesajı görüntüle
    Aynı Dert Bendede Var İşte İndex.php İçi
    <?php get_header() ?>
    
    <?php if(!is_paged()) { ?>
    <div id="top" class="clearfloat">
    <div id="headline">
    
    
    <center><img src="<?php bloginfo('template_url'); ?>/images/manset.jpg" width="590px" height="32px" alt="" /></center>
    <?php include (TEMPLATEPATH . "/manset/manset.php"); ?> 
    
    </div>
    
    
    <div id="featured">
    
    <img src="<?php bloginfo('template_url'); ?>/images/featured.png" width="300px" height="19px" alt="" />
    <?php query_posts("showposts=4&category_name=Graphic Design"); $i = 1; ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <div class="clearfloat">
    <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">
    <?php if( get_post_meta($post->ID, "thumbnail", true) ) { ?>
    <img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" width="100" height="65" alt="Önizleme" class="alignleft" />
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/fea_thumb.jpg" width="100" height="65" alt="Önizleme" class="alignleft" />
    <?php } ?>
     
     
    </a>
    
    <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a></div>
    
    <div class="yazi"><?php the_content_limit(75, "..."); ?></div>
    
    </div>
    
    <?php endwhile; ?>
    </div>
    </div> 
    <div id="middle" class="clearfloat">
    <img src="<?php bloginfo('template_url'); ?>/images/category.png" class="clearfloat" alt="" />
    <?php $display_categories = array(3,4,6,5,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="botto" class="clearfloat">
    
    <div id="front-list"> 
    
    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=-27,-28&paged=$page"); ?>
    
    <?php while (have_posts()) : the_post(); ?> 
    <div class="clearfloat">
    
    
    
    
    <div class="spoiler">
    <div class="videoitem">
    <div class="ratings">
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?> 
    </div>
    
    <div class="comments3">
    <?php comments_number('0', '1', '%'); ?>
    </div>
    
    <div class="thumbnail">
    <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">
    <?php if( get_post_meta($post->ID, "thumbnail", true) ) { ?>
    <img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" width="192" height="120" class="alignleft" />
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/fea_thumb.jpg" width="192" height="120" class="alignleft" />
    <?php } ?>
     
     
    </a>
    
    
    
    </div>
    </div>
    <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    
    <div class="text"> <?php the_content_limit(250, "<span class='read-more'>Devamını okuyun &raquo;</span>"); ?></div>
    <div class="clear"></div> 
    </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() ?>
    Dener misiniz?
  • 04-02-2010, 14:31:56
    #5
    Tsk Hocam Oldu
    Bir Ricam Daha Olacak İndex.php bu kodları değişiyoruz ya sitede yamulma oluyor... Tema Adı : Shubo
  • 04-02-2010, 16:18:45
    #6
    Üyeliği durduruldu
    İndex.php kodları:

    <?php get_header(); ?>			
    					<!--Begin Main Content Area-->
    					
    						<div id="main-body">
    							<!--Begin Left Column-->
    							<!--End Left Column-->
    							
    							<!--Begin Main Column-->
    							<div id="maincol" style="width: <?php echo $content_width; ?>px">
    								<div class="padding">
    									<div id="breadcrumbs">
    										<div class="moduletable">
    											<span class="breadcrumbs pathway"><?php _e('Home'); ?></span>
    										</div><!-- .moduletable -->	
    									</div><!-- #breadcrumbs -->
    									
    									<?php if (get_posts('cat='.get_option('mixx_feature_cat_id')) && get_option('mixx_feature_cat_id') != '-1') { ?>
    									
    									<div id="featured-block">
    
    											<script type="text/javascript">
        											var RokFeatureImages = [];
    
        											window.addEvent('domready', function() {
            											new RokFeature('featured-block', {
    	    												'transition': Fx.Transitions.Quad.easeOut,
    	    												'duration': 800,
    	    												'opacity': 0.8,
    	    												'autoplay': true,
    	    												'delay': 7000        });
        												});
    											</script>
    
    									<div id="rows-3" class="rokfeature-mod">
        									<div class="rokfeature-image">
            									<div class="rokfeature-options">
    											<?php $i = 1; ?>
    											  <?php query_posts('cat='.get_option('mixx_feature_cat_id').'&showposts=3&orderby=rand'); ?>
    											  <?php while (have_posts()) : the_post(); ?>
    											  		
    													<div class="rokfeature-option-block">
                    										<div class="rokfeature-tab-<?php echo $i; ?>"></div>
                    										<div class="rokfeature-block-<?php echo $i; ?>">
    															<?php $large = get_post_meta($post->ID, 'large', TRUE); ?>
    															<?php if($large) { ?>  
    															<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $large ?>&amp;w=65&amp;h=65&amp;zc=1&amp;q=75" alt="<?php the_title(); ?>" class="rokfeature-thumb" height="66" width="72" /></a>
    															<?php } ?>
    															
    															<?php remove_filter('the_excerpt', 'wpautop'); ?>
    															
                                                                <span class="showthumb"><?php the_excerpt(); ?></span>
                                                                
                                                                <?php add_filter('the_excerpt', 'wpautop'); ?>
                                                                
                        										<div class="rokfeature-block-bg<?php echo $i; ?>"></div>
                    										</div><!-- .rockfeature-block-3 -->
    														<?php $large = get_post_meta($post->ID, 'large', TRUE); ?>
    														<?php if($large) { ?>
                    										<script type="text/javascript">
                        									RokFeatureImages.push('<?php echo $large; ?>');
                    										</script>
    														<?php } ?>
                										</div><!-- .rockfeature-option-block -->
                            							<div class="rokfeature-title">
                                    						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span><?php the_title(); ?></span></a>
                                						</div><!-- .rokfeature-option-block -->
                                        				<div class="rokfeature-readon">
                    										<a href="<?php the_permalink(); ?>"><?php _re('Read More'); ?></a>
                										</div><!-- .rokfeature-readon -->
    													<?php $i++;?>
    											  <?php endwhile;?>
                                                	</div><!-- .rokfeature-option-block -->
    											</div>
    										</div>
    									</div><!-- #row-3 -->
    										
    									<?php } ?>
    																				
    									<div id="main-content">
    									
    										<?php if (get_option('mixx_inset_active') == "true") { ?>
    										
    											<?php get_sidebar('inset'); ?>
    										
    										<?php } ?>
    										
    										<div id="maincontent-block">
    											<div class="blog">
    											
    												<?php 
    													$thePage = (get_query_var('paged')) ? get_query_var('paged') : 1;
    													query_posts($query_string.'paged='.$thePage.'&cat=-'.get_option('mixx_feature_cat_id').',-'.get_option('mixx_more_news_cat_id'));
    												?>
    												
    												<?php while (have_posts()) : the_post(); ?>
    												
    												<div <?php post_class('leading'); ?>>
    													<div class="frontpage-item rokmodtools-<?php the_ID(); ?>">
    														<div class="frontpage-item-bg">
    															<div class="content-header">
    																<div class="content-tools">
    																	<div class="close-handle"></div>
    																	<div class="tools-handle"></div>
    																	<h2 class="contentheading"><?php the_title(); ?></h2>
    																</div>
    															</div><!-- .content-header -->
    															<div class="article-extras"><!-- IE6FIX -->
    																<div class="iteminfo">
    																	<span class="createdate"><?php the_time('l, j F o h:i'); ?></span>
    																</div>
    															<div class="readon-tab-block">
    																<div class="readon-tab">
    																	<div class="readon-tab2">
    																		<div class="readon-tab3">
    																			<a href="<?php the_permalink(); ?>" class="readon"><span class="readon-tab-text"><?php _re('Read More'); ?></span></a>
    																		</div>
    																	</div>
    																</div>
    															</div>
    															<div class="comments-tab-block">
    																<div class="readon-tab">
    																	<div class="readon-tab2">
    																		<div class="readon-tab3">
    																			<a href="<?php comments_link(); ?>" class="readon"><span class="readon-tab-text"><?php comments_number(); ?></span></a>
    																		</div>
    																	</div>
    																</div>
    															</div>
    														</div><!-- .frontpage-item-bg -->
    														<div class="content-padding">
    															<div>
    																<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    																<?php if($thumb) { ?>
    																<div class="feature-thumb">
    																	<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=151&amp;h=112&amp;zc=1&amp;q=75" alt="<?php the_title(); ?>" class="feature"/><span><a href="<?php the_permalink(); ?>"><?php _re('Read more'); ?></a></span>
    																</div><!-- .feature-thumb -->
    																<?php } ?>
    																<h4 style="margin-top: 10px;"><span class="highlight-bold"><?php the_title(); ?></span></h4>
    																<div style="font-size: 110%;"><?php the_content(false); ?>
    																
    																<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    																
    																<a href="<?php the_permalink(); ?>" class="readon"><span class="readon-full"><?php _re('Read more:'); ?> <?php the_title(); ?></span></a>
    																
    																<?php } ?>
    																
    																<div class="clr"></div>
    																
    																</div>
    															</div>
    														</div><!-- .content-padding -->
    													</div><!-- .frontpage-item .rokmodtools-blog-82 -->
    													<div class="content-bottom">
    														<div class="content-bottom2">
    															<div class="content-bottom3"></div>
    														</div>
    													</div>
    												</div>
    											</div><!--<span class="leading_separator">&nbsp;</span>-->
    										
    											<?php endwhile;?>
    											
    											<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    											
    											<div class="blog_nav_index">
    												<div class="alignleft_index"><?php next_posts_link('&laquo; '._r('Older Entries')); ?></div>
    												<div class="alignright_index"><?php previous_posts_link(_r('Newer Entries').' &raquo;') ?></div>
    												<div class="clr"></div>
    											</div><br />
    											
    											<?php } ?>
    										
    										<div class="clr"></div>
    									</div>
    								</div>
    							</div>
    						</div>
    						<div class="clr"></div>
    								
    						<div id="mainmodules2" class="spacer w99">
    							<div class="block last" style="width: <?php echo $content_width; ?>px">
    							
    								<?php if (get_posts('cat='.get_option('mixx_more_news_cat_id')) && get_option('mixx_more_news_cat_id') != '-1') { ?>
    								
    								<div class="mainblock-module rokmodtools-more-news-main-page">
    									<div class="mainblock-mod">
    										<div class="mainblock-mod2">
    											<div class="mainblock-title-container">
    												<div class="content-tools">
    													<h3 class="module-title"><span class="bg">
    													<?php echo get_cat_name(get_option('mixx_more_news_cat_id')); ?>
    													</span></h3>
    													<div class="close-handle"></div>
    													<div class="tools-handle"></div>
    													</div>
    											</div><!-- .mainblock-title-container -->
    											<div class="module">
    												<div class="morenews-outer">
    													
    													<?php $i = 1; ?>
    													
    													<?php query_posts('cat='.get_option('mixx_more_news_cat_id').'&showposts=4&orderby=rand'); ?>
    													<?php while (have_posts()) : the_post(); ?>
    													
    													<div class="morenews-block-<?php echo $i; ?>">
    														
    														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    														<?php if($thumb) { ?>
    														<a href="<?php the_permalink(); ?>"><img class="morenews-img" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=122&amp;h=80&amp;zc=1&amp;q=75" /></a>
    														<?php } ?>
    														<br />
    														<span class="highlight-bold highlight-grey" style="margin-bottom:-8px;display:block;"><?php the_title(); ?></span><br />
    														
    														<?php remove_filter('the_content', 'wpautop'); ?>
    														
    														<span class="more_news_excerpt"><?php the_content(false); ?></span>
    														
    														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    														
    														<a class="readon" href="<?php the_permalink(); ?>"><span class="readon-full"><?php _re('More'); ?></span></a>
    														
    														<?php } ?>
    														
    														<?php add_filter('the_content', 'wpautop'); ?>
    														
    													</div>
    													<?php $i++; ?>
    													
    													<?php endwhile;?>
    												
    													</div>
    													
    													<div class="clr">
    													
    												</div>				
    											</div><!-- .module -->
    										</div>
    									</div>
    									
    									<div class="mainblock-mod-bottom">
    										<div class="mainblock-mod-bottom2">
    											<div class="mainblock-mod-bottom3"></div>
    										</div>
    									</div>
    								</div>
    								
    								<?php } ?>
    								
    								<?php remove_filter('the_content', 'wpautop'); ?>
    								
    								<?php if ( (get_posts('cat='.get_option('mixx_previous_issues_cat_1_id')) && get_option('mixx_previous_issues_cat_1_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_2_id')) && get_option('mixx_previous_issues_cat_2_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_3_id')) && get_option('mixx_previous_issues_cat_3_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_4_id')) && get_option('mixx_previous_issues_cat_4_id') != '-1') ) { ?>
    								
    								<div class="mainblock-module medium rokmodtools-previous-issues-main-page">
    									<div class="mainblock-mod">
    										<div class="mainblock-mod2">
    											<div class="mainblock-title-container">
    												<div class="content-tools">
    													<h3 class="module-title">
    													<span class="bg"><?php echo get_option('mixx_previous_issues_title'); ?></span></h3>
    													<div class="close-handle"></div>
    													<div class="tools-handle"></div>
    												</div>
    											</div>
    											
    											<div class="module">
    												<div style="width: 48%; float: left;">
    												
    												<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_1_id')) && get_option('mixx_previous_issues_cat_1_id') != '-1') { ?>
    													
    													<?php query_posts('cat='.get_option('mixx_previous_issues_cat_1_id').'&showposts=1&orderby=rand'); ?>
    													<?php while (have_posts()) : the_post(); ?>
    													
    													<div style="margin-bottom:10px;">
    														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    														<?php if($thumb) { ?>
    														<div class="feature-thumb" style="margin-bottom:10px;"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
    															<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_1_id'));?>"><?php single_cat_title(); ?></a></span>
    														</div>
    														<?php } ?>
    														<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
    														<div style="height: 5px;"></div>
    														<?php the_content(false); ?>
    														
    														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    														
    														<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
    														
    														<?php } ?>
    														
    													</div>
    													<?php endwhile;?>
    													
    												<?php } ?>
    													
    													<div class="clr"></div>
    													
    												<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_2_id')) && get_option('mixx_previous_issues_cat_2_id') != '-1') { ?>	
    																									
    													<?php query_posts('cat='.get_option('mixx_previous_issues_cat_2_id').'&showposts=1&orderby=rand'); ?>
    													<?php while (have_posts()) : the_post(); ?>
    													
    													<div>
    														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    														<?php if($thumb) { ?>
    														<div class="feature-thumb"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
    															<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_2_id'));?>"><?php single_cat_title(); ?></a></span>
    														</div>
    														<?php } ?>
    														<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
    														<div style="height: 5px;"></div>
    														<?php the_content(false); ?>
    														
    														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    														
    														<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
    														
    														<?php } ?>
    														
    													</div>
    													<?php endwhile;?>
    												
    												<?php } ?>
    												
    											</div>
    											<div style="width: 48%; float: left; margin-left: 20px;">
    											
    											<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_3_id')) && get_option('mixx_previous_issues_cat_3_id') != '-1') { ?>												
    												
    												<?php query_posts('cat='.get_option('mixx_previous_issues_cat_3_id').'&showposts=1&orderby=rand'); ?>
    												<?php while (have_posts()) : the_post(); ?>
    												
    												<div style="margin-bottom:10px;">
    													<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    													<?php if($thumb) { ?>
    													<div class="feature-thumb" style="margin-bottom:10px;"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
    														<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_3_id'));?>"><?php single_cat_title(); ?></a></span>
    													</div>
    													<?php } ?>
    													<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
    													<div style="height: 5px;"></div>
    													<?php the_content(false); ?>
    													
    													<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    													
    													<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
    													
    													<?php } ?>
    													
    												</div>
    												<?php endwhile;?>
    												
    											<?php } ?>
    												
    											<div class="clr"></div>
    											
    											<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_4_id')) && get_option('mixx_previous_issues_cat_4_id') != '-1') { ?>
    											
    											<?php query_posts('cat='.get_option('mixx_previous_issues_cat_4_id').'&showposts=1&orderby=rand'); ?>
    											<?php while (have_posts()) : the_post(); ?>
    											
    											<div>
    												<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
    												<?php if($thumb) { ?>
    												<div class="feature-thumb"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
    													<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_4_id'));?>"><?php single_cat_title(); ?></a></span>
    												</div>
    												<?php } ?>
    												<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
    												<div style="height: 5px;"></div>
    												<?php the_content(false); ?>
    												
    												<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
    												
    												<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
    												
    												<?php } ?>
    												
    											</div>
    											<?php endwhile;?>
    											
    											<?php } ?>
    										
    									</div>
    									<div class="clr"></div>				
    								</div>
    							</div>
    						</div>
    						<div class="mainblock-mod-bottom">
    							<div class="mainblock-mod-bottom2">
    								<div class="mainblock-mod-bottom3"></div>
    							</div>
    						</div>
    					</div>
    					
    					<?php } ?>
    					
    					<?php add_filter('the_content', 'wpautop'); ?>
    					
    				</div>
    			</div>
    		</div>
    		<!--End Main Column-->
    		
    		<?php if (get_option('mixx_right_active') == "true") { ?>
    		
    			<?php get_sidebar('right'); ?>
    		
    		<?php } ?>
    		
    		<div class="clr"></div>
    	</div>
    	
    	<!--End Main Content Area-->
    		
    <?php get_footer(); ?>
  • 04-02-2010, 17:03:56
    #7
    https://www.r10.net/wordpress/544107-...gori-acma.html bu konuya bakarsan isine yarar
  • 04-02-2010, 17:17:56
    #8
    Üyeliği durduruldu
    ArneLd adlı üyeden alıntı: mesajı görüntüle
    Üstad benimki zaten resimli de ben ftp den değil de dışarı url den resim çağırmak için konuyu açmıştım yne de teşekkürler güzel bir konu olmuş...
  • 05-02-2010, 02:31:27
    #9
    Yuh Bu tema hangi serverda sağlam olarak yaşıyor merak ettim Sanırsam bir tek wp nin hazır şablonunu kullanmış

    zulfikar;

    <?php bloginfo('template_directory'); ?>/timthumb.php?src=
    temadaki bu kodları silin hocam..

    Örnek:

    "<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"
    Bu kodu

    <?php echo $thumb ?>
    sadece bu şekilde yapın..


    /// Mesajı yazdım gitmiyor ya