Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
436
??? Sitem deki Haberleri ..(25248 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16375 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36693 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20756 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13933 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17674 okuma, 15 yanıt) üye aktivasyon ..(10591 okuma, 8 yanıt) Facebook tarzı altbar... ..(6239 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6515 okuma, 2 yanıt) Resimli RSS ..(23117 okuma, 25 yanıt) Onay linkini kaldirmak ..(11024 okuma, 8 yanıt) Yardım :( Site açılırken ..(6617 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8231 okuma, 4 yanıt) block genişliği ..(5676 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14298 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7268 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9387 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10432 okuma, 8 yanıt) ethai1 3 ..(13092 okuma, 10 yanıt) Yeni PEHASPESEO ..(69528 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37551 okuma, 36 yanıt) tek modul için sağ ve sol ..(11335 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10526 okuma, 8 yanıt) Phpden iyi anlayan ..(5400 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72861 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29386 okuma, 40 yanıt) Toplu üyelik silme? ..(11071 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12321 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5947 okuma, 2 yanıt) Makale modulu ..(8539 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84834 okuma, 121 yanıt) title değiştirme ..(10244 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10003 okuma, 6 yanıt) Php Nuke 8.1 ..(4331 okuma, 0 yanıt) merhaba ..(10226 okuma, 9 yanıt) Anasayfa için boş modül o ..(13419 okuma, 13 yanıt) admin panelinde Access De ..(6358 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26238 okuma, 25 yanıt) Nuke Tema yapilisi ..(17025 okuma, 16 yanıt) Mavisce-net temasina bann ..(8681 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6606 okuma, 2 yanıt) coppermine hata ..(10638 okuma, 8 yanıt) içerik tanıtımı ..(6253 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7121 okuma, 3 yanıt) google keywords ..(8923 okuma, 6 yanıt) 8.0'da html sorunu ..(5477 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53793 okuma, 76 yanıt) üye olunurken gereksiz is ..(9975 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6326 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10431 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Dijital Forum Orta Blok la ilgili YARDIM
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
ersagun Mesaj: 1+
Kayıt: Jan 18, 2005 Mesajlar: 32 Konum: Ankara
Tarih: 2008-02-25, 01:07:04 Mesaj konusu: Dijital Forum Orta Blok la ilgili YARDIM
Değerli arkadaşlar;
Genelde Forum ortabloklarında son cevap yazılan konular üstte bulunuyor. Bazı üyelerimiz de kendi isminin öncde bulunması için sürekli mesaj gönderiyor ve önemli olan diğer başlıklar kayboluyor. Bundan dolayı oluşturduğumuz her kategorideki son mesajları gösteren bir blok arayışına girdim. En güzel olanıda Dijitalseyir.net in hazırlamış olduğu forum orta bloğu. Ancak bu bloktada şu sıkıntı var. Blok son girilen mesajları değil, rastgele mesajları gösteriyor. Dolayısıyla kategoride yeterli mesaj yoksa aynı başlığı birden çok gösteriyor.
Öncelikle Bloku hazırlayan arkadaşıma çok teşekkür ederim. Kendisi Copyrigh ı silmeden istenen değişiklik yapılabilir demiş. Bende bunun üzerine şöyle bir değişiklik yapmak istedim ama henüz başaramadım.
Bu blokta seçilen her kategoriden rastgele başlıkları göstermesinde, gönderilen son 5 başlığı göstersin.
Bu konuda bilgisi olan arkadaşlar bana yardımcı oolurlarsa çok memnun olurum.
Blokun kodları aşağıdadır.
Kod:
<?php
##########################################################
##########################################################
## Değişen Forum Başlıkları Orta Block v.1 ##
## ##
## By Soundcraft http://www.dijitalseyir.net ##
## http://www.ilanrehberi.com ##
## soundcraft@nuketurk.com ##
## ##
## Soru ve Sorunlarınız için http://www.nuketurk.com ##
## ##
## Bu Blockun oluşumundaki yarıdımlarından dolayı ##
## Turan Üstadıma Teşekkür ederim. ##
##########################################################
##########################################################
## BLOCK ÜZERİNDE DEĞİŞİKLİK YAPABİLİRSİNİZ ##
## ANCAK © İBARESİNİ KALDIRAMAZSINIZ ##
##########################################################
##########################################################
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
function kisalt_sunu($str)
{
$maxlength = 27; // SATIRDAKİ KARAKTER MİKYARI
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)." ...";
else
return $str;
}
global $prefix, $db, $sitename;
################################### FORUM ID NUMARALARINI ########################
$forum_1 = 8; ###### HANGİ FORUMLARI BLOCKTA GÖSTERMEK ISTIYORSANIZ ############
$forum_2 = 9; #################### ONA GÖRE DEĞİŞTİRİN #########################
$forum_3 = 38; ##################################################################
$forum_4 = 43; ##################################################################
$forum_5 = 14; ##################################################################
$forum_6 = 44; ##################################################################
##################################################################################
$renk1 = '#f7f7f7'; // Tablo başlıklarında Mouse üzerinde iken ki arka plan rengi#
$renk2 = '#aabfda'; // Tablo başlıklarında ki Sabit arka plan rengi###############
##################################################################################
$content .= "<TABLE border=\"0\" cellpadding=\"1\" cellspacing=\"1\" class=\"forumline\" width=\"100%\"><TR><TD colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=8\"><b>DOSYALAR & YAZILIMLAR</b></a>";
$content .= "</TD><TD height=\"24\" colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=9\"><b>DONANIM BAKIM ONARIM</b></a>";
$content .= "<TR><TD class=\"row1\">\n";
$content .= "<img src=\"images/DijiBlock/icon_1.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_1 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a></BR>";
}
}
$content .="</TD><TD class=\"row1\">";
$content .= "<img src=\"images/DijiBlock/icon_2.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_2 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a><BR>";
}
}
$content .= "<TR><TD colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=38\"><b>RESIMLI PROGRAM KULLANIMLARI</b></a>";
$content .= "</TD><TD height=\"24\" colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=43\"><b>FİLİM VE ANİMASYONLAR</b></a>";
$content .= "<TR><TD class=\"row1\">\n";
$content .= "<img src=\"images/DijiBlock/icon_3.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_3 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a><BR>";
}
}
$content .="</TD><TD class=\"row1\">";
$content .= "<img src=\"images/DijiBlock/icon_4.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_4 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a><BR>";
}
}
$content .= "<TR><TD colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=14\"><b>WEB & GRAFİK TASARIM</b></a>";
$content .= "</TD><TD height=\"24\" colspan=\"2\" onmouseover=\"style.backgroundColor='$renk1'; \" onmouseout=\"style.backgroundColor='$renk2'; \" bgcolor=\"$renk2\">\n";
$content .= " <a href=\"modules.php?name=Forums&file=viewforum&f=44\"><b>SORU CEVAP & ANKETLER</b></a>";
$content .= "<TR><TD class=\"row1\">\n";
$content .= "<img src=\"images/DijiBlock/icon_5.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_5 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a><BR>";
}
}
$content .="</TD><TD class=\"row1\">";
$content .= "<img src=\"images/DijiBlock/icon_6.gif\" border=\"0\" alt=\"\" title=\"\" width=\"75\" height=\"75\">";
$content .="</TD><TD class=\"row1\">";
$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=$forum_6 ORDER BY RAND() DESC LIMIT 5";
$result = $db->sql_query($sql);
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$auth_view = intval($auth_view);
$auth_read = intval($auth_read);
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/DijiBlock/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"5\" height=\"5\"> <a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\">".kisalt_sunu($topic_title)."</a><BR>";
}
}
$content .="</TD>\n</TR>";
$content .= "<TR><TD height=\"24\" colspan=\"4\" background=\"images/DijiBlock/cellpic0.gif\">\n";
$content .= "<center><a href=\"modules.php?name=Forums\"><b>Tüm $sitename Forumları</b></a></center>";
#################################################################
#### LÜTFEN KUL HAKKI İÇİN AŞAĞIDAKİ SATIRI DEĞİŞTİRMEYİNİZ. ####
#################################################################
$content .= "<a href=\"http://www.dijitalseyir.net\"><b>©</b></a>";
#################################################################
#### LÜTFEN KUL HAKKI İÇİN YUKARIDAKİ SATIRI DEĞİŞTİRMEYİNİZ.####
#################################################################
$content .="</TD>\n</TR>\n</TABLE>";
$db->sql_freeresult($result);
?>
Blokun Ekran Görüntüsü
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-18, 13:26:14 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