Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Comment stats on Moderation Queue display New Code
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;
< Show number of votes on a comment | Plain Text Comment Bug >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· here
· More on New Code
· Also by Mystic

Story Views
  12 Scoop users have viewed this story.

Display: Sort:
Comment stats on Moderation Queue display | 3 comments (3 topical, 0 hidden)
bathroom remodeling manhattan (none / 0) (#1)
by Pervez on Sun Apr 14, 2019 at 12:00:56 AM PST

Your own write-up is extremely excellent as well as useful for people. You've ready this unique properly. After I get pleasure from run. Presently click the bathroom remodeling manhattan Regards regarding making.



Waffle game (none / 0) (#3)
by Nanisa1 on Thu Jul 27, 2023 at 05:07:58 AM PST

This is no ordinary waffle. waffle game is a highly entertaining game for all players who love word guessing games. You can play with any time. The game is unlimited so you can play multiple times a day without worry.



Comment stats on Moderation Queue display | 3 comments (3 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search