Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
382
??? Sitem deki Haberleri ..(25224 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16367 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36670 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20748 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13926 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17643 okuma, 15 yanıt) üye aktivasyon ..(10586 okuma, 8 yanıt) Facebook tarzı altbar... ..(6233 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6512 okuma, 2 yanıt) Resimli RSS ..(23105 okuma, 25 yanıt) Onay linkini kaldirmak ..(11018 okuma, 8 yanıt) Yardım :( Site açılırken ..(6613 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8228 okuma, 4 yanıt) block genişliği ..(5672 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14284 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7263 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9382 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10426 okuma, 8 yanıt) ethai1 3 ..(13084 okuma, 10 yanıt) Yeni PEHASPESEO ..(69479 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37538 okuma, 36 yanıt) tek modul için sağ ve sol ..(11330 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10521 okuma, 8 yanıt) Phpden iyi anlayan ..(5397 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72837 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29366 okuma, 40 yanıt) Toplu üyelik silme? ..(11059 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12318 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5943 okuma, 2 yanıt) Makale modulu ..(8535 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84767 okuma, 121 yanıt) title değiştirme ..(10238 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(9995 okuma, 6 yanıt) Php Nuke 8.1 ..(4326 okuma, 0 yanıt) merhaba ..(10220 okuma, 9 yanıt) Anasayfa için boş modül o ..(13410 okuma, 13 yanıt) admin panelinde Access De ..(6355 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26221 okuma, 25 yanıt) Nuke Tema yapilisi ..(17016 okuma, 16 yanıt) Mavisce-net temasina bann ..(8677 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6603 okuma, 2 yanıt) coppermine hata ..(10636 okuma, 8 yanıt) içerik tanıtımı ..(6251 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7115 okuma, 3 yanıt) google keywords ..(8914 okuma, 6 yanıt) 8.0'da html sorunu ..(5472 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53775 okuma, 76 yanıt) üye olunurken gereksiz is ..(9972 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6320 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10425 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Blok içerigi alamiyor
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
dersim Mesaj: 50+
Kayıt: Jan 11, 2006 Mesajlar: 55
Tarih: 2007-09-16, 17:41:43 Mesaj konusu: Blok içerigi alamiyor
Arkadaşlar merhaba şiir modülünün bir blokunu yaptim ama içerigi almiyor kodlari veriyorum bakarsaniz sevinirim.şiir modulü şuan netopsiyonda yayinlanan modül.
Kod:
<?php
/************************************************************************/
/* Advanced Downloads Block */
/* =========================== */
/* */
/* This is basically just an edit of the original block by Francisco. */
/* Even though this is heavly edited, I think he deserves credit, so: */
/* */
/* 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. */
/************************************************************************/
/* */
/* Copyright © 2002 by Michael Bacoz */
/* http://www.fatal-instinct.com */
/* */
/* For more information read the readme.txt file in this package. */
/* */
/* Tweaked further for use with NukeStyles EDL V1.4 - V1.6 */
/* (c)Copyright Shawn Archer - NukeStyles.com */
/* */
/* And tweaked again to work with EDL V2. Now shows Data */
/* traffic amounts as well. */
/* (c)Copyright Chris Valk - Zamboozle.com */
/************************************************************************/
/************************/
/* Variables */
/************************/
$downloadstoshow = 30;
$usemarquee = 1;
$scrolldirection = "Up";
// New Setting
$image_color = "grey"; // Options include grey, black, blue
$most = "En Cok Izlenen Siirler";
$latest = "Yeni Eklenen Siirler";
$totalfiles = "Toplam Siir";
$totalcategories = "Toplam Sair";
$totaldownloads = "Toplam Izlenme";
$hitstext = "Toplam Izlenme";
/************************/
/* End Variables */
/************************/
// Make sure people don't try and access it directly
if (eregi("block-Advanced_Downloads.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi;
// Total Files
$result = sql_query("select * from ".$prefix."_siir", $dbi);
$files = sql_num_rows($result, $dbi);
// Total Categories
$result = sql_query("select * from ".$prefix."_siir", $dbi);
$cats = sql_num_rows($result, $dbi);
// Total Downloads
$result = sql_query("select lid, title,hits from ".$prefix."_siir", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $title);
$a = 1;
$total_hits = $total_hits + $hits;
$a++;
}
$result=sql_query("select * from $prefix"._siir."", $dbi);
$numrows = sql_num_rows($result, $dbi);
$result=sql_query("select sum(filesize*hits) as serv from $prefix"._siir."", $dbi);
while(list($serv) = sql_fetch_row($result, $dbi)) {
$served = $serv;
}
$gb = 1024*1024*1024;
$mb = 1024*1024;
$kb = 1024;
if ($served >= $gb){
$mysizes = sprintf ("%01.2f",$served/$gb) . " Gb ";
} elseif ($served >= $mb) {
$mysizes = sprintf ("%01.2f",$served/$mb) . " Mb ";
} elseif ($served >= $kb) {
$mysizes = sprintf ("%01.2f",$served/$kb) . " Kb ";
} else{
$mysizes = $served . " B ";
}
$content .= " $totalfiles: <b>$files</b><br> $totalcategories: <b>$cats</b><br> $totaldownloads: <b>$total_hits</b><br> Bilgi Gönderimi: <b>$mysizes</b><br><br>";
if ($usemarquee == 1) {
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"140\" ScrollAmount=\"2\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
}
// Featured Downloads
//$result_feat = sql_query( "select ns_dl_feature_one_name, ns_dl_feature_one_link, ns_dl_feature_two_name, ns_dl_feature_two_link, ns_dl_feature_three_name, ns_dl_feature_three_link, ns_dl_feature_four_name, ns_dl_feature_four_link from ".$prefix."_ns_downloads_featured", $dbi);
//list($ns_dl_feature_one_name, $ns_dl_feature_one_link, $ns_dl_feature_two_name, $ns_dl_feature_two_link, $ns_dl_feature_three_name, $ns_dl_feature_three_link, $ns_dl_feature_four_name, $ns_dl_feature_four_link) = sql_fetch_row($result_feat, $dbi);
//if (($ns_dl_feature_one_name != "") || ($ns_dl_feature_two_name != "") || ($ns_dl_feature_three_name != "") || ($ns_dl_feature_four_name != "")) {
//$content .= "<center><br><img src=\"images/$image_color/featured1.gif\"><br></center><br>";
//}
//if ($ns_dl_feature_one_name != "") {
//$content .= "<img src=\"images/icon_minipost.gif\"> <a href=\"$ns_dl_feature_one_link\">$ns_dl_feature_one_name</a><br>";
//}
//if ($ns_dl_feature_two_name != "") {
//$content .= "<img src=\"images/icon_minipost.gif\"> <a href=\"$ns_dl_feature_two_link\">$ns_dl_feature_two_name</a><br>";
//}
//if ($ns_dl_feature_three_name != "") {
//$content .= "<img src=\"images/icon_minipost.gif\"> <a href=\"$ns_dl_feature_three_link\">$ns_dl_feature_three_name</a><br>";
//}
//if ($ns_dl_feature_four_name != "") {
//$content .= "<img src=\"images/icon_minipost.gif\"> <a href=\"$ns_dl_feature_four_link\">$ns_dl_feature_four_name</a><br>";
//}
// Latest added
$content .= "<center><br><b>Yeni Eklenen Siirler</b><br></center><br>";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_siir order by date DESC limit 0,$downloadstoshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $title);
$content .= "<img src=\"images/icon_minipost.gif\"> $a: <a href=\"modules.php?name=Siir&op=showcontent&id=$id\">$title2</a> <b> [$hitstext: $hits]</b><br>";
$a++;
}
// Most downloaded
$content .= "<center><br><b>En Cok Izlenen Siirler</b><br></center><br>";
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_siir order by hits DESC limit 0,$downloadstoshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $title);
$content .= "<img src=\"images/icon_minipost.gif\"> $a: <a href=\"modules.php?name=Siir&op=showcontent&id=$id\">$title</a><br>($hits okuma)<br>";
$a++;
}
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-17, 08:18:12 Mesaj konusu: Forum Arası Reklamlar
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