Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
636
??? Sitem deki Haberleri ..(25662 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16613 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(37396 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(21076 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14213 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(18011 okuma, 15 yanıt) üye aktivasyon ..(10739 okuma, 8 yanıt) Facebook tarzı altbar... ..(6327 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6602 okuma, 2 yanıt) Resimli RSS ..(23450 okuma, 25 yanıt) Onay linkini kaldirmak ..(11171 okuma, 8 yanıt) Yardım :( Site açılırken ..(6718 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8387 okuma, 4 yanıt) block genişliği ..(5758 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14550 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7383 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9509 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10585 okuma, 8 yanıt) ethai1 3 ..(13301 okuma, 10 yanıt) Yeni PEHASPESEO ..(70763 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(38138 okuma, 36 yanıt) tek modul için sağ ve sol ..(11503 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 ..(74161 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29926 okuma, 40 yanıt) Toplu üyelik silme? ..(11225 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12520 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 ..(86413 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 ..(10363 okuma, 9 yanıt) Anasayfa için boş modül o ..(13668 okuma, 13 yanıt) admin panelinde Access De ..(6471 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26669 okuma, 25 yanıt) Nuke Tema yapilisi ..(17248 okuma, 16 yanıt) Mavisce-net temasina bann ..(8800 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6686 okuma, 2 yanıt) coppermine hata ..(10789 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 ..(54874 okuma, 76 yanıt) üye olunurken gereksiz is ..(10122 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 - yanit ve gosterim
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-09-09, 18:29:55 Mesaj konusu: yanit ve gosterim
merhaba orjina forum blogum bu
Kod:
<?php
/************************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2001 by Francisco Burzi (fburzi@ncc.org.ve) */
/* http://phpnuke.org */
/* */
/* block-phpBB.php version 1.0 Last Update: 21.08.2002 */
/* */
/* by Selim "MaXCoDeR" Þumlu (maxcoder@softhome.net) ICQ#: 19648424 */
/* http://www.turknuke.com */
/* */
/* Based on the block-phpBB_Forums.php by Mat Verdonschot (mverdonschot@lycos.nl) */
/* */
/* 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-Forumlar.php",$PHP_SELF ) )
{
Header("Location: index.php");
die();
}
global $prefix, $dbi, $sitename;
$Last_x = 12; // Shows last 5 topics
$Amount_Of_Topic_Views = 0;
$result = sql_query( "SELECT topic_views FROM ".$prefix."_bbtopics", $dbi );
while( list( $topic_views ) = sql_fetch_row( $result, $dbi ) )
{
$Amount_Of_Topic_Views = $Amount_Of_Topic_Views + $topic_views;
}
$Amount_Of_Topic_Replies = 0;
$result = sql_query( "SELECT topic_replies FROM ".$prefix."_bbtopics", $dbi );
while( list( $topic_replies ) = sql_fetch_row( $result, $dbi ) )
{
$Amount_Of_Topic_Replies = $Amount_Of_Topic_Replies + $topic_replies;
}
$Topic_Buffer = "";
$result1 = sql_query( "SELECT topic_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC LIMIT $Last_x", $dbi );
while( list( $topic_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies ) = sql_fetch_row( $result1, $dbi ) )
{
$result2 = sql_query( "SELECT topic_id, poster_id, FROM_UNIXTIME( post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbposts where post_id = '$topic_last_post_id'", $dbi );
list( $topic_id, $poster_id, $post_time ) = sql_fetch_row( $result2, $dbi );
$TopicImage = "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\">";
$TopicTitleShow = "<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\">$topic_title</a>";
$Topic_Buffer .= "$TopicImage $TopicTitleShow<br><small>(<b>$topic_views</b> gösterim, <b>$topic_replies</b> yanıt)</small><br>";
}
$content = "$Topic_Buffer";
?>
ve bunu editlenmesiyle forumdan bir bolumu anasayafada blok olarak yayinliyoruz.
Kod:
<?php
global $prefix, $db, $sitename;
$forum=22;
$result = $db->sql_query("SELECT topic_id, topic_title FROM ".$prefix."_bbtopics where forum_id='".$forum."' ORDER BY topic_time DESC LIMIT 10");
$content = "<br>";
while ($row = $db->sql_fetchrow($result)) {
$topic_id = intval($row['topic_id']);
$topic_title = $row['topic_title'];
$TopicImage = "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\">";
$TopicTitleShow = "<a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\"STYLE=\"text-decoration: none\">$topic_title</a>";
$Topic_Buffer .= "$TopicImage $TopicTitleShow<br><small>(<b>$topic_views</b> gösterim, <b>$topic_replies</b> yanıt)</small><br>";
}
$content = "$Topic_Buffer";
?>
gosterim veyanit kisminda sayilar cikmiyor editlerken nerede yanlis yapiyorum yardim lıtfen.
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-29, 02:44:24 Mesaj konusu: Forum Arası Reklamlar
Başa dön
juglanin Mesaj: 500+
Kayıt: Dec 09, 2005 Mesajlar: 880
Tarih: 2007-09-10, 12:09:48 Mesaj konusu:
block calisiyor fakat yanit ve gosterim sayilari cikmiyor.nereyi duznelemk lazim?
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