Recent Topics

1 Dec 06, 2005 23:55    

I am filling Blog 3 with quotations that I am working on getting displayed in the sidebar. I have turned off comments in the advanced options area for the blog.

When I choose preview for a post I get this error.

Parameter <<post_comments>> is required!

2 Dec 07, 2005 00:31

Thanks for reporting. This is a known bug and is fixed for the next release.

3 Mar 24, 2006 21:50

Can you post the fix for this so we can patch current installations? I imagine it is something to the effect of creating an ELSE block for the COMMENT STATUS section in _item.form.php, correct?

4 Mar 24, 2006 22:03

I've taken a quick look, but could not find it, sorry.

5 Mar 27, 2006 13:59

I made a change to my copy of admin/_item.form.php to patch this:

	// ################### COMMENT STATUS ###################

	if( $Blog->allowcomments == 'never' )
	{
		$Form->hidden( 'post_comments', 'disabled' );
	}
	elseif( $Blog->allowcomments == 'always' )
	{
		$Form->hidden( 'post_comments', 'open' );
	}
	else //if( $Blog->allowcomments == 'post_by_post' )
	{
		$Form->begin_fieldset( T_('Comments') );

		?>
			<label title="<?php echo T_('Visitors can leave comments on this post.') ?>"><input type="radio" name="post_comments" value="open" class="checkbox" <?php if( $post_comments == 'open' ) echo 'checked="checked"'; ?> />
			<?php echo T_('Open') ?></label><br />

			<label title="<?php echo T_('Visitors can NOT leave comments on this post.') ?>"><input type="radio" name="post_comments" value="closed" class="checkbox" <?php if( $post_comments == 'closed' ) echo 'checked="checked"'; ?> />
			<?php echo T_('Closed') ?></label><br />

			<label title="<?php echo T_('Visitors cannot see nor leave comments on this post.') ?>"><input type="radio" name="post_comments" value="disabled" class="checkbox" <?php if( $post_comments == 'disabled' ) echo 'checked="checked"'; ?> />
			<?php echo T_('Disabled') ?></label><br />
		<?php

		$Form->end_fieldset();
	}


Form is loading...