Permalink
Browse files

Add article_nocomment

  • Loading branch information...
1 parent 59c96cc commit d65896f5e0a7727f19a169010efed3e7efb2c00c @pudge pudge committed May 13, 2002
Showing with 5 additions and 2 deletions.
  1. +1 −0 sql/mysql/defaults.sql
  2. +4 −1 themes/slashcode/htdocs/article.pl
  3. +0 −1 themes/slashcode/templates/header;misc;admin
View
1 sql/mysql/defaults.sql
@@ -369,6 +369,7 @@ INSERT INTO vars (name, value, description) VALUES ('approvedtags_break','P|LI|O
INSERT INTO vars (name, value, description) VALUES ('archive_delay','60','days to wait for story archiving');
INSERT INTO vars (name, value, description) VALUES ('archive_use_backup_db', '0', 'Should the archival process retrieve data from the backup database?');
INSERT INTO vars (name, value, description) VALUES ('articles_only','0','show only Articles in submission count in admin menu');
+INSERT INTO vars (name, value, description) VALUES ('article_nocomment','0','Show no comments in article.pl');
INSERT INTO vars (name, value, description) VALUES ('authors_unlimited','100','Seclev for which authors have unlimited moderation');
INSERT INTO vars (name, value, description) VALUES ('backup_db_user','','The virtual user of the database that the code should use for intensive database access that may bring down the live site. If you don\'t know what this is for, you should leave it blank.');
INSERT INTO vars (name, value, description) VALUES ('badkarma','-10','Users get penalized for posts if karma is below this value');
View
5 themes/slashcode/htdocs/article.pl
@@ -72,7 +72,10 @@ sub main {
my $discussion = $slashdb->getDiscussionBySid($story->{sid});
# This is to get tid in comments. It would be a mess to pass it directly to every comment -Brian
$user->{state}{tid} = $discussion->{topic};
- printComments($discussion);
+ # this should really be done per-story, perhaps with article_nocomment
+ # being a default for the story editor instead of being system-wide; that feature
+ # has been begun, but doesn't work -- pudge
+ printComments($discussion) unless $constants->{article_nocomment};
} else {
my $message = getData('no_such_sid');
header($message, $form->{section});
View
1 themes/slashcode/templates/header;misc;admin
@@ -2,7 +2,6 @@ __section__
admin
__description__
This is the header for the admin section
-
__title__
__page__

0 comments on commit d65896f

Please sign in to comment.