Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 777
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25661 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16609 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(37395 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(21074 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(14212 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(18008 okuma, 15 yanıt)
 üye aktivasyon..
(10738 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6326 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6602 okuma, 2 yanıt)
 Resimli RSS..
(23447 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(11171 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6716 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8385 okuma, 4 yanıt)
 block genişliği..
(5758 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14546 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7383 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9508 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10585 okuma, 8 yanıt)
 ethai1 3..
(13299 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(70752 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(38133 okuma, 36 yanıt)
 tek modul için sağ ve sol..
(11499 okuma, 8 yanıt)
 Php-nuke8.0 başlıklarda t..
(10677 okuma, 8 yanıt)
 Phpden iyi anlayan..
(5502 okuma, 1 yanıt)
 Php nuke 7.6 - 3.1 patch ..
(74156 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29924 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11224 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12519 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(6014 okuma, 2 yanıt)
 Makale modulu..
(8654 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(86409 okuma, 121 yanıt)
 title değiştirme..
(10455 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(10122 okuma, 6 yanıt)
 Php Nuke 8.1..
(4380 okuma, 0 yanıt)
 merhaba..
(10361 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13665 okuma, 13 yanıt)
 admin panelinde Access De..
(6471 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26667 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(17248 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8799 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6686 okuma, 2 yanıt)
 coppermine hata..
(10788 okuma, 8 yanıt)
 içerik tanıtımı..
(6344 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7232 okuma, 3 yanıt)
 google keywords..
(9043 okuma, 6 yanıt)
 8.0'da html sorunu..
(5546 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(54872 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(10120 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6414 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10615 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - blok duzenleme [nukec]
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


blok duzenleme [nukec]

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-12, 10:22:02    Mesaj konusu: blok duzenleme [nukec] Alıntıyla Cevap Gönder

MERHABA;
Ben nukec bloklarini asağidaki gibi download bloklarinda odugu gibi orta blok icin yanyana gostermek istiyorum.son ilanlar ve poluper ilanlari asagidaki kodlarda nereleri degiserek yapabilirim
orjinal nukec bloklari:
son ilanlar blogu
http://www.dosyaekle.com/do2.php?x=block-NukeC30Latest

populer ilanlar blogu:
http://www.dosyaekle.com/do2.php?x=block-NukeC30Most
Kod:
<?php



if (eregi("block-Dosyalar_Orta.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

global $prefix, $db, $nukeurl;
$content = "<font class=\"content\">";

$content .="<table border=0 width=\"100%\"><tr><td width=\"50%\">";
$content .="<img src=\"images/yenidosyalar.gif\" border=0></td><td width=\"50%\"><img src=\"images/populerdosyalar.gif\" border=0></td></tr><tr><td width=\"50%\">";
$result = $db->sql_query("select lid, title from ".$prefix."_downloads_downloads order by date DESC limit 0,10");
while(list($lid, $title) = $db->sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", $title);
    $title3 = substr($title2,0,18);
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp;<a href=\"$nukeurl/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\" title=\"$title2\">$title3..</a><br>";
}
mysql_free_result($result);


$content .="</td><td width=\"50%\">";
$result = $db->sql_query("select lid, title from ".$prefix."_downloads_downloads order by hits DESC limit 0,10");
while(list($lid, $title) = $db->sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", $title);
    $title3 = substr($title2,0,18);
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp;<a href=\"$nukeurl/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\" title=\"$title2\">$title3..</a><br>";
}
mysql_free_result($result);

$content.="</td></tr></table></font>";

$blockfiletitle = "Dosyalar";

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-28, 09:28:59    Mesaj konusu: Forum Arası Reklamlar


Başa dön
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-13, 13:41:46    Mesaj konusu: Alıntıyla Cevap Gönder

güncel.Ben biraz düzenlemeye calistim ama sonuc alamadim.hangi bolumlerin nasil degismesi lazim bu konuda yardimci olurmusunuz?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-29, 14:42:49    Mesaj konusu: Alıntıyla Cevap Gönder

Bu module yabanci sitelerdede duzenlenmis guzel bir blok bulamadim.bu konuda blok yazmada iyi olan arkadaslar nukec kullananlara bir kiyakta bulunurlarsa sevinirim.cunku orjinal blogu cok bicimsiz :)
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-29, 15:05:18    Mesaj konusu: Alıntıyla Cevap Gönder

linkler de sorun varmis ben blok kodlarini yazayim
juglanin :
orjinal bloklar bunlar
Kod:
?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-NukeC30Latest.php", $_SERVER['script_NAME'])) {
    Header("Location: index.php");
    die();
}

global $dbi, $user_prefix;
/** Block Settings **/
$nukecprefix = "nukec30";
$NumberAdsBlock = 5;
$BlockTitleBgColor = "#9CC3F8";
$BlockContentBgColor = "#F7FAF3";
$Chars2Break = 150;

/** Block Settings **/


$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);


$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by dateposted DESC limit 0,".$NumberAdsBlock;

$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
   $content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
      $sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
      $resBlock = sql_query($sqlBlock,$dbi);

      list($submitter_username) = sql_fetch_row($resBlock,$dbi);
      $content .= "<TR><TD>";
      $content .= "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\">";
      $content .= "<TR><TD bgcolor=\"$BlockTitleBgColor\" height=\"15\"><b>".$title."</b></td></tr>";
      $content .= "<TR ><TD valign=\"top\" bgcolor=\"$BlockContentBgColor\">";
      if ($imageads != "") {
         $imageadsexploded = explode(".",$imageads);
         $imageads_thumb = $imageadsexploded[0]."_thumb.".$imageadsexploded[1];
         $fileLocation = "modules/NukeC30/imageads/$imageads_thumb";
         if (file_exists($fileLocation)) {

         $ImgSizeBlock = getimagesize($fileLocation);
         $ImgwidthB = $ImgSizeBlock[0];
         $ImgheightB = $ImgSizeBlock[1];
         if ($ImgwidthB > 75) {
            $new_wp     = (100 * 75) / $ImgwidthB;
            $new_height = ($ImgheightB * $new_wp) / 100;
         } else {
            $new_wp = $ImgwidthB;
            $new_height = $ImgheightB;
         }

         $content .= "<img alt=\"$title\" src=\"modules/NukeC30/imageads/$imageads_thumb\" width=\"$new_wp\" height=\"$new_height\" align=\"left\">";
         }
      }
      $content .= "By <b>$submitter_username</b><BR>";
      if (($valuepriceB != "") and ($valuepriceB != 0)) {
         $resultcurrB = sql_query("select curr from ".$nukecprefix."_ads_currency where no='$currencycodeB'",$dbi);
         list($currencynameB) = sql_fetch_row($resultcurrB,$dbi);
         $content .= $currencynameB." ".number_format($valuepriceB,2)."<BR>";
      }
      $its_url = "<a href=\"modules.php?name=NukeC30&op=ViewDetail&id_ads=".$id_ads."\">Details</a>";
      $ads_descBroke = BreakQuoteatLatest ($ads_descB, $Chars2Break, $its_url);


      $content .= "$ads_descBroke</td>";
      $content .= "</tr>";

      $content .= "</table>";

   }
   $content .= "<TR><TD align=\"right\"><a href=\"modules.php?name=NukeC30\">More ads like this &raquo;&raquo;</a></td></tr>";
   $content .= "</table><BR>";
   sql_free_result($resultlatest);
} else {
   $content = "No Ads submitted yet";
}

function BreakQuoteatLatest ($string_to_break, $CharsLimit, $its_url) {
   $Chars_LIMIT = $CharsLimit;
   if(strlen($string_to_break) >  $Chars_LIMIT) {
      $string = substr($string_to_break,0,$Chars_LIMIT-1);
      if($string != " ") {
         $last_space = strrpos($string, " ");
         $string = substr($string_to_break,0,$last_space);
         $QuoteReturn = $string."...";
      } else {
         $QuoteReturn = $string."...";
      }
      $QuoteReturn .= "<BR>$its_url";
   } else {
      $QuoteReturn = $string_to_break;
   }
   return $QuoteReturn;
}

?>



Kod:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-NukeC30Most.php", $_SERVER['script_NAME'])) {
    Header("Location: index.php");
    die();
}

global $dbi, $user_prefix;
/** Block Settings **/
$nukecprefix = "nukec30";
$NumberAdsBlock = 5;
$BlockTitleBgColor = "#9CC3F8";
$BlockContentBgColor = "#F7FAF3";
$Chars2Break = 150;

/** Block Settings **/


$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);


$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by hits DESC limit 0,".$NumberAdsBlock;

$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
   $content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
      $sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
      $resBlock = sql_query($sqlBlock,$dbi);

      list($submitter_username) = sql_fetch_row($resBlock,$dbi);
      $content .= "<TR><TD>";
      $content .= "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\">";
      $content .= "<TR><TD bgcolor=\"$BlockTitleBgColor\" height=\"15\"><b>".$title."</b></td></tr>";
      $content .= "<TR ><TD valign=\"top\" bgcolor=\"$BlockContentBgColor\">";
      if ($imageads != "") {
         $imageadsexploded = explode(".",$imageads);
         $imageads_thumb = $imageadsexploded[0]."_thumb.".$imageadsexploded[1];
         $fileLocation = "modules/NukeC30/imageads/$imageads_thumb";
         if (file_exists($fileLocation)) {

         $ImgSizeBlock = getimagesize($fileLocation);
         $ImgwidthB = $ImgSizeBlock[0];
         $ImgheightB = $ImgSizeBlock[1];
         if ($ImgwidthB > 75) {
            $new_wp     = (100 * 75) / $ImgwidthB;
            $new_height = ($ImgheightB * $new_wp) / 100;
         } else {
            $new_wp = $ImgwidthB;
            $new_height = $ImgheightB;
         }

         $content .= "<img alt=\"$title\" src=\"modules/NukeC30/imageads/$imageads_thumb\" width=\"$new_wp\" height=\"$new_height\" align=\"left\">";
         }
      }
      $content .= "By <b>$submitter_username</b><BR>";
      if (($valuepriceB != "") and ($valuepriceB != 0)) {
         $resultcurrB = sql_query("select curr from ".$nukecprefix."_ads_currency where no='$currencycodeB'",$dbi);
         list($currencynameB) = sql_fetch_row($resultcurrB,$dbi);
         $content .= $currencynameB." ".number_format($valuepriceB,2)."<BR>";
      }
      $its_url = "<a href=\"modules.php?name=NukeC30&op=ViewDetail&id_ads=$id_ads\">details &raquo;&raquo; </a>";
      $ads_descBroke = BreakQuoteatMost ($ads_descB, $Chars2Break, $its_url);


      $content .= "$ads_descBroke<BR>";
      $content .= "</td>";
      $content .= "</tr>";

      $content .= "</table>";

   }
   $content .= "<TR><TD align=\"right\"><a href=\"modules.php?name=NukeC30\">More ads like this &raquo;&raquo;</a></td></tr>";
   $content .= "</table><BR>";
   sql_free_result($resultlatest);
} else {
   $content = "No Ads submitted yet";
}

function BreakQuoteatMost ($string_to_break, $CharsLimit, $its_url) {
   $Chars_LIMIT = $CharsLimit;
   if(strlen($string_to_break) >  $Chars_LIMIT) {
      $string = substr($string_to_break,0,$Chars_LIMIT-1);
      if($string != " ") {
         $last_space = strrpos($string, " ");
         $string = substr($string_to_break,0,$last_space);
         $QuoteReturn = $string."...";
      } else {
         $QuoteReturn = $string."...";
      }
      $QuoteReturn .= "<BR>$its_url";
   } else {
      $QuoteReturn = $string_to_break;
   }
   return $QuoteReturn;
}

?>



asagidki bu bloga nasil ceviririm
Kod:
<?php



if (eregi("block-Dosyalar_Orta.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

global $prefix, $db, $nukeurl;
$content = "<font class=\"content\">";

$content .="<table border=0 width=\"100%\"><tr><td width=\"50%\">";
$content .="<img src=\"images/yenidosyalar.gif\" border=0></td><td width=\"50%\"><img src=\"images/populerdosyalar.gif\" border=0></td></tr><tr><td width=\"50%\">";
$result = $db->sql_query("select lid, title from ".$prefix."_downloads_downloads order by date DESC limit 0,10");
while(list($lid, $title) = $db->sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", $title);
    $title3 = substr($title2,0,18);
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp;<a href=\"$nukeurl/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\" title=\"$title2\">$title3..</a><br>";
}
mysql_free_result($result);


$content .="</td><td width=\"50%\">";
$result = $db->sql_query("select lid, title from ".$prefix."_downloads_downloads order by hits DESC limit 0,10");
while(list($lid, $title) = $db->sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", $title);
    $title3 = substr($title2,0,18);
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp;<a href=\"$nukeurl/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\" title=\"$title2\">$title3..</a><br>";
}
mysql_free_result($result);

$content.="</td></tr></table></font>";

$blockfiletitle = "Dosyalar";

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2007-04-29, 15:21:53    Mesaj konusu: Re: blok duzenleme [nukec] Alıntıyla Cevap Gönder

Netopsiyonda olduğum belli olsun di mi Very Happy Very Happy Açıklamalı olarak hazırladım. Bu arada denemedim kafama göre yazdım geçtim.... Dener sonucu yazarsın...

Kod:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-NukeC30Latest.php", $_SERVER['script_NAME'])) {
    Header("Location: index.php");
    die();
}

$content ="<table border=0 cellpadding=1 cellspacing=0 width=100%>"; //Önce tablo oluşturalım.
$content .="<tr>";//Satır oluşturalım.
$content .="<td width=50%>";//ilk sütunu oluşturalım.

        /////BURASI ORTAK
      //////////////////////////////////////////
global $dbi, $user_prefix;
$nukecprefix = "nukec30";
$NumberAdsBlock = 5;
$BlockTitleBgColor = "#9CC3F8";
$BlockContentBgColor = "#F7FAF3";
$Chars2Break = 150;



$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);
        /////BURASI ORTAK
      //////////////////////////////////////////
$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by dateposted DESC limit 0,".$NumberAdsBlock;

$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
 //  $content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";     ///Burası sorun çıkaracak....
 $content .= "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";   //sorunu düzelttik
   while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
      $sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
      $resBlock = sql_query($sqlBlock,$dbi);

      list($submitter_username) = sql_fetch_row($resBlock,$dbi);
      $content .= "<TR><TD>";
      $content .= "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\">";
      $content .= "<TR><TD bgcolor=\"$BlockTitleBgColor\" height=\"15\"><b>".$title."</b></td></tr>";
      $content .= "<TR ><TD valign=\"top\" bgcolor=\"$BlockContentBgColor\">";
      if ($imageads != "") {
         $imageadsexploded = explode(".",$imageads);
         $imageads_thumb = $imageadsexploded[0]."_thumb.".$imageadsexploded[1];
         $fileLocation = "modules/NukeC30/imageads/$imageads_thumb";
         if (file_exists($fileLocation)) {

         $ImgSizeBlock = getimagesize($fileLocation);
         $ImgwidthB = $ImgSizeBlock[0];
         $ImgheightB = $ImgSizeBlock[1];
         if ($ImgwidthB > 75) {
            $new_wp     = (100 * 75) / $ImgwidthB;
            $new_height = ($ImgheightB * $new_wp) / 100;
         } else {
            $new_wp = $ImgwidthB;
            $new_height = $ImgheightB;
         }

         $content .= "<img alt=\"$title\" src=\"modules/NukeC30/imageads/$imageads_thumb\" width=\"$new_wp\" height=\"$new_height\" align=\"left\">";
         }
      }
      $content .= "By <b>$submitter_username</b><BR>";
      if (($valuepriceB != "") and ($valuepriceB != 0)) {
         $resultcurrB = sql_query("select curr from ".$nukecprefix."_ads_currency where no='$currencycodeB'",$dbi);
         list($currencynameB) = sql_fetch_row($resultcurrB,$dbi);
         $content .= $currencynameB." ".number_format($valuepriceB,2)."<BR>";
      }
      $its_url = "<a href=\"modules.php?name=NukeC30&op=ViewDetail&id_ads=".$id_ads."\">Details</a>";
      $ads_descBroke = BreakQuoteatLatest ($ads_descB, $Chars2Break, $its_url);


      $content .= "$ads_descBroke</td>";
      $content .= "</tr>";

      $content .= "</table>";

   }
   $content .= "<TR><TD align=\"right\"><a href=\"modules.php?name=NukeC30\">More ads like this &raquo;&raquo;</a></td></tr>";
   $content .= "</table><BR>";
   sql_free_result($resultlatest);
} else {
 //  $content = "No Ads submitted yet"; //Düzeltek....
 $content .= "No Ads submitted yet"; //Düzelttik....
}

function BreakQuoteatLatest ($string_to_break, $CharsLimit, $its_url) {
   $Chars_LIMIT = $CharsLimit;
   if(strlen($string_to_break) >  $Chars_LIMIT) {
      $string = substr($string_to_break,0,$Chars_LIMIT-1);
      if($string != " ") {
         $last_space = strrpos($string, " ");
         $string = substr($string_to_break,0,$last_space);
         $QuoteReturn = $string."...";
      } else {
         $QuoteReturn = $string."...";
      }
      $QuoteReturn .= "<BR>$its_url";
   } else {
      $QuoteReturn = $string_to_break;
   }
   return $QuoteReturn;
}

$content .="</td><td width=50%>";//İlk sütunu bitirelim. İkinci sutunu açalım.


$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by hits DESC limit 0,".$NumberAdsBlock;

$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
 //  $content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";   //Yine aynı sorun olacak.
  $content .= "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";     //Düzelttik....
   while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
      $sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
      $resBlock = sql_query($sqlBlock,$dbi);

      list($submitter_username) = sql_fetch_row($resBlock,$dbi);
      $content .= "<TR><TD>";
      $content .= "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\">";
      $content .= "<TR><TD bgcolor=\"$BlockTitleBgColor\" height=\"15\"><b>".$title."</b></td></tr>";
      $content .= "<TR ><TD valign=\"top\" bgcolor=\"$BlockContentBgColor\">";
      if ($imageads != "") {
         $imageadsexploded = explode(".",$imageads);
         $imageads_thumb = $imageadsexploded[0]."_thumb.".$imageadsexploded[1];
         $fileLocation = "modules/NukeC30/imageads/$imageads_thumb";
         if (file_exists($fileLocation)) {

         $ImgSizeBlock = getimagesize($fileLocation);
         $ImgwidthB = $ImgSizeBlock[0];
         $ImgheightB = $ImgSizeBlock[1];
         if ($ImgwidthB > 75) {
            $new_wp     = (100 * 75) / $ImgwidthB;
            $new_height = ($ImgheightB * $new_wp) / 100;
         } else {
            $new_wp = $ImgwidthB;
            $new_height = $ImgheightB;
         }

         $content .= "<img alt=\"$title\" src=\"modules/NukeC30/imageads/$imageads_thumb\" width=\"$new_wp\" height=\"$new_height\" align=\"left\">";
         }
      }
      $content .= "By <b>$submitter_username</b><BR>";
      if (($valuepriceB != "") and ($valuepriceB != 0)) {
         $resultcurrB = sql_query("select curr from ".$nukecprefix."_ads_currency where no='$currencycodeB'",$dbi);
         list($currencynameB) = sql_fetch_row($resultcurrB,$dbi);
         $content .= $currencynameB." ".number_format($valuepriceB,2)."<BR>";
      }
      $its_url = "<a href=\"modules.php?name=NukeC30&op=ViewDetail&id_ads=$id_ads\">details &raquo;&raquo; </a>";
      $ads_descBroke = BreakQuoteatMost ($ads_descB, $Chars2Break, $its_url);


      $content .= "$ads_descBroke<BR>";
      $content .= "</td>";
      $content .= "</tr>";

      $content .= "</table>";

   }
   $content .= "<TR><TD align=\"right\"><a href=\"modules.php?name=NukeC30\">More ads like this &raquo;&raquo;</a></td></tr>";
   $content .= "</table><BR>";
   sql_free_result($resultlatest);
} else {
 //  $content = "No Ads submitted yet";//Düzeltek.....
 $content .= "No Ads submitted yet";//Düzelttik....
}

function BreakQuoteatMost ($string_to_break, $CharsLimit, $its_url) {
   $Chars_LIMIT = $CharsLimit;
   if(strlen($string_to_break) >  $Chars_LIMIT) {
      $string = substr($string_to_break,0,$Chars_LIMIT-1);
      if($string != " ") {
         $last_space = strrpos($string, " ");
         $string = substr($string_to_break,0,$last_space);
         $QuoteReturn = $string."...";
      } else {
         $QuoteReturn = $string."...";
      }
      $QuoteReturn .= "<BR>$its_url";
   } else {
      $QuoteReturn = $string_to_break;
   }
   return $QuoteReturn;
}

$content .="</td></tr></table>"; //Bütün işlemlerimiz bitti. Sütunları satırları tabloları kapatalım.....

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-29, 18:26:38    Mesaj konusu: Re: blok duzenleme [nukec] Alıntıyla Cevap Gönder

Kesinlikle çalıştı ya 2 aydır aradım bulamamıştım.cok tesekkurler aliosman bey.efsane geri dondu :) sadece populer ilan ve son ilanlar resimli yazilari yok bunuda eklemek mumkunmu yani ustkisimda populer ve son ilanlar seklinde resimli yazi olsa.
buton resimleri benden buda eklenirse dosyalar bolumune ekleriz.

http://img406.imageshack.us/img406/4828/populerog5.png
http://img238.imageshack.us/my.php?image=adszrw5.png
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-30, 12:34:57    Mesaj konusu: Alıntıyla Cevap Gönder

bende son ve populer ilanlar resim alanlarini ekleyip ufak duzeltmeler yaptim dosyalar olumunede ekliyorum.tekrar tesekkurler aliosman bey
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
yilakkar
Mesaj: 1+
Mesaj: 1+





Kayıt: May 15, 2007
Mesajlar: 2

MesajTarih: 2007-05-15, 14:15:27    Mesaj konusu: Alıntıyla Cevap Gönder

selam arkadaşlar teknolojide geri kalmış benim gibi arkadaşlar için *YASAK KELİME** blog YARDIMı verin lütfen şehrimizi tanıtımını yaptığımız bu site için ziyaretçilerin bir bloğu olsun istedik bir kaç yere sorduk dudak uçuklatan fiyatlar çıktı önümüze malum biz öğrenciyiz ve acemiyiz diye yaptığımız sitenin iki katı kadar para vermek istemiyoruz burası bir paylaşım platformu diye biliyoruz lütfen bilgilerinizi bizlerle paylaşın konuyu yalış bir yerde açmışsam üzür dilerim. *YASAK KELİME** mesajlarınızı bekliyoruzzz
yilakkar@hotmail.com
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-28, 09:28:59    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok Blok yapiminda nasil include yapabili... Diverman Php Nuke Blocklar 3 2010-07-12, 21:30:07 Son Mesajı Görüntüle
Yeni mesaj yok Manşet Blok ahududu Php Nuke Blocklar 2 2010-06-26, 17:49:59 Son Mesajı Görüntüle
Yeni mesaj yok Akordiyon Blok hatası affedilmez Php Nuke Blocklar 2 2010-06-21, 17:39:23 Son Mesajı Görüntüle
Yeni mesaj yok Video Blok Yardım Lütfen... VazgectiM Php Nuke Modülleri 2 2010-06-06, 22:56:24 Son Mesajı Görüntüle
Yeni mesaj yok Blok nasıl eklenir Yardım lütfen:( mymusti82 Php Nuke Blocklar 7 2010-06-02, 19:29:03 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright