Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1074
??? Sitem deki Haberleri ..(25559 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16543 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(37273 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(21021 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14163 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17941 okuma, 15 yanıt) üye aktivasyon ..(10699 okuma, 8 yanıt) Facebook tarzı altbar... ..(6303 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6576 okuma, 2 yanıt) Resimli RSS ..(23356 okuma, 25 yanıt) Onay linkini kaldirmak ..(11129 okuma, 8 yanıt) Yardım :( Site açılırken ..(6692 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8348 okuma, 4 yanıt) block genişliği ..(5740 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14500 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7348 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9474 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10550 okuma, 8 yanıt) ethai1 3 ..(13263 okuma, 10 yanıt) Yeni PEHASPESEO ..(70378 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37987 okuma, 36 yanıt) tek modul için sağ ve sol ..(11459 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10644 okuma, 8 yanıt) Phpden iyi anlayan ..(5478 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73794 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29822 okuma, 40 yanıt) Toplu üyelik silme? ..(11180 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12472 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5995 okuma, 2 yanıt) Makale modulu ..(8625 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(86050 okuma, 121 yanıt) title değiştirme ..(10415 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10086 okuma, 6 yanıt) Php Nuke 8.1 ..(4371 okuma, 0 yanıt) merhaba ..(10335 okuma, 9 yanıt) Anasayfa için boş modül o ..(13617 okuma, 13 yanıt) admin panelinde Access De ..(6447 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26568 okuma, 25 yanıt) Nuke Tema yapilisi ..(17188 okuma, 16 yanıt) Mavisce-net temasina bann ..(8774 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6665 okuma, 2 yanıt) coppermine hata ..(10760 okuma, 8 yanıt) içerik tanıtımı ..(6326 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7212 okuma, 3 yanıt) google keywords ..(9021 okuma, 6 yanıt) 8.0'da html sorunu ..(5525 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(54594 okuma, 76 yanıt) üye olunurken gereksiz is ..(10075 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6387 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10570 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-06-16, 17:18:31 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