Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
778
??? Sitem deki Haberleri ..(25210 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16351 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36662 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20744 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13921 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17622 okuma, 15 yanıt) üye aktivasyon ..(10582 okuma, 8 yanıt) Facebook tarzı altbar... ..(6229 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6510 okuma, 2 yanıt) Resimli RSS ..(23100 okuma, 25 yanıt) Onay linkini kaldirmak ..(11012 okuma, 8 yanıt) Yardım :( Site açılırken ..(6612 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8225 okuma, 4 yanıt) block genişliği ..(5671 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14271 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7261 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9381 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10424 okuma, 8 yanıt) ethai1 3 ..(13077 okuma, 10 yanıt) Yeni PEHASPESEO ..(69447 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37527 okuma, 36 yanıt) tek modul için sağ ve sol ..(11322 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10518 okuma, 8 yanıt) Phpden iyi anlayan ..(5394 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72725 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29358 okuma, 40 yanıt) Toplu üyelik silme? ..(11054 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12313 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5941 okuma, 2 yanıt) Makale modulu ..(8534 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84729 okuma, 121 yanıt) title değiştirme ..(10233 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(9994 okuma, 6 yanıt) Php Nuke 8.1 ..(4324 okuma, 0 yanıt) merhaba ..(10218 okuma, 9 yanıt) Anasayfa için boş modül o ..(13407 okuma, 13 yanıt) admin panelinde Access De ..(6354 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26209 okuma, 25 yanıt) Nuke Tema yapilisi ..(17014 okuma, 16 yanıt) Mavisce-net temasina bann ..(8675 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6601 okuma, 2 yanıt) coppermine hata ..(10632 okuma, 8 yanıt) içerik tanıtımı ..(6248 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7114 okuma, 3 yanıt) google keywords ..(8909 okuma, 6 yanıt) 8.0'da html sorunu ..(5470 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53762 okuma, 76 yanıt) üye olunurken gereksiz is ..(9970 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6319 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10421 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-15, 18:45:30 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