Current time: 05-25-2012, 01:08 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Find user posts - not displaying new posts (when hitting limit) [R]
05-25-2009, 07:31 PM (This post was last modified: 05-25-2009 07:42 PM by Ryan Gordon.)
Post: #11
RE: Find user posts - not displaying new posts (when hitting limit) [R]
Official fix. Open search.php and find:

PHP Code:
$tids = array();
$pids = array();
// Make sure the posts we're viewing we have permission to view.
$query $db->simple_select("posts""pid, tid""pid IN(".$db->escape_string($search['posts']).") AND {$p_unapproved_where} {$limitsql}"); 

replace with

PHP Code:
$post_cache_options = array('limit' => intval($mybb->settings['searchhardlimit']));
if(
strpos($sortfield'p.') !== false)
{
    
$post_cache_options['order_by'] = str_replace('p.'''$sortfield);
    
$post_cache_options['order_dir'] = $order;
}

$tids = array();
$pids = array();
// Make sure the posts we're viewing we have permission to view.
$query $db->simple_select("posts""pid, tid""pid IN(".$db->escape_string($search['posts']).") AND {$p_unapproved_where}"$post_cache_options); 

Also find both instances of:
PHP Code:
$pids '';
$comma '';
$query $db->simple_select("posts""pid""{$where_sql} {$limitsql}"); 

replace with
PHP Code:
$options = array(
    
'limit' => intval($mybb->settings['searchhardlimit']),
    
'order_by' => 'dateline',
    
'order_dir' => 'desc',
);
    
$pids '';
$comma '';
$query $db->simple_select("posts""pid""{$where_sql}"$options); 

A developer may commit this fix at their convenience.
Visit this user's website Find all posts by this user
05-26-2009, 11:20 AM
Post: #12
[F] Find user posts - not displaying new posts (when hitting limit) [R]
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication