id; $i_score = (int)$image['numeric_score']; $html = " Current Score: $i_score

".make_form(make_link("numeric_score_vote"))." ".make_form(make_link("numeric_score_vote"))." ".make_form(make_link("numeric_score_vote"))." "; if ($user->can(Permissions::EDIT_OTHER_VOTE)) { $html .= make_form(make_link("numeric_score/remove_votes_on"))."

See All Votes
"; } $page->add_block(new Block("Post Score", $html, "left", 20)); } public function get_nuller(User $duser): void { global $user, $page; $html = make_form(make_link("numeric_score/remove_votes_by"))." "; $page->add_block(new Block("Votes", $html, "main", 80)); } /** * @param Image[] $images */ public function view_popular(array $images, string $totaldate, string $current, string $name, string $fmt): void { global $page, $config; $pop_images = ""; foreach ($images as $image) { $pop_images .= $this->build_thumb_html($image)."\n"; } $b_dte = make_link("popular_by_$name", date($fmt, \Safe\strtotime("-1 $name", \Safe\strtotime($totaldate)))); $f_dte = make_link("popular_by_$name", date($fmt, \Safe\strtotime("+1 $name", \Safe\strtotime($totaldate)))); $html = "\n". "

\n". " « {$current} »\n". "

\n". "
\n".$pop_images; $nav_html = "Index"; $page->set_heading($config->get_string(SetupConfig::TITLE)); $page->add_block(new Block("Navigation", $nav_html, "left", 10)); $page->add_block(new Block(null, $html, "main", 30)); } public function get_help_html(): string { return '

Search for posts that have received numeric scores by the score or by the scorer.

score=1

Returns posts with a score of 1.

score>0

Returns posts with a score of 1 or more.

Can use <, <=, >, >=, or =.

upvoted_by=username

Returns posts upvoted by "username".

upvoted_by_id=123

Returns posts upvoted by user 123.

downvoted_by=username

Returns posts downvoted by "username".

downvoted_by_id=123

Returns posts downvoted by user 123.

order:score_desc

Sorts the search results by score, descending.

order:score_asc

Sorts the search results by score, ascending.

'; } }