Comment stats on Moderation Queue display
|
|
By Mystic , Section Code [] Posted on Mon Dec 11, 2000 at 12:00:00 PM PST
|
|
It was annoying that as of now, the only way to find out the number of posts to a story in the moderation process, is to actually go to the story , following the link from the queue list.
In this post, I submit a patch to show the comments status in the moderation story list itself.
|
The patch has to be applied to the lib/Scoop/Admin/AdminStories.pm file. I created the .patch file using "diff -Naur Original New" command. The patch file can be found here.
It is also posted in the note below if you wanna see the basic difference.
--- AdminStories.pm.12122000 Tue Dec 12 09:15:32 2000
+++ AdminStories.pm Tue Dec 12 10:19:33 2000
@@ -74,6 +74,7 @@
<TD valign="top">%%title_font%%<B>Date</B>%%title_font_end%%</TD>
<TD align="center" valign="top">%%title_font%%<B>Author</B>%%title_font_end%%</TD>
<TD valign="top">%%title_font%%$last_col%%title_font_end%%</TD>
+ <TD align="center" valign="top">%%title_font%%<B>Comments</B>%%title_font_end%%</TD>
</TR>|;
my ($rv, $sth) = $S->db_select($select);
@@ -83,6 +84,7 @@
my $i = 1;
my $story;
my $story_num;
+ my ($topical,$editorial,$pending);
$story = $sth->fetchrow_hashref;
my ($displaystatus, $edit_link, $comment_count, $mod_set, $story_link, $info, $story_read_link);
@@ -124,13 +126,15 @@
}
$story_num = $offset + $i;
-
+ ($topical,$editorial,$pending)=$S->_comment_breakdown($story->{sid});
+
$content .= qq|
<TR$color>
<TD valign="top">%%norm_font%%$story_num) <A HREF="%%rootdir%%/$story_link">$story->{title}$story_read_link $info%%norm_font_end%%</TD>
<TD valign="top">%%norm_font%%$story->{time}%%norm_font_end%%</TD>
<TD align="center" valign="top">%%norm_font%%$story->{aid}%%norm_font_end%%</TD>
<TD valign="top">%%norm_font%%$edit_link%%norm_font_end%%</TD>
+ <TD align="center" valign="top">%%norm_font%%$topical Topical, $editorial Editorial, $pending Pending%%norm_font_end%%</TD>
</TR>|;
$i = $i+1;
$story = $sth->fetchrow_hashref;
|
|
Story Views
|
12 Scoop users have viewed this story.
|
|