Gönderen Konu: Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz. Çözen >Admin >  (Okunma sayısı 5311 defa)

0 Üye ve 2 Ziyaretçi konuyu incelemekte.

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz. Çözen >Admin >
« : Ağustos 25, 2008, 10:57:01 ÖÖ »

Haberi eklediğimiz zaman otomatikmen kendisi oraya eklenecek.
acaba yapa bilirmiyiz. böyle bir şey. ?
« Son Düzenleme: Eylül 05, 2008, 16:29:38 ÖS Gönderen: ReaLMeR »
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7918
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #1 : Ağustos 25, 2008, 17:19:43 ÖS »
Buraya tıkla ve indir

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #2 : Ağustos 25, 2008, 17:21:31 ÖS »
sayın admin dikkat edersen benim istediyim o şekilde deyil.resimdeki gibi.senin dediyin sadece baslıkları gösterıyor :(

Çevrimdışı FoRo08

  • İleti: 80
  • Puan: 46
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #3 : Ağustos 25, 2008, 19:33:38 ÖS »
EVet bende cok aradim bu sekil haberleri aMA  :(

Ama bana oyle geliyorki siz yaparsiniz. ;D

Çevrimdışı AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7918
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #4 : Ağustos 25, 2008, 21:57:59 ÖS »
Sadece bir tane haber mi görünecek?Ya da her bölümde kaç tane haber görünecek?

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #5 : Ağustos 26, 2008, 11:25:24 ÖÖ »
Sayın adminim aynı resimdeki gibi olacak.devam diye yazsa altlarda  da güzel olur.
3 tane yanyana olcak 3 tanede altta ettı 6 yada 2 şeyde yapa bilirsin ama resimdeki gibi osla süper olur.

Çevrimdışı aybars_123

  • İleti: 260
  • Puan: 27
    • Egitimciyim.net
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #6 : Ağustos 26, 2008, 13:31:43 ÖS »
bende resımssız olanı var ıstersenız buraya koyabılırım

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #7 : Ağustos 26, 2008, 17:27:10 ÖS »
bikoy bakalım ınsallah güzeldir.

Çevrimdışı aybars_123

  • İleti: 260
  • Puan: 27
    • Egitimciyim.net
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #8 : Ağustos 26, 2008, 18:31:43 ÖS »
Kod: [Seç]



<?
/*
+--------------------------------------------------------------------------
|   MkPortal
|   ========================================
|   by Meo aka Luponero <Amedeo de longis>
|
|   (c) 2004 mkportal.it
|   http://www.mkportal.it
|   Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
|   > MKPortal
|   > Written By Amedeo de longis
|   > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/


$limit = $this->config['news_block'];
if (!$limit) {
   $limit = 5;
}

$cont = "";
$content = "";
$link_user = $mklib_board->forum_link("profile");



   $query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT $limit");
   while( $row = $DB->fetch_row($query) ) {
      $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
      $news_words= $this->config['news_words'];
      if ($this->config['news_html']) {
         $testo = str_replace ("<br />", " ", $testo);
         $testo = strip_tags ($testo);
         }
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }

      $cont .= "
               
                     <img hspace=\"0\" src=\"http://www.egitimciyim.net/mkportal/templates/default/images/atb_home.gif\" align=\"bottom\" border=\"0\" alt=\"\" />&nbsp;
                    <a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a><br>
                   
      ";
   }
   $query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 1");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont2 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img hspace=\"0\" align=\"left\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }   
               
               
               
               
           
$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 3");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont3 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img align=\"left\" hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }                 
           
               
           



$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 2");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont4 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img align=\"left\" hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }





$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 4");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont5 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img align=\"left\" hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }



$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 5");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont6 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img align=\"left\" hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }



$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
   FROM mkp_news AS n
   LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
   WHERE validate = '1' ORDER BY `id` DESC LIMIT 6");
   while( $row = $DB->fetch_row($query) ) {
   $idnt = $row['id'];
      $totcomments = $row['totalcomm'];
      $id_orig_name = $row['idautore'];
      $idcategoria = $row['idcategoria'];
      $titolo = stripslashes($row['titolo']);
      $name = $row['autore'];
      $testo = stripslashes($row['testo']);
      if ($this->mkeditor == "BBCODE") {
         $testo = $this->decode_bb($testo);
         $testo = $mklib_board->decode_smilies($testo);
      }
      $sezione = $row['titcat'];
      $icona = $row['icona'];
      switch($icona) {
         case '1':
            $image = "$this->images/entry.gif";
          break;
         case '2':
             $image = "$this->images/entry.gif";
             break;
         case '3':
            $image = "$this->images/entry.gif";
          break;
         case '4':
            $image = "$this->images/entry.gif";
          break;
         case '5':
            $image = "$this->images/entry.gif";
          break;
          default:
             $image = $icona;
          break;
          }
     
      $cdata = $this->create_date($row['data']);
     
      if ($news_words) {
         $testo = substr ($testo, 0, $news_words);
         $testo .= " ...";
         }   
     
   $cont7 = "
               <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
                   <tbody>
                   <tr>
                     <td>
                    <img align=\"left\" hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
<b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
                    <br />
                     $testo
                     </td>
                   </tr>
           
                   </tbody>
                 </table>
                 ";
               
               
            }





     
         
   $content = "

            <tr>
              <td class=\"contents\">
              <div class=\"taburlo\">
                <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
                 


<tr><td align=\"center\" colspan=\"2\" rowspan=\"1\"><script type=\"text/javascript\"><!--
google_ad_client = \"pub-3129119178344888\";
/* 468x60, olu&thorn;turulma 04.12.2007 */
google_ad_slot = \"5780237003\";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>



</td></tr>



<tr>
               <td width=\"33%\" class=\"taburlo\" valign=\"top\">
              {$cont2}
               
               {$cont4}
           
               
               </td>
</tr>





<tr>
<td width=\"33%\" class=\"taburlo\" valign=\"top\">
               {$cont3}
               
               {$cont5}
           
               
               </td>

             
                  </tr>


<tr><td align=\"center\" colspan=\"2\" rowspan=\"1\"><script type=\"text/javascript\"><!--
google_ad_client = \"pub-3129119178344888\";
/* 468x60, olu&thorn;turulma 04.12.2007 */
google_ad_slot = \"5780237003\";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>



</td></tr>

<tr>
<td width=\"33%\" class=\"taburlo\" valign=\"top\">
               {$cont6}
               

           
               {$cont7}

               
               </td>  </tr>             
   </table>

              </div>
              </td>
                  </tr>
              ";

      unset($cont);
      unset($row);
      unset($idcat);
      unset($categoria);
      unset($idnt);
      unset($query);
      unset($query2);
      unset($totcomments);
      unset($id_orig_name);
      unset($idcategoria);
      unset($titolo);
      unset($name);
      unset($testo);
      unset($sezione);
      unset($icona);
      unset($cdata);
      unset($news_words);




?>

Çevrimdışı ReaLMeR

  • İleti: 46
  • Puan: 26
-Haber Bölümünü Bu Şekilde Yapa Bilirmiyiz.
« Yanıtla #9 : Ağustos 26, 2008, 18:39:50 ÖS »
kardeş yalnısın var herhalde bu yanyana deyil alt alta bu bendede var :(

Seo4Smf Tagleri:
 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
13 Yanıt
2341 Gösterim
Son İleti Kasım 24, 2010, 13:19:19 ÖS
Gönderen: kirkpinarkoyu
39 Yanıt
7472 Gösterim
Son İleti Ocak 03, 2010, 01:10:06 ÖÖ
Gönderen: zugasi_61
30 Yanıt
4357 Gösterim
Son İleti Mart 21, 2010, 23:30:20 ÖS
Gönderen: isabey
4 Yanıt
1136 Gösterim
Son İleti Kasım 17, 2008, 08:24:58 ÖÖ
Gönderen: istagoz
1 Yanıt
967 Gösterim
Son İleti Şubat 17, 2009, 19:27:04 ÖS
Gönderen: AdmiN