Recent Topics

1 Feb 13, 2010 01:50    

My b2evolution Version: 2.x

I was wondering if it's possible to disable/remove the mandatory Email field when someone likes to leave a comment? If so, how?

2 Mar 14, 2010 23:41

Hi

To remove/disable the mandatory email for comments is you have to edit the code. here are the following instructions but NOTE: Back up the following files:

FILE A.) b2evolution/blogs/skins/_item_comment_form.inc.php

FILE B.) b2evolution/blogs/htsrv/comment_post1.php

DELETE THESE LINES IN FILE _item_comment_form.inc.php

LINE 62: $comment_author_email = $Comment->author_email;

LINE 77: $comment_author_email = '';

LINE 83: $comment_author_email = isset($_COOKIE[$cookie_email]) ? trim($_COOKIE[$cookie_email]) : ''

LINE: 143: $Form->text( 'i', $comment_author_email, 40, T_('Email'), '<br />'.T_('Your email address will <strong>not</strong> be revealed on this site.'), 100, 'bComment' );

SAVE IT!

NEXT DELETE THESE LINES IN FILE comment_post1.php

LINE 195: $Comment->set( 'author_email', $email );
LINE 128-132:
if( empty($email) )
{
$Messages->add( T_('Please fill in your email.'), 'error' );
}

SAVE IT!

YOUR DONE! CONGRATULATIONS!

3 Mar 15, 2010 07:58

conf/_advanced.php set "$require_name_email" to false

¥

4 Mar 15, 2010 09:46

that was easy. Thank you


Form is loading...