search user rather than poster; everything else refers to 'user'

git-svn-id: file:///home/shish/svn/shimmie2/trunk@420 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-08-02 19:57:40 +00:00
parent 4fdecf9677
commit 25b1ebad8b
3 changed files with 4 additions and 4 deletions

View File

@ -129,9 +129,9 @@ class Database {
$val = parse_shorthand_int($matches[3]);
$img_search->append(new Querylet("AND (images.$col $cmp $val)"));
}
else if(preg_match("/poster=(.*)/i", $term, $matches)) {
else if(preg_match("/(poster|user)=(.*)/i", $term, $matches)) {
global $database;
$user = $database->get_user_by_name($matches[1]);
$user = $database->get_user_by_name($matches[2]);
if(!is_null($user)) {
$user_id = $user->id;
}

View File

@ -121,7 +121,7 @@ class UserPageTheme extends Themelet {
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
$u_name = url_escape($duser->name);
$images_link = make_link("post/list", "search=poster%3D$u_name");
$images_link = make_link("post/list/user=$u_name/1");
return "
Join date: $h_join_date ($i_days_old days old)

View File

@ -122,7 +122,7 @@ class UserPageTheme extends Themelet {
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
$u_name = url_escape($duser->name);
$images_link = make_link("post/list", "search=poster%3D$u_name");
$images_link = make_link("post/list/user=$u_name/1");
return "
Join date: $h_join_date ($i_days_old days old)