Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
707
??? Sitem deki Haberleri ..(25551 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16539 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(37251 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(21017 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14154 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17927 okuma, 15 yanıt) üye aktivasyon ..(10692 okuma, 8 yanıt) Facebook tarzı altbar... ..(6301 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6576 okuma, 2 yanıt) Resimli RSS ..(23307 okuma, 25 yanıt) Onay linkini kaldirmak ..(11127 okuma, 8 yanıt) Yardım :( Site açılırken ..(6689 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8337 okuma, 4 yanıt) block genişliği ..(5739 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14490 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7344 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9473 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10549 okuma, 8 yanıt) ethai1 3 ..(13256 okuma, 10 yanıt) Yeni PEHASPESEO ..(70337 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37957 okuma, 36 yanıt) tek modul için sağ ve sol ..(11457 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10641 okuma, 8 yanıt) Phpden iyi anlayan ..(5474 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73749 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29807 okuma, 40 yanıt) Toplu üyelik silme? ..(11177 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12462 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5995 okuma, 2 yanıt) Makale modulu ..(8624 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(86010 okuma, 121 yanıt) title değiştirme ..(10405 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10081 okuma, 6 yanıt) Php Nuke 8.1 ..(4369 okuma, 0 yanıt) merhaba ..(10334 okuma, 9 yanıt) Anasayfa için boş modül o ..(13605 okuma, 13 yanıt) admin panelinde Access De ..(6443 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26549 okuma, 25 yanıt) Nuke Tema yapilisi ..(17186 okuma, 16 yanıt) Mavisce-net temasina bann ..(8772 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6663 okuma, 2 yanıt) coppermine hata ..(10758 okuma, 8 yanıt) içerik tanıtımı ..(6324 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7210 okuma, 3 yanıt) google keywords ..(9014 okuma, 6 yanıt) 8.0'da html sorunu ..(5524 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(54534 okuma, 76 yanıt) üye olunurken gereksiz is ..(10073 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6387 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10562 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-06-15, 00:23:27 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