If you want to have recent posts in your news forums show up in the Latest Forum Discussions list on your vBHome page, in vBHome's index.php find:
PHP Code:
$iforumperms = 'AND forumid<>' . $articleforum . ' AND forumid IN (' . implode(',', $iforumperms) . ')';
Replace with:
PHP Code:
$iforumperms = 'AND forumid IN (' . implode(',', $iforumperms) . ')';
Find:
PHP Code:
if ($thread['forumid']!=$articleforum)
{
eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
}
Replace with:
PHP Code:
eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
Also, if you want your Latest Forum Discussions list to show the date/time/poster of the last post in a thread, rather than the default date/time/poster of the first post in the thread, in vBHome's index.php find:
PHP Code:
SELECT threadid,forumid,title,replycount,postusername,dateline,views
Replace with:
PHP Code:
SELECT threadid,forumid,title,replycount,lastposter,lastpost,views
Find:
PHP Code:
$thread[time] = vbdate($timeformat, $thread[dateline]);
$thread[date] = vbdate($dateformat, $thread[dateline]);
Replace with:
PHP Code:
$thread[time] = vbdate($timeformat, $thread[lastpost]);
$thread[date] = vbdate($dateformat, $thread[lastpost]);
In the home_threadbits template, find:
Code:
$thread[date] <font color="{timecolor}">$thread[time]</font> <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a><br>
Replace with:
Code:
$thread[date] <font color="{timecolor}">$thread[time]</font> by $thread[lastposter]<br>
Last but not least, if you're using the alt description hack to give your threads a sub-heading, and you want that sub-heading to show up on your vbHome index page, in vBHome's index.php find:
PHP Code:
thread.lastposter,thread.dateline,articlepost.pagetext as pagetext
Replace with:
PHP Code:
thread.lastposter,thread.dateline,articlepost.pagetext as pagetext,thread.description
In the home_articlebits template, find:
Code:
$article[title]</b></a>
Replace with:
Code:
$article[title]</b></a><br><smallfont>$article[description]</smallfont>
And the results of all the above will be what you see on the vBHome page at my
X-Fan Web site!