*** Slash/Utility/Display/Display.pm Wed Mar 24 22:30:48 2004 --- Slash/Utility/Display/Display.pm.orig Wed Mar 24 18:35:22 2004 *************** *** 51,59 **** selectMode selectSection selectSortcode selectThreshold - selectMaxThreshold selectTopic titlebar ); --- 51,58 ---- *************** *** 372,424 **** } createSelect('threshold', \%data, getCurrentUser('threshold'), 1, 1); } - #======================================================================== - - =head2 selectMaxThreshold(COUNTS) - - Creates a drop-down list of maxthresholds in HTML in modarator mode. Default is always the - value $constants->{comment_maxscore} . Calls C. - - =over 4 - - =item Parameters - - =over 4 - - =item COUNTS - - An arrayref of thresholds -E counts for that threshold. - - =back - - =item Return value - - The created list. - - =item Dependencies - - The 'selectMaxThreshLabel' template block. - - =back - - =cut - - sub selectMaxThreshold { - my($counts) = @_; - my $constants = getCurrentStatic(); - - my %data; - foreach my $c ($constants->{comment_minscore} .. $constants->{comment_maxscore}) { - $data{$c} = slashDisplay('selectMaxThreshLabel', { - points>-=> $c - }, { Return => 1, Nocomm => 1 }); - } - - createSelect('maxthreshold', \%data, $constants->{comment_maxscore}, 1, 1); - } - #======================================================================== =head2 linkStory(STORY) --- 371,378 ---- *** themes/slashcode/templates/printCommentsMain;misc;default Wed Mar 24 22:31:04 2004 --- themes/slashcode/templates/printCommentsMain;misc;default.orig Wed Mar 24 18:35:22 2004 *************** *** 83,103 **** - [% IF is_moderator %] - Threshold: min [% - Slash.selectThreshold(comments.0.totals); - %] max [% - Slash.selectMaxThreshold(); - Slash.selectMode(user.mode); - Slash.selectSortcode(user.commentsort) %] - [% ELSE %] Threshold: [% Slash.selectThreshold(comments.0.totals); Slash.selectMode(user.mode); Slash.selectSortcode(user.commentsort) %] - [% END %] [% UNLESS user.is_anon %] Save: [% END %] --- 83,94 ---- *** themes/slashcode/templates/selectMaxThreshLabel;misc;default Mon Mar 22 16:56:22 2004 --- themes/slashcode/templates/selectMaxThreshLabel;misc;default.orig Wed Mar 24 21:48:40 2004 *************** *** 1,19 **** - __section__ - default - __description__ - A label for each item in the MaxThreshold drop-down list - - * points = points for this threshold - - __title__ - - __page__ - misc - __lang__ - en_US - __name__ - selectMaxThreshLabel - __template__ - [% points %] - __seclev__ - 10000 --- 0 ---- *** plugins/Search/Search.pm Wed Mar 24 22:31:18 2004 --- plugins/Search/Search.pm.orig Wed Mar 24 18:35:22 2004 *************** *** 85,94 **** $where .= " AND discussions.sid=" . $self->sqlQuote($form->{sid}) if $form->{sid}; $where .= " AND points >= $form->{threshold} " if $form->{threshold}; - $where .= " AND points <= $form->{maxthreshold} " - if $form->{maxthreshold}; $where .= " AND section=" . $self->sqlQuote($form->{section}) if $form->{section}; my $other; --- 85,92 ----