Kayıt: Nov 04, 2003 Mesajlar: 737 Konum: Amsterdam Hollanda
Tarih: 2009-05-03, 14:14:15 Mesaj konusu: Forum blok: son baslik ve basliga ait yazi!
Merhaba,
Aramalarimda basarisiz kaldim ve sizlerden yardim rica ediyorum.
Soru su:
Ana sayfada forum basliklarini genis icerik kapsaminda yayinlayabiliyoruz.
Benim yapmaya calistigim su anasayfada ornek son 5 forum yazisini yayinlamak istiyorum.
News modulunde oldugu gibi forumlara yazilan son 5 yazi ve basligini ana sayfada gosterecegim.
Bana bu konu hakkinda bilgi veya kaynak verebilecekler olursa cok memnun olurum.
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2009-05-06, 15:53:47 Mesaj konusu:
Bu bloğu ben düzenleyip bu hale getirdiğime göre benim paylaşmam lazım. :)
Kod:
<?php
/*=======================================================================
Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
=======================================================================*/
/************************************************************************
Nuke-Evolution: Enhanced Forum Block
============================================
Copyright (c) 2005 by The Nuke-Evolution Team
Filename : block-Basit_Forum.php
Author : JeFFb68CAM (www.Evo-Mods.com)
Version : 3.0
Date : 11.05.2005 (mm.dd.yyyy)
Description : Enhanced Forum Block will show all your recent topics
on your homepage. It will match any theme you use for
your PHP-Nuke / Nuke-Evolution website. It is cached
so that it provides optimum performance with your
Nuke-Evolution web portal.
************************************************************************/
/*****[CHANGES]**********************************************************
-=[Base]=-
Nuke Patched v3.1.0 06/26/2005
Caching System v1.0.0 10/30/2005
-=[Mod]=-
Advanced Username Color v1.0.5 10/30/2005
************************************************************************/
if(!defined('NUKE_EVO')) exit;
global $prefix, $db, $sitename, $admin, $ThemeSel, $user_prefix, $board_config, $currentlang, $cache;
/***[CONFIGURATION]******************************************************/
/* These options give you the ability to customize this block */
/************************************************************************/
$HideViewReadOnly = 1; # Set this to 1 to hide posts that a user it not authorized to see, set to 0 to let them see any and all posts.
$AlternateRowClass = 0; # Set this to 1 to give your block a little bit of 'class' by changing the style of each row, set to 0 to disable.
$Last_New_Topics = 6; # Set this to however many topics you'd like to be displayed.
$SplitAnnouncements = 1; # Set this to 1 to split your board's most recent Announcements and Global Announcements from the normal topics.
$NumAnnouncements = 2; # Set this to the number of announcements you'd like to be displayed.
/***[CONFIGURATION]******************************************************/
/* These options give you the ability to customize this block */
/************************************************************************/
function make_a_row($row_class, $topic_first_post_id, $topic_title, $forum_name, $forum_id, $user_id, $username, $topic_replies, $topic_views, $post_time, $topic_last_post_id, $poster_name, $poster_id) {
global $ThemeSel;
$row = "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\">$username</a>, <a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_first_post_id#$topic_first_post_id\"><b>$topic_title</b></a> başlığını"
." <b>$forum_name</b> forumunda açtı.</a><br />"
."Toplamda bu başlığa <b>$topic_replies</b> cevap geldi ve bu başlık <b>$topic_views</b> defa okundu."
."<font size=\"-2\"> [$post_time] </font><br /> <a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><br />";
return $row;
}
function make_table($posts, $announcements, $SplitAnnouncements) {
$table = "<b><u><h4>Duyurular</h4></u></b>";
if ($SplitAnnouncements) {
$table .= ($announcements) ? $announcements : "Şu anda yayınlanan bir Duyuru bulunmamaktadır.<br /><br />";
}
$table .= ($SplitAnnouncements) ? "<b><u><h4>En Son Başlıklar</h4></u></b>" : "<br />";
$table .= ($posts) ? $posts : "Şu an için hiç başlık açılmamış.";
return $table;
}
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