MyBB Hacks

Full Version: Issue with sorting forum by Last Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Because it's not XThreads "issue", I've moved this thread to Modifications forum. I hope you don't mind.
Yes, thanks you. It's been reported as a bug on MyBB.
Because it seems that you use the main page of usercp a lot, if you use the default MyBB's thread prefix, maybe this part of usercp.php is interesting for you:

PHP Code:
// If this thread has a prefix...
if($thread['prefix'] != 0)
{
	$query = $db->simple_select('threadprefixes', 'prefix, displaystyle', "pid='{$thread['prefix']}'");
	$threadprefix = $db->fetch_array($query);

	$thread['displayprefix'] = $threadprefix['displaystyle'].' ';
}

... and if you use the thread subscriptions:

PHP Code:
// If this thread has a prefix...
if($thread['prefix'] != 0)
{
	$query = $db->simple_select('threadprefixes', 'prefix, displaystyle', "pid='{$thread['prefix']}'");
	$threadprefix = $db->fetch_array($query);

	$thread['displayprefix'] = $threadprefix['displaystyle'].' ';
}

Pages: 1 2
Reference URL's