• 09-09-2009, 09:43:32
    #1
    arkadaşlar arthemia temasında random post ve video bölümü var ben o videoyu istediğim sitedeki embed koduyla eklemek istiyorum... random postta boş duruyor onları nasıl ayarlaıycam bilen varsa yardım etsin lütfen
  • 09-09-2009, 12:39:46
    #2
    Tema senin ise alttaki Page 1 Of 22 1 - 2 - 3 - 4 tarzı nasıl yaptın acaba? Bende bunu kullanıyorum Next veya Previorus yazıyor sayfalarda altta
  • 09-09-2009, 13:31:46
    #3
    ZaFHeR adlı üyeden alıntı: mesajı görüntüle
    Tema senin ise alttaki Page 1 Of 22 1 - 2 - 3 - 4 tarzı nasıl yaptın acaba? Bende bunu kullanıyorum Next veya Previorus yazıyor sayfalarda altta
    page navi ayarlarından şu şekilde yaparsan olması gerek galiba

    Text For Number Of Pages: Page %CURRENT_PAGE% of %TOTAL_PAGES%


    bu arada bana yardım edecek biri yokmu?
  • 09-09-2009, 23:09:48
    #4
    yardım edecek yokmu
  • 09-09-2009, 23:45:43
    #5
    index Dosyasını atarsan bakarım Arkadaşım
  • 09-09-2009, 23:53:52
    #6
    Diagnos adlı üyeden alıntı: mesajı görüntüle
    index Dosyasını atarsan bakarım Arkadaşım
    buyur kardeşim index dosyası

    <?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(); ?>
  • 09-09-2009, 23:58:32
    #7
    Bu kısımlar Footerda sanırım Onuda atabilirmisin ayrıca bBu random post Plugin olarak mı ?
  • 09-09-2009, 23:59:51
    #8
    Orası kategoriye göre çalışıyor.

    Önce artemis temasının admin paneline gir orada video yazar, orada kategori belirle sonrada kategoriye bir video koy en başına orada çıkar video.
  • 10-09-2009, 00:02:06
    #9
    Diagnos adlı üyeden alıntı: mesajı görüntüle
    Bu kısımlar Footerda sanırım Onuda atabilirmisin ayrıca bBu random post Plugin olarak mı ?

    Tema özelliği.