[eluser]pickupman[/eluser]
You could add this to ion_model.php
Code:
/**
* get_user_by_field
*
* @param string field name to search
* @param string value to lookup
*
* @return object
**/
public function get_user_by_field($field, $value)
{
$this->db->where($this->tables['users'].'.'.$field, $value);
$this->db->or_where($this->tables['meta'].'.'.$field, $value);
$this->db->limit(1);
return $this->get_users();
}
Then when you are iterating results for your links, you could use something like: