Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1046
??? Sitem deki Haberleri ..(25375 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16450 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36864 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20863 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14015 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17742 okuma, 15 yanıt) üye aktivasyon ..(10634 okuma, 8 yanıt) Facebook tarzı altbar... ..(6261 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6536 okuma, 2 yanıt) Resimli RSS ..(23222 okuma, 25 yanıt) Onay linkini kaldirmak ..(11068 okuma, 8 yanıt) Yardım :( Site açılırken ..(6638 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8264 okuma, 4 yanıt) block genişliği ..(5705 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14376 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7300 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9427 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10489 okuma, 8 yanıt) ethai1 3 ..(13146 okuma, 10 yanıt) Yeni PEHASPESEO ..(69833 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37722 okuma, 36 yanıt) tek modul için sağ ve sol ..(11399 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10579 okuma, 8 yanıt) Phpden iyi anlayan ..(5416 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73198 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29500 okuma, 40 yanıt) Toplu üyelik silme? ..(11114 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12373 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5967 okuma, 2 yanıt) Makale modulu ..(8577 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(85209 okuma, 121 yanıt) title değiştirme ..(10292 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10027 okuma, 6 yanıt) Php Nuke 8.1 ..(4342 okuma, 0 yanıt) merhaba ..(10268 okuma, 9 yanıt) Anasayfa için boş modül o ..(13486 okuma, 13 yanıt) admin panelinde Access De ..(6380 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26371 okuma, 25 yanıt) Nuke Tema yapilisi ..(17103 okuma, 16 yanıt) Mavisce-net temasina bann ..(8716 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6632 okuma, 2 yanıt) coppermine hata ..(10680 okuma, 8 yanıt) içerik tanıtımı ..(6273 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7160 okuma, 3 yanıt) google keywords ..(8956 okuma, 6 yanıt) 8.0'da html sorunu ..(5495 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(54009 okuma, 76 yanıt) üye olunurken gereksiz is ..(10008 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6351 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10486 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-02, 14:07:07 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