MyBB Community Forums

Full Version: help .
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
deleted msj.
Hello there,

Open ./index.php


find
$query = $db->query("SELECT f.*, t.subject AS lastpostsubject FROM ".TABLE_PREFIX."forums f LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid = f.lastposttid) WHERE active!='no' ORDER BY f.pid, f.disporder");
 

replace by

 $query = $db->query("SELECT f.*, t.subject AS lastpostsubject, t.icon, i.iid, i.path AS iconpath FROM ".TABLE_PREFIX."forums f LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid = f.lastposttid) LEFT JOIN ".TABLE_PREFIX."icons i ON (i.iid = t.icon) WHERE active!='no' ORDER BY f.pid, f.disporder");

now find

$lastpostsubject = $fulllastpostsubject = $forum['lastpostsubject']; 


above it add

if($forum[iconpath] == "")
{
 $iconpathlp = "";
}
else
{
$iconpathlp = "<img src=\"".$forum['iconpath']."\" border=\"0\" />"; 
}
 

now in Admin CP > Tempaltes > Modify / Delete > Forum Bit templates > forumbit_depth2_forum

find
$lastpost

replace with

$iconpathlp $lastpost 

Regards
Lol, why deleted? =)
Cause its an old thread and his "problem" is solved ages ago =P
Please don't bump old threads.