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:
parent
4fdecf9677
commit
25b1ebad8b
@ -129,9 +129,9 @@ class Database {
|
|||||||
$val = parse_shorthand_int($matches[3]);
|
$val = parse_shorthand_int($matches[3]);
|
||||||
$img_search->append(new Querylet("AND (images.$col $cmp $val)"));
|
$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;
|
global $database;
|
||||||
$user = $database->get_user_by_name($matches[1]);
|
$user = $database->get_user_by_name($matches[2]);
|
||||||
if(!is_null($user)) {
|
if(!is_null($user)) {
|
||||||
$user_id = $user->id;
|
$user_id = $user->id;
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ class UserPageTheme extends Themelet {
|
|||||||
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
|
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
|
||||||
|
|
||||||
$u_name = url_escape($duser->name);
|
$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 "
|
return "
|
||||||
Join date: $h_join_date ($i_days_old days old)
|
Join date: $h_join_date ($i_days_old days old)
|
||||||
|
@ -122,7 +122,7 @@ class UserPageTheme extends Themelet {
|
|||||||
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
|
$h_comment_rate = sprintf("%3.1f", ($i_comment_count / $i_days_old2));
|
||||||
|
|
||||||
$u_name = url_escape($duser->name);
|
$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 "
|
return "
|
||||||
Join date: $h_join_date ($i_days_old days old)
|
Join date: $h_join_date ($i_days_old days old)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user