Issue with sorting forum by Last Post
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #13
RE: Issue with sorting forum by Last Post
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:
3385
3386
3387
3388
3389
3390
3391
3392
// 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:
3212
3213
3214
3215
3216
3217
3218
3219
// 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'].' ';
}


07-13-2012 06:34 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Issue with sorting forum by Last Post - RateU - 07-13-2012 06:34 AM

 Standard Tools
Forum Jump: