Outputting complete custom comment form

Following was the HTML – <!– Comment Form HTML –> <div class=”sub-figure”> <div class=”sub-post-title”> <h4 class=”recent-title”>Comments</h4> </div> </div> <!– Leave a comment –> <div class=”sub-figure”> <div class=”sub-post-title”> <h4 class=”recent-title”>Leave A Comment</h4> </div> <form class=”form-inline”> <div class=”col-xs-12 col-sm-4 col-md-4 form-group”> <input type=”text” class=”form-control height-in” id=”reply-name” placeholder=”Enter Name”> </div> <div class=”col-xs-12 col-sm-4 col-md-4 form-group”> <input type=”email” class=”form-control … Read more

How do I convert users who put an email and username for a comment into registered users? [duplicate]

To achieve this, create a new page template and use this code in that file. Then, use your submit form to redirect the user after commenting to the new page. $user_login = $_POST[‘user_login’]; $user_email = $_POST[‘user_email’]; $errors = register_new_user($user_login, $user_email); if ( !is_wp_error($errors) ) { $redirect_to = !empty( $_POST[‘redirect_to’] ) ? $_POST[‘redirect_to’] : ‘wp-login.php?checkemail=registered’; wp_safe_redirect( … Read more

How to change Akismet commenter privacy notice?

Aha, I finally got it working: <?php /* Plugin Name: Akismet Better Privacy Notice Description: Inform users about what’s actually happening with their data */ add_filter ( ‘akismet_comment_form_privacy_notice_markup’, ‘better_display_comment_form_privacy_notice’ ); function better_display_comment_form_privacy_notice() { echo sprintf( ‘<p class=”akismet_comment_form_privacy_notice”>’ . ‘Warning: This site uses Akismet to filter spam.’ . ‘ Until or unless I can find a … Read more

Comment_form and GD Star Rating

Got it! The key was a custom callback on wp_list_comments. Here’s the snippet of code I used within my comments: <?php if (defined(“STARRATING_INSTALLED”)) : ?> <div class=”rating” style=”float: right”> <?php wp_gdsr_comment_integrate_standard_result(get_comment_ID()); ?> </div> <?php endif; ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)