Blog Comments form

edited February 2016 in Modules
Can i edit the blog comment form to use bootstrap classes instead of the table layout? Is this a case of editing the form_builder.php file?

Thanks

Comments

  • edited February 2016
    You should be able to use the views/themes/_blocks/comment_form.php file and change it to whatever you want. Just include field names that match or you can use the $comment_fields array which contains the HTML form elements that you can just output in your form surrounded by your own HTML.
  • edited 11:53PM
    ok thanks
  • edited 11:53PM
    If i have modified the views/themes/_blocks/comment_form.php file and used;
    <?php echo site_url($this->uri->uri_string()).'#comments_form';?> as the action and
    <?php echo $post->id;?> and the form id but still not posting the comment?

    have i missed something out?
  • edited 11:53PM
    Its ok ive sorted it now i didnt include the

    session->userdata('antispam');?>"/>
  • edited 11:53PM
    Hello, I'm really new in PHP and CI. And I'm going to create a custom blog comment form. My form has been built, but I don't know what action to post in php. Could you share with me the example code? Thanks.
  • edited 11:53PM
    Ok done. Just set the value of antispam input to "<?php echo $this->session->userdata('antispam');?>" and the action="<?php echo site_url($this->uri->uri_string()).'#comments_form';?>"

    Thanks nico
Sign In or Register to comment.