Yes, I think it's possible with this code :
<?php
$pun_root = './';
require $pun_root.'include/common.php';
$username = $_GET['username'];
$show_group = -1;
$sort_by = 'username';
$sort_dir = 'ASC';
// Create any SQL for the WHERE clause
$where_sql = array();
$like_command = ($db_type == 'pgsql') ? 'ILIKE' : 'LIKE';
if ($username != '')
$where_sql[] = 'username '.$like_command.' \''.$db->escape(str_replace('*', '%', $username)).'\'';
if ($show_group > -1)
$where_sql[] = ($show_group == 0) ? 'status<1' : 'status='.$show_group;
$start_from = 0;
// Grab the users
$result = $db->query('SELECT id, username FROM '.$db->prefix.'users WHERE id>1'.(!empty($where_sql) ? ' AND
'.implode(' AND ', $where_sql) : '').' ORDER BY
'.$sort_by.' '.$sort_dir.' LIMIT '.$start_from.', 50') or error('Unable to fetch user list', __FILE__, __LINE__, $db->error());
$user_data = $db->fetch_assoc($result);
echo '<a href="profile.php?id='.$user_data['id'].'">'.pun_htmlspecialchars($user_data['username']).'</a>';
?>
( For test this code, place him in script_name.php and go to script_name.php?username=I_want_this_username. )
But it use a lot of DB queries. I don't know how to make lighter.
Why not in PunBB 1.2 ?
[img]http://www.famfamfam.com/lab/icons/silk/icons/error.png[/img]
/me speaks
French and
bad English [img]http://www.famfamfam.com/lab/icons/silk/icons/error.png[/img]