• 17-05-2010, 17:02:52
    #10
    Üyeliği durduruldu
    O sorunuda konu içine eklediğin ilk resmin koduna şunu ekleyerek aşabilirsin.

    <img src="resimadresi" width="150" align="left" />
  • 17-05-2010, 17:56:53
    #11
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <?php the_content_limit(500, ""); ?>
    Bunun icin fonksiyon kodlarini temanizdaki functions.php icerisine eklemeniz yeterli..
    <?php function the_content_limit($max_char, $more_link_text = '(more...)', $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 "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Devami &rarr;</a>";
          echo "</p>";
       }
       else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
            $content = substr($content, 0, $espacio);
            $content = $content;
            echo "";
            echo $content;
            echo "...";
            echo "&nbsp;<a href='";
            the_permalink();
            echo "'>".$more_link_text."</a>";
            echo "";
       }
       else {
          echo "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Devami &rarr;</a>";
          echo "</p>";
       }
    }
  • 17-05-2010, 18:04:47
    #12
    Üyeliği durduruldu
    bu arada kardeşim en alttaki o javascript kodları virüs. kaldırmanı tavsiye ederim.
  • 18-05-2010, 11:47:31
    #13
    TekimNet adlı üyeden alıntı: mesajı görüntüle
    <?php the_content_limit(500, ""); ?>
    Bunun icin fonksiyon kodlarini temanizdaki functions.php icerisine eklemeniz yeterli..
    <?php function the_content_limit($max_char, $more_link_text = '(more...)', $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 "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Devami &rarr;</a>";
          echo "</p>";
       }
       else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
            $content = substr($content, 0, $espacio);
            $content = $content;
            echo "";
            echo $content;
            echo "...";
            echo "&nbsp;<a href='";
            the_permalink();
            echo "'>".$more_link_text."</a>";
            echo "";
       }
       else {
          echo "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Devami &rarr;</a>";
          echo "</p>";
       }
    }
    Çalıştırmadı kardeşim :S devamlı hata aldım..

    Bloomm adlı üyeden alıntı: mesajı görüntüle
    bu arada kardeşim en alttaki o javascript kodları virüs. kaldırmanı tavsiye ederim.
    Saol kardeşim temizledim.