prosze
od lini 313 pare lini w dół (czyli do 355)
//-----------------------------------------
// (T23) Group Format
//-----------------------------------------
$this->ipsclass->DB->build_query(array(
'select' => 't.*, t.title as topic_title',
'from' => array('topics' => 't'),
'where' => "t.approved=1 AND t.forum_id IN($forums) AND t.starter_id=$mid",
'add_join' => array(
0 => array('select' => 's.mgroup as s_group',
'from' => array('members' => 's'),
'where' => 's.id=t.starter_id',
'type' => 'left'),
1 => array('select' => 'p.mgroup as p_group',
'from' => array('members' => 'p'),
'where' => 'p.id=t.last_poster_id',
'type' => 'left')
),
'order' => "t.last_post DESC"
) );
$query_to_cache = $this->ipsclass->DB->cur_query;
$this->ipsclass->DB->flush_query();
//-----------------------------------------
// If we are still here, store the data into the database...
//-----------------------------------------
$unique_id = md5(uniqid(microtime(),1));
$this->ipsclass->DB->do_insert( 'search_results', array (
'id' => $unique_id,
'search_date' => time(),
'post_max' => $results,
'sort_key' => $this->sort_key,
'sort_order' => $this->sort_order,
'member_id' => $this->ipsclass->member['id'],
'ip_address' => $this->ipsclass->input['IP_ADDRESS'],
'query_cache' => $query_to_cache
) );
$this->ipsclass->boink_it( $this->ipsclass->base_url."act=Search&nav=au&CODE=show&searchid=$unique_id&search_in=topics&result_type=topics" );
}
i od 538 do 600
$row = $this->ipsclass->DB->fetch_row();
$results = intval($row['count']);
//-----------------------------------------
// Do we have any results?
//-----------------------------------------
if ( ! $results )
{
//$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_search_results' ) );
}
//-----------------------------------------
// Cache query
//-----------------------------------------
//-----------------------------------------
// (T23) Group Format
//-----------------------------------------
$this->ipsclass->DB->build_query(array(
'select' => 't.*, t.title as topic_title',
'from' => array('topics' => 't'),
'where' => "t.approved=1 AND t.state != 'link' AND t.forum_id IN($forums) AND t.last_post > {$last_time}",
'add_join' => array(
0 => array('select' => 's.mgroup as s_group',
'from' => array('members' => 's'),
'where' => 's.id=t.starter_id',
'type' => 'left'),
1 => array('select' => 'p.mgroup as p_group',
'from' => array('members' => 'p'),
'where' => 'p.id=t.last_poster_id',
'type' => 'left')
),
'order' => "t.last_post DESC"
) );
$query_to_cache = $this->ipsclass->DB->cur_query;
$this->ipsclass->DB->flush_query();
//-----------------------------------------
// If we are still here, store the data into the database...
//-----------------------------------------
$unique_id = md5(uniqid(microtime(),1));
$this->ipsclass->DB->do_insert( 'search_results', array (
'id' => $unique_id,
'search_date' => time(),
'post_max' => $results,
'sort_key' => $this->sort_key,
'sort_order' => $this->sort_order,
'member_id' => $this->ipsclass->member['id'],
'ip_address' => $this->ipsclass->input['IP_ADDRESS'],
'query_cache' => $query_to_cache
) );
$this->ipsclass->boink_it( $this->ipsclass->base_url."act=Search&nav={$this->ipsclass->input['nav']}&CODE=show&searchid=$unique_id&search_in=topics&result_type=topics&lastdate={$this->ipsclass->input['lastdate']}" );
}
/*-------------------------------------------------------------------------*/
// Last 10 posts
/*-------------------------------------------------------------------------*/
Mam nadzieje ze o to chodzilo ??
Wiem ze trudno mi pomoc Ale jak sam nie znam sie na tym to trudno mi jest pomoc tobie w pomocy mnie