• 11-07-2010, 22:33:44
    #1
    sunucuoptimizasyon.com
    Arkadaşlar bir klip sitem var, blog yazılarında sadece 2-3 cümlelik giriş metni kullanıp, flash video player ile kendi sunucum üzerinden klip oynatıyorum. Ana sayfada yada videolara girildiğinde video oynatma ekranı görünüyor burda problem yok. Ancak kategorilere baktığımda videoların yerine flash playerin kodları görünüyor, sizce bunu nasıl düzeltebiliriz.
  • 11-07-2010, 22:54:28
    #2
    hocam muhtemelen archive.php dosyanızdaki kod excerpt(); fonksiyonudur. Html olarak almayabilir. Çözüm için index.php dosyanızdaki gerekli yeri archive.php dosyanıza koyarsanız sorun çözülür. Tam olarak dosyaları görmediğimden bişe de diyemiyorum, yapamazsanız ekleyin dediğim dosyaları buraya halledelim hocam (:
  • 11-07-2010, 22:59:36
    #3
    sunucuoptimizasyon.com
    Sizin için kategori sayfasındaki kodları hazırladım index kodlarıda aşağıda.

    Kategorilerin listelendiği functions.php. Ayrıca kategorilere girince zannedersem belli karakterden sonra kesiyor yazıları, kodlarıda kesiyorsa yine görünmeyebilir video onada bakabilirseniz sevinirim.

    Alıntı
    <?php

    include("settings.php");

    # Sidebar
    if (function_exists('register_sidebar'))
    {
    register_sidebar(array(
    'name' => 'Full Width Widget',
    'before_widget' => '',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3><div class="box">',
    ));

    register_sidebar(array(
    'name' => 'Left Widget',
    'before_widget' => '',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3><div class="box">',
    ));

    register_sidebar(array(
    'name' => 'Right Widget',
    'before_widget' => '',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3><div class="box">',
    ));

    register_sidebar(array(
    'name' => 'Footer Widget',
    'before_widget' => '',
    'after_widget' => '</div></div>',
    'before_title' => '<div class="left"><h3>',
    'after_title' => '</h3><div class="box">',
    ));
    }

    # Limit Post
    function the_content_limit($max_char, $more_link_text = '', $stripteaser = 0, $more_file = '') {
    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]&gt;', $content);
    $content = strip_tags($content);

    if (strlen($_GET['p']) > 0) {
    echo "";
    echo $content;
    echo "&nbsp;<a href='";
    the_permalink();
    echo "'>"."Okumaya devam et &rarr;</a>";
    echo "";
    }
    else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
    $content = substr($content, 0, $espacio);
    $content = $content;
    echo "";
    echo $content;
    echo "&nbsp;<a href='";
    the_permalink();
    echo "'>"."...</a>";
    echo "";
    }
    else {
    echo "";
    echo $content;
    echo "&nbsp;<a href='";
    the_permalink();
    echo "'>"."Okumaya devam et &rarr;</a>";
    echo "";
    }
    }

    # Retrieves the setting's value depending on 'key'.
    function theme_settings($key) {
    global $settings;
    return $settings[$key];
    }

    ?>

    İndex.php dosyamız

    Alıntı
    <?php get_header(); ?>

    <div id="col1">
    <div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div id="contentbox">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?> için kalıcı bağlantı">
    <?php the_title(); ?>
    </a></h2>
    <div class="byline"> Tarih
    <?php the_time('d F Y') ?>
    Yazan <span class="author">
    <?php the_author_posts_link(); ?>
    </span> </div>
    <div class="entry">
    <?php the_content(); ?>
    <div class="clear"></div>
    <div class="entryfooter"> <span class="link"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?> için kalıcı bağlantı">Kalıcı Bağlantı</a></span> <span class="comments">
    <?php comments_popup_link('Yorum Yok', '1 Yorum', '% Yorum'); ?>
    </span></div>
    <div class="meta"><span> Kategori:
    <?php the_category(','); ?>
    </span><span class="tags">
    <?php the_tags('Etiketler: ', ', ', ''); ?>
    </span> </div>
    </div>
    <!--end: entry-->
    </div>
    <!--end: contentbox-->
    <?php endwhile; ?>
    <div class="clear"></div>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    <?php else : ?>
    <p>No posts found.</p>
    <?php endif; ?>
    </div>
    <!--end: content-->
    </div>
    <!--end: col1-->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  • 11-07-2010, 23:07:58
    #4
    archive.php dosyanızı da eklerseniz tam olur hocam <?php the_content(); ?> kodu var anasayfanızda ve bu sorunsuz çekiyor diyorsanız archive.php dosyanızda da döngüde bu kodu kullanırsanız sorunsuz bir şekilde gösterecektir.
  • 11-07-2010, 23:10:00
    #5
    sunucuoptimizasyon.com
    archive.php

    Alıntı
    <?php get_header(); ?>

    <div id="col1">
    <div id="content">
    <div id="contentbox">
    <?php /* If this is a category archive */ if (is_category()) { ?>
    Buradasınız: Ana Sayfa //
    <?php single_cat_title(); ?>
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    Buradasınız: Ana Sayfa // Etiket
    <?php single_tag_title(); ?>
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    Buradasınız: Ana Sayfa // Arşiv için
    <?php the_time('d F Y'); ?>
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    Buradasınız: Ana Sayfa // Arşiv için
    <?php the_time('F, Y'); ?>
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    Buradasınız: Ana Sayfa // Arşiv için
    <?php the_time('Y'); ?>
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    Yazar Arşivi
    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    Blog Arşivi
    <?php } ?>
    </div>
    <!--end: contentbox-->
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div id="contentbox">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?> için kalıcı bağlantı">
    <?php the_title(); ?>
    </a></h2>
    <div class="byline"> Tarih
    <?php the_time('d F Y') ?>
    Yazan <span class="author">
    <?php the_author_posts_link(); ?>
    </span> </div>
    <div class="entry">
    <?php the_content_limit(300, 'Devamı...'); ?>
    <div class="clear"></div>
    <div class="entryfooter"> <span class="link"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?> için kalıcı bağlantı">Kalıcı Bağlantı</a></span> <span class="comments">
    <?php comments_popup_link('Yorum Yok', '1 Yorum', '% Yorum'); ?>
    </span></div>
    <div class="meta"><span> Kategori:
    <?php the_category(','); ?>
    </span><span class="tags">
    <?php the_tags('Etiketler: ', ', ', ''); ?>
    </span> </div>
    </div>
    <!--end: entry-->
    </div>
    <!--end: contentbox-->
    <?php endwhile; ?>
    <div class="clear"></div>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    <?php else : ?>
    <?php endif; ?>
    <div class="clear"></div>
    </div>
    <!--end: content-->
    </div>
    <!--end: col1-->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  • 11-07-2010, 23:11:58
    #6
    evet hocam sorun limitte (:

    archive.php dosyasındaki

    <?php the_content_limit(300, 'Devamı...'); ?>
    kodunu

    <?php the_content(); ?>
    ile değiştirelim. Muhtemelen olacaktır (:
  • 11-07-2010, 23:15:48
    #7
    sunucuoptimizasyon.com
    Eyvallah üstad oldu Son wp sitemi 1 yıl önce kurmuştum paslanmışız artık
  • 12-07-2010, 06:42:03
    #8
    Paralı sistemlerden wpye dönünce tabi ister istemez bir paslanma olmuştur
  • 12-07-2010, 18:14:59
    #9
    sunucuoptimizasyon.com
    DarksPrince adlı üyeden alıntı: mesajı görüntüle
    Paralı sistemlerden wpye dönünce tabi ister istemez bir paslanma olmuştur
    Kriz var hacı ne yapacan