MyBB Community Forums

Full Version: forumdisplay_threads_sep
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to make "forumdisplay_threads_sep" to display all the time rather than when there's stickied threads or announcements?
You could prob add
<tr>
<td class="trow_sep" colspan="{$colspan}">{$lang->normal_threads}</td>
</tr>
to "forumdisplay_threadlist" around
</tr>
	{$announcementlist}
	{$threads}
	<tr>
If that is what you want to do as I do not quite understand you
It would have to be at the PHP level I think. Whatever is telling "forumdisplay_threads_sep" to display when there are announcements or stickied threads present I need to make say "display it at all times."
So you would like to remove the "Important Threads" and "Normal Threads" and have a different title instead for example "Threads"?
No no no. I just need "forumdisplay_threads_sep" to display at ALL times. It only displays, by default, when there are stickied threads or announcements in a forum. I found this in forumdisplay.php:

if($thread['sticky'] == "1" && !$donestickysep)
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");
$shownormalsep = true;
$donestickysep = true;
}

Do you know how I could change it to just display all the time?
Nevermind, I figured it out. I played around with the code and finally got it to work by adding this in:

if($thread['sticky'] == 0 && !$donestickysep)
{
eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";");
$shownormalsep = false;
$donestickysep = true;
}
else if($thread['sticky'] == 0 && $shownormalsep)
{
$shownormalsep = false;
$donenormalsep = true;
}