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: 472
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25272 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16376 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(36697 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(20757 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(13933 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(17681 okuma, 15 yanıt)
 üye aktivasyon..
(10593 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6241 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6516 okuma, 2 yanıt)
 Resimli RSS..
(23118 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(11025 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6622 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8237 okuma, 4 yanıt)
 block genişliği..
(5677 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14305 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7269 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9389 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10434 okuma, 8 yanıt)
 ethai1 3..
(13096 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(69571 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(37556 okuma, 36 yanıt)
 tek modul için sağ ve sol..
(11335 okuma, 8 yanıt)
 Php-nuke8.0 başlıklarda t..
(10530 okuma, 8 yanıt)
 Phpden iyi anlayan..
(5400 okuma, 1 yanıt)
 Php nuke 7.6 - 3.1 patch ..
(72890 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29390 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11073 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12327 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(5947 okuma, 2 yanıt)
 Makale modulu..
(8542 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(84874 okuma, 121 yanıt)
 title değiştirme..
(10246 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(10003 okuma, 6 yanıt)
 Php Nuke 8.1..
(4331 okuma, 0 yanıt)
 merhaba..
(10227 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13425 okuma, 13 yanıt)
 admin panelinde Access De..
(6358 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26245 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(17033 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8681 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6609 okuma, 2 yanıt)
 coppermine hata..
(10645 okuma, 8 yanıt)
 içerik tanıtımı..
(6254 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7124 okuma, 3 yanıt)
 google keywords..
(8927 okuma, 6 yanıt)
 8.0'da html sorunu..
(5477 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(53817 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(9982 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6330 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10437 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - yapılabilirmi?imkansızmı?
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


yapılabilirmi?imkansızmı?

 
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-16, 14:29:08    Mesaj konusu: yapılabilirmi?imkansızmı? Alıntıyla Cevap Gönder

juglanin :
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-05-19, 16:06:09    Mesaj konusu: Forum Arası Reklamlar


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





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-17, 12:09:34    Mesaj konusu: Re: yapılabilirmi?imkansızmı? Alıntıyla Cevap Gönder

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
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

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

Bu bloklarda hangi alanlari degismem gerkli bu konuda yardimci olursaniz sevinirim arkadaslar
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Style_53
Mesaj: 300+
Mesaj: 300+





Kayıt: Nov 10, 2006
Mesajlar: 441
Konum: Rize

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

Eğer Blokları Birleştirmek İStiyorsan nsn4 center Blok var onu Kurabilirisn..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder MSN Messenger
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-18, 16:07:37    Mesaj konusu: Re: yapılabilirmi?imkansızmı? Alıntıyla Cevap Gönder

aynı module bagli 2 bloguda birlestirirmi?popuper ve son ilanlar loklarini birlestirirmi?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
PVmaster
Mesaj: 200+
Mesaj: 200+





Kayıt: May 25, 2006
Mesajlar: 208
Konum: PV Ankara

MesajTarih: 2007-04-18, 21:50:03    Mesaj konusu: Alıntıyla Cevap Gönder

Birleşir..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
seyranli
Mesaj: 1000+
Mesaj: 1000+





Kayıt: May 16, 2005
Mesajlar: 3511
Konum: oradan

MesajTarih: 2007-04-19, 01:37:05    Mesaj konusu: Alıntıyla Cevap Gönder

Kod:
<?
if (eregi("block-Dosyalar_Orta.php", $_SERVER['PHP_SELF'])) {
    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]);


$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%\">";

$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;
}

$content .="</td><td width=\"50%\">";

$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;
}

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

$blockfiletitle = "İlanlar";

?>


böyle çalışması lazım
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-19, 09:21:31    Mesaj konusu: Re: yapılabilirmi?imkansızmı? Alıntıyla Cevap Gönder

teskkurler seyranlı ama olmadı
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-05-19, 16:06:09    Mesaj konusu: Forum Arası Reklamlar


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





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2007-04-19, 12:15:16    Mesaj konusu: Alıntıyla Cevap Gönder

if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
bolumu yamali siteler ici kullanilir diye biliyorum.farklimidir bu bolum yamaya gore degisirmi?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Ö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 forum orta bloğunda kullanıcı renkler... karaca25 Php Nuke Blocklar 24 2009-09-16, 01:01:55 Son Mesajı Görüntüle
Yeni mesaj yok Kurban bayramına özel bir açılış sayf... karaca25 İnternet Üzerine 0 2008-12-05, 15:56:43 Son Mesajı Görüntüle
Yeni mesaj yok Logout yapılabilirmi ? bigSty Php-Nuke 13 2005-09-11, 22:34:06 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