LAN_140, 'table' => 'user', 'advanced' => array( 'time' => array('type' => 'date', 'text' => LAN_SEARCH_62), ), 'return_fields' => array('user_id', 'user_name', 'user_email', 'user_signature', 'user_join'), 'search_fields' => array('user_name' => '1.2', 'user_signature' => '0.6'), // fields and weights. 'order' => array('user_join' => 'DESC'), 'refpage' => 'user.php' ); return $search; } /* Compile Database data for output */ function compile($row) { $tp = e107::getParser(); $res = array(); $res['link'] = e107::getUrl()->create('user/profile/view', array( 'id' => $row['user_id'], 'name' => $row['user_name']) ); //"user.php?id.".$row['user_id']; $res['pre_title'] = $row['user_id']." | "; $res['title'] = $row['user_name']; $res['summary'] = $row['user_signature'] ? LAN_SEARCH_72.": ".$row['user_signature'] : LAN_SEARCH_73; $res['detail'] = LAN_SEARCH_74.": ".$tp->toDate($row['user_join'], "long"); return $res; } /** * Advanced Where * @param $parm - data returned from $_GET */ function where($parm=null) { $tp = e107::getParser(); $qry = ""; if (vartrue($parm['time']) && is_numeric($parm['time'])) { $qry .= " user_join ".($_GET['on'] == 'new' ? '>=' : '<=')." '".(time() - $_GET['time'])."' AND"; } return $qry; } }