Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1162
??? Sitem deki Haberleri ..(25366 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16448 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36858 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20859 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14013 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17740 okuma, 15 yanıt) üye aktivasyon ..(10631 okuma, 8 yanıt) Facebook tarzı altbar... ..(6258 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6532 okuma, 2 yanıt) Resimli RSS ..(23218 okuma, 25 yanıt) Onay linkini kaldirmak ..(11066 okuma, 8 yanıt) Yardım :( Site açılırken ..(6634 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8259 okuma, 4 yanıt) block genişliği ..(5701 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14374 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7298 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9419 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10483 okuma, 8 yanıt) ethai1 3 ..(13143 okuma, 10 yanıt) Yeni PEHASPESEO ..(69807 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37712 okuma, 36 yanıt) tek modul için sağ ve sol ..(11396 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10574 okuma, 8 yanıt) Phpden iyi anlayan ..(5413 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73182 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29483 okuma, 40 yanıt) Toplu üyelik silme? ..(11110 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12369 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5962 okuma, 2 yanıt) Makale modulu ..(8575 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(85183 okuma, 121 yanıt) title değiştirme ..(10290 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10024 okuma, 6 yanıt) Php Nuke 8.1 ..(4340 okuma, 0 yanıt) merhaba ..(10265 okuma, 9 yanıt) Anasayfa için boş modül o ..(13482 okuma, 13 yanıt) admin panelinde Access De ..(6377 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26364 okuma, 25 yanıt) Nuke Tema yapilisi ..(17096 okuma, 16 yanıt) Mavisce-net temasina bann ..(8714 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6629 okuma, 2 yanıt) coppermine hata ..(10672 okuma, 8 yanıt) içerik tanıtımı ..(6270 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7155 okuma, 3 yanıt) google keywords ..(8953 okuma, 6 yanıt) 8.0'da html sorunu ..(5492 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53990 okuma, 76 yanıt) üye olunurken gereksiz is ..(10005 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6348 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10484 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - yapılabilirmi?imkansızmı?
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-16, 14:29:08 Mesaj konusu: yapılabilirmi?imkansızmı?
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> <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> <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
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-02, 03:18:31 Mesaj konusu: Forum Arası Reklamlar
Başa dön
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-17, 12:09:34 Mesaj konusu: Re: yapılabilirmi?imkansızmı?
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 »»</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 »» </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 »»</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> <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> <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
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-18, 13:29:33 Mesaj konusu:
Bu bloklarda hangi alanlari degismem gerkli bu konuda yardimci olursaniz sevinirim arkadaslar
Başa dön
Style_53 Mesaj: 300+
Kayıt: Nov 10, 2006 Mesajlar: 441 Konum: Rize
Tarih: 2007-04-18, 15:45:24 Mesaj konusu:
Eğer Blokları Birleştirmek İStiyorsan nsn4 center Blok var onu Kurabilirisn..
Başa dön
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-18, 16:07:37 Mesaj konusu: Re: yapılabilirmi?imkansızmı?
aynı module bagli 2 bloguda birlestirirmi?popuper ve son ilanlar loklarini birlestirirmi?
Başa dön
PVmaster Mesaj: 200+
Kayıt: May 25, 2006 Mesajlar: 208 Konum: PV Ankara
Tarih: 2007-04-18, 21:50:03 Mesaj konusu:
Birleşir..
Başa dön
seyranli Mesaj: 1000+
Kayıt: May 16, 2005 Mesajlar: 3511 Konum: oradan
Tarih: 2007-04-19, 01:37:05 Mesaj konusu:
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 »»</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 »» </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 »»</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
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-19, 09:21:31 Mesaj konusu: Re: yapılabilirmi?imkansızmı?
teskkurler seyranlı ama olmadı
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-02, 03:18:31 Mesaj konusu: Forum Arası Reklamlar
Başa dön
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-04-19, 12:15:16 Mesaj konusu:
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
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