• 10-03-2009, 22:56:12
    #1
    Arkadaslar kuskusuz sizin emeginiz buyuk sitemiz ustunde yardimlarinizi esirgemiyosunuz.
    Bir yardim daha isteyecegiz.
    Sitemiz magturka.com revolution church temasi kullanilmistir yanliz burdaki arthemia temasindaki sagdaki featured bolumunu goruyorsunuz. Biz boyle birsey sitemizde sidebara koymak istiyoruz boyle birsey mumkunmu veya baska bir plugin yada oneriz olabilirmi buna benzer. yada asagisindaki gibi bir konudan yazilar ama yaninda fotolu bir sekilde.
    tskler
  • 10-03-2009, 23:28:06
    #2
    al o plugin kur başka bir şey aramana gerek yok kodu var kodunu ekle ayarlarıyla boyutunu sidebarına göre değiştir..
  • 10-03-2009, 23:31:19
    #3
    sanırım ana sayfadaki eklenen konulardaki resimleri özel alan ile ekliyosun index.php deki kodları kullanarak sidebarda gösterebilirsin. hangi kategoriyi orda göstermek istiyosan o kategori id sini kullanırsın.
  • 10-03-2009, 23:47:23
    #4
    tskler yardim icin arkadaslar ugrastim ama bir turlu yapamadim.
    temadaki kod burda ama burda yanlis birseymi yapiyorum anlamadim bir turlu olmuyor:
    bana lazim olan kod hangisi tam olarak ve nasil yapmaliyim.
    istedigim temadaki index.php:
    <?php get_header(); ?>
    	 <?php
    		//Get value from Admin Panel
    		$cp_categories = get_categories('hide_empty=0');
    		$ar_headline = get_settings( "ar_headline" );
    		$ar_featured = get_settings( "ar_featured" );
    		?>
    	<div id="bottom" class="clearfloat">
    	<div id="bottom-left">
    	<?php if(!is_paged()) { ?>	
    	<div id="front-list">	
    	<?php $width = get_settings ( "cp_thumbWidth_LatestPost" );
    		$height = get_settings ( "cp_thumbHeight_LatestPost" );
    		if ( $width == 0 ) { $width = 150; }
    		if ( $height == 0 ) { $height = 150; }
    	?>
    	<?php query_posts(array(
    			'category__not_in' => array($ar_headline,$ar_featured),
    			'showposts' => 1,
    			)); ?>
    	<?php while (have_posts()) : the_post(); ?>		
    	<div class="clearfloat">
    	<h3 class="cat_title"><?php the_category(', '); ?> &raquo;</h3>
    	<span class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></span>
    	<div class="meta"><?php the_time('D, j/m/y') ?> – <?php the_time('G:i') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?></div>		
        <?php $status = get_settings ( "cp_postThumb" );
    		$status2 = get_settings ( "cp_thumbAuto" );
    		if (( $status2 != "first" ) || ( $status != "no" )) { ?>
    	<?php $values = get_post_custom_values("Image");
    	if (isset($values[0])) { ?>
    	<p><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]; ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
    alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  /></p>
    	<?php } ?>
    	<?php } ?>
    	<?php the_content('Read the whole story &raquo;'); ?>
    	</div>
          	<?php endwhile; ?>
    	<?php wp_reset_query(); ?>
    	</div>
    	<?php } ?>
    	<?php $column = get_settings ( "cp_status_Column" );
    		if ( $column != "one" ) { ?>	
    	<div id="paged-list">	
    	<?php add_filter('post_limits', 'my_post_limit'); ?>
    	<?php
    		global $myOffset;
    		$myOffset = 1;
    		$temp = $wp_query;
    		$wp_query= null;
    		$wp_query = new WP_Query();
    		$wp_query->query(array(
    				'offset' => $myOffset,
    				'category__not_in' => array($ar_headline,$ar_featured),
    				'paged' => $paged,
    				)); ?>
    		<?php if (have_posts()) : ?>
    		<?php $i = 1; ?>
    		<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>	
    	<?php if( $odd = $i%2 ) { echo '<div class="clearfloat">'; } ?>
    	<div class="tanbox <?php if( $odd = $i%2 ) { echo 'left'; } else { echo 'right'; } ?>">
    		<span class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
    		<div class="meta"><?php the_time('D, j/m/y') ?> – <?php the_time('G:i') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?></div>
    	<?php $width = get_settings ( "cp_thumbWidth_Column" );
    		$height = get_settings ( "cp_thumbHeight_Column" );
    		if ( $width == 0 ) { $width = 80; }
    		if ( $height == 0 ) { $height = 80; }
    	?>
    	<?php $status = get_settings ( "cp_thumbAuto" );
    		if ( $status != "first" ) { ?>
    	<?php
    	//Check if custom field key "Image" has a value
    	$values = get_post_custom_values("Image");
    	if (isset($values[0])) {
    	?>
    		<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><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]; ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
    alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  /></a>
    		<?php } ?>
    	<?php } else { ?>
    	<?php $id =$post->ID;
    $the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");
    $pattern = '!<img.*?src="(.*?)"!';
    preg_match_all($pattern, $the_content, $matches);
    $image_src = $matches['1'][0]; ?>
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php if($image_src != '') { echo $image_src; } ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
    alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  /></a>
    	<?php } ?>
    		<?php $status = get_settings ( "cp_excerptColumn" );		if ( $status != "no" ) { ?>
    		<?php the_excerpt() ?>
    		<?php } ?>
    	</div>
    	<?php if( $odd = $i%2 ) { } else { echo '</div>'; } ?>
          <?php $i++; endwhile; ?>
    	<?php if( $odd = $i%2 ) { } else { echo '</div>'; } ?>
    	<div id="navigation">
    	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    	</div>
    	<?php endif; ?>
    	</div>
    	<?php } else { ?>
    	<div id="paged-list">	
    	<?php add_filter('post_limits', 'my_post_limit'); ?>
    	<?php
    		global $myOffset;
    		$myOffset = 1;
    		$temp = $wp_query;
    		$wp_query= null;
    		$wp_query = new WP_Query();
    		$wp_query->query(array(
    				'offset' => $myOffset,
    				'category__not_in' => array($ar_headline,$ar_featured),
    				'paged' => $paged,
    				)); ?>
    		<?php if (have_posts()) : ?>
    		<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>	
    		<div class="onecolumn clearfloat">
    		<span class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
    		<div class="meta"><?php the_time('D, j/m/y') ?> – <?php the_time('G:i') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?></div>
    	<?php $width = get_settings ( "cp_thumbWidth_Column" );
    		$height = get_settings ( "cp_thumbHeight_Column" );
    		if ( $width == 0 ) { $width = 80; }
    		if ( $height == 0 ) { $height = 80; }
    	?>
    	<?php $status = get_settings ( "cp_thumbAuto" );
    		if ( $status != "first" ) { ?>
    	<?php
    	//Check if custom field key "Image" has a value
    	$values = get_post_custom_values("Image");
    	if (isset($values[0])) {
    	?>
    		<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><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]; ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
    alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  /></a>
    		<?php } ?>
    	<?php } else { ?>
    	<?php $id =$post->ID;
    $the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");
    $pattern = '!<img.*?src="(.*?)"!';
    preg_match_all($pattern, $the_content, $matches);
    $image_src = $matches['1'][0]; ?>
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php if($image_src != '') { echo $image_src; } ?>&amp;w=<?php echo $width; ?>&amp;h=<?php echo $height; ?>&amp;zc=1&amp;q=100"
    alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px"  /></a>
    	<?php } ?>
    		<?php $status = get_settings ( "cp_excerptColumn" );		if ( $status != "no" ) { ?>
    		<?php the_excerpt() ?>
    		<?php } ?>
    		</div>
          	<?php endwhile; ?>
    		<div id="navigation">
    		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
    		<?php endif; ?>
    	</div>
    	<?php } ?>	
    	<?php $wp_query = null; $wp_query = $temp;?>
    	<?php remove_filter('post_limits', 'my_post_limit'); ?>
    	</div>
    	<?php get_sidebar(); ?>
    	</div>	
    <?php get_footer(); ?>
  • 10-03-2009, 23:50:44
    #5
    o temada home.php var üstlerde kod var daha son eklentinin js dosyası var onuda kurcalaman lazım dediğin şeyi yapmak için...
  • 10-03-2009, 23:55:52
    #6
    bende o kapasite yok yardim edecek arkadas varsa belirtirse sevinirim. yinede tskler arkadaslar
  • 11-03-2009, 00:13:27
    #7
    harew1 adlı üyeden alıntı: mesajı görüntüle
    o temada home.php var üstlerde kod var daha son eklentinin js dosyası var onuda kurcalaman lazım dediğin şeyi yapmak için...
    peki arkadasim bu temadaki gibi kaymayan bir sekilde yapmak kolay olurmu? yanliz yaninda biraz yazidan kesim olarak
  • 11-03-2009, 00:15:34
    #8
    "TURKA SON HABERLER" bu yazının olduğu dosyayı buraya koyarmısın index.php değil sanırsam.
  • 11-03-2009, 00:17:22
    #9
    buyur:
    <?php get_header(); ?>
    <div id="content">
    	<div id="homepage">
    		<div id="homepagetop">
    			<div class="featuredtop">
    				<!--This section is where the Featured Content plugin is called.-->
    				<?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>
    			</div>
    		</div>
    		<div id="homepageleft">
    			<!--Manşet kategorisi ID #1, olarak ayarlıdır cat=1 olarak ayarlanmıştır category ID numarasını değiştirin. Gösterim sayısı 3 olarak ayarlanmıştır isterseniz değiştirebilirsiniz.-->
    			<div class="hpfeatured">
    			<h3>Guncel Haberler</h3>
    				<!--Manşet kategorisi ID #1, olarak ayarlıdır cat=1 olarak ayarlanmıştır category ID numarasını değiştirin -  custom field ismi  "thumbnail". resim boyutu 70x70, olması gerekir.-->
    				<?php $recent = new WP_Query("cat=5&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
    				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="70" height="70"/></a>
    				<?php else: ?>
    				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
    				<?php endif; ?>				
    				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    				<?php the_content_limit(80, ""); ?>
    				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
    				<?php endwhile; ?>
    				<!--Hangi kategoriyi koyacaksanız # olan yere kategori url sini yazın-->
    				<b><a href="http://www.magturka.com/category/guncel-haber" rel="bookmark">Kategorinin diğer yazıları</a></b>
    			</div>			
    		</div>
    		<div id="homepageright">
    			<!--Manşet kategorisi ID #1, olarak ayarlıdır cat=1 olarak ayarlanmıştır category ID numarasını değiştirin.Gösterim sayısı 3 olarak ayarlanmıştır isterseniz değiştirebilirsiniz.-->
    			<div class="hpfeatured">
    			<h3>KULTUR-SANAT</h3>
    				<!--Manşet kategorisi ID #1, olarak ayarlıdır cat=1 olarak ayarlanmıştır category ID numarasını değiştirin -  custom field ismi  "thumbnail". resim boyutu 70x70, olması gerekir.-->
    				<?php $recent = new WP_Query("cat=9&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
    				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="70" height="70"/></a>
    				<?php else: ?>
    				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
    				<?php endif; ?>				
    				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>				
    				<?php the_content_limit(80, ""); ?>
    				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
    				<?php endwhile; ?>
    				<!--Hangi kategoriyi koyacaksanız # olan yere kategori url sini yazın-->
    				<b><a href="http://www.magturka.com/category/kultur-sanat" rel="bookmark">Kategorinin diğer yazıları</a></b>
    			</div>		
    		</div>
    		<div id="homepagebottom">
    			<div class="hpbottom">
    				<h3>TURKA SON HABERLER</h3>
    				<!--Alt Manşet kategorisi ID #1, olarak ayarlıdır cat=1 olarak ayarlanmıştır category ID numarasını değiştirin -  custom field ismi  "hpbottom". resim boyutu 70x70, olması gerekir.-->
    				<?php $recent = new WP_Query("cat=30&showposts=20"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
    				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="110" height="110"/></a>
    				<?php else: ?>
    				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
    				<?php endif; ?>				
    				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    				<?php the_content_limit(350, "[Devamını oku]"); ?>
    				<div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
    				<?php endwhile; ?>
    				<!--Hangi kategoriyi koyacaksanız # olan yere kategori url sini yazın-->
    				<b><a href="http://www.magturka.com/category/arsiv/" rel="bookmark">Kategorinin diğer yazıları</a></b>
    			</div>
    		</div>
    	</div>
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    </div>
    <!-- The main column ends  -->
    <?php get_footer(); ?>
    bu asagidakide sidebar.php

    <!-- begin sidebar -->
    
    <div id="sidebar">
    
    	<div class="newsletter">
    	
    		<!--To enable the eNews &amp; Upates feature, go to your WP dashboard and go to Design -> Revolution Church Options and enter your Feedburner ID.-->
    
    		<h2>Haber & E-Mail</h2>
    		<p>.<br />.</p><form id="subscribe" action="http://feedburner.google.com/fb/a/mailverify?uri=Magturka" method="post" target="popupwindow" onsubmit="window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input type="text" value="E-Posta adresinizi girin..." id="subbox" onfocus="if (this.value == 'E-Posta adresinizi girin...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'E-Posta adresinizi girin...';}" name="email"/><input type="hidden" value="http://feeds.feedburner.com/~e?ffid=<?php $feedburner_id = get_option('revchurch_feedburner_id'); echo $feedburner_id; ?>" name="url"/><input type="hidden" value="Abonelik" name="title"/><input type="submit" value="git" id="subbutton" /></form>	
    	
    	</div>
    	
    	
    	
    	<div class="widgetarea">
    	
    	<ul id="sidebarwidgeted">
    	
    	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    	
    		<li id="recent-posts">
    		<h2>SON YAZILAR</h2>
    			<ul>
    				<?php wp_get_archives('type=postbypost&limit=5'); ?> 
    			</ul>
    		</li>
    		
    	<?php endif; ?>
    	
    	</ul>
    	
    	</div>
    
    	
    </div>
    
    <!-- end sidebar -->