open your index.php
add this code before//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
Code:
//---------------------------
//------DREAMBOARD-------------
//----------------------------
if ($boardconfig['board_disable']){
$board .=format_boardtext($boardconfig['status_desc'], 0, 0, 0, 0, 1);
$iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\" border=\"0\"> ";
}else {
$board .="</br><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" ><tr><td class=\"boxline\"><table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"2\" ><tr><td class=\"head2\"> ".$lang['recents_thread']."</td></tr></table>";
$boardgories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE ."");
while ($row = mysql_fetch_array($boardgories)) {
$catid = $row['catid'];
$catname = $row['catname'];
$board .="<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"2\" ><tr><td class=\"head1\"><b>$catname</b></td></tr></table>\n";
$forums = mysql_query ("SELECT board_id,board_catid,board_name,board_desc,board_posts,board_topics,board_lastpost_id,board_lastpost_user,board_lastpost_date,board_lastpost_page,board_moderator,board_moderator_id FROM ".BOARD_TABLE." WHERE board_catid='$catid'");
while ($row = mysql_fetch_array($forums)) {
$board_id = $row['board_id'];
$board_catid = $row['board_catid'];
$board_name = $row['board_name'];
$board_lastpost_id = $row['board_lastpost_id'];
$board_lastpost_user = $row['board_lastpost_user'];
$board_lastpost_date = $row['board_lastpost_date'];
$board_lastpost_page = $row['board_lastpost_page'];
$threadtitle = mysql_query ("SELECT thrtopic FROM ".BOARD_TCONT_TABLE." WHERE thrid ='$board_lastpost_id' ");
while ($rowtopic = mysql_fetch_array($threadtitle )) {
$topic = $rowtopic['thrtopic'];
}
$sql = "SELECT thrlastpost_id FROM ".BOARD_TINDEX_TABLE."
WHERE thrlastpost_user ='$board_lastpost_user'
";
$luid_row = $site_db->query_firstrow($sql);
$lastpost = $luid_row['thrlastpost_id'];
$result = mysql_query ("SELECT user_id,user_lastvisit FROM ".USERS_TABLE." WHERE user_name ='$board_lastpost_user' ");
while ($user = mysql_fetch_array($result )) {
$lastvisit = $user['user_lastvisit'];
}
if ($lastpost == GUEST) {
$lastuser = $board_lastpost_user;
$idlast_post = "";
} else {
$idlast_post = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$lastpost)."\">";
$lastuser = $board_lastpost_user ;
}
if ($board_lastpost_date >= $user_info['user_lastvisit']) {
$newtopic = "<img src=\"".TEMPLATE_PATH."/board_images/folder.gif\" alt=\"".$lang['new_post']."\" >";
$newlastpost ="<img src=\"".TEMPLATE_PATH."/board_images/new_last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";
} else {
$newlastpost ="<img src=\"".TEMPLATE_PATH."/board_images/last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";
$newtopic = "<img src=\"".TEMPLATE_PATH."/board_images/forum_no_new.gif\" alt=\"".$lang['no_newpost']."\">";
}
if ($board_lastpost_date == "0" ) {
$board .="";
} else {
$lastpostdate = format_date($boardconfig['date_format']." ".$boardconfig['time_format'], $board_lastpost_date);
$row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
$board .=" <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"3\" class=\"row$row_bg_number\"><tr><td class=backboard nowrap>$newtopic</td><td class=backboard nowrap><b>$topic</b> <span class=\"smalltext\">$lastpostdate</span> ".$lang['by']." $idlast_post $lastuser</a> <a href=\"showthread.php?bid=$board_id&threadid=$board_lastpost_id&page=$board_lastpost_page \">$newlastpost</a></td></tr></table>\n";
}
}
}
$board .=" </td></tr></table></br>";
}
$site_template->register_vars("board", $board);
open your home.html on template folder
put this code {board}
b.o.fan