It looks like you're new here. If you want to get involved, click one of these buttons!
<?=$comment_form?>
with my own form, using <?php echo site_url($this->uri->uri_string()).'#comments_form';?>
as the form action and using <?php echo $post->id;?>
as the post_id, but have had no luck.
Comments
$this->session->userdata('antispam');
Also, the blog config file allows you to set additional fields as well as pass any sort of Form_builder parameters to it with the "comment_form" config in that file.
Can i set $render_format = 'divs' for only the blog comments form? I made the change in the form_builder but it sets it globally.
I was able to change the div class that wraps the labels and inputs, by changing $str .= " class=\"field\">"; within the form_builder. Can/should this be done for the blog only?
'placeholder' => 'some text here'
doesnt seem to work.I also cant see where to add additional attributes to the labels either.
$config['blog']['comment_form']['render_format'] = 'divs';
The same applies to the $fields:
$config['blog']['comment_form']['fields'] = array('author_name' => array('label' => 'Name', 'required' => TRUE, 'class' => 'myclass'),....);
'placeholder' => 'myplaceholder'
doesn't seem to be supported thoughhttps://github.com/daylightstudio/FUEL-CMS-Blog-Module
I'm on a similar problem. I've managed to do what was mentioned above, but cannot figure out what to do with the submit button and the paragraph texts in the form (I want to change them).
Can you pls help?
http://docs.getfuelcms.com/libraries/form_builder
$config['blog']['comment_form']['submit_value'] = 'Submit Form'; $config['blog']['comment_form']['fields'] = array('new_comment' => array('type' => 'text', 'class' => 'my_class'...));
The comment form is passed the $form variable and uses the views/themes/default/_blocks/comment_form.php view file, however, you don't have to use it and can use your own form as long as it has the following fields:
author_name
author_email
new_comment
post_id
I am changing all the view files to make my own template, but I am stuck with the comment_form.php. All it has is one line: <?=$form?> and I cannot track back where the view is actually customizable. Anything I put in that file is not displayed.
It's just that it seems it is not the comment_form.php file that is actually controls how the comment form is displayed on the post page. Nothing I put there gets displayed.
Is there some other setting for switching it on and off?
1. I'm really confused about this views/themes/default/_blocks/comment_form.php file. Even if I delete it, the comment form still gets displayed. Nothing I do with it has any affect on my comment form.
2. Nevertheless, I have now managed to style my comment form through fuel/modules/blog/config/blog.php. BUT. I still cannot manage to add css to the submit button. (I want to add bootstrap classes).
I was trying to use the css array() property, but no luck. Can you advise how to do it? This is how i tried:
$config['blog']['comment_form']['css'] = array(
'Submit' => 'btn btn-primary'
);
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/commit/98ebd10544ac815097fe838f6a467f5bca52164c
2. Unfortunately, you can't style the Submit button with the auto generated comment form.
<?=js('comment_reply', 'blog')?>
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/commit/d35a23970cfe20ad9591c66e9a5e5695e9f4cd73
2. I have tried, no luck. It seems this link points to the main blog page:
href="<?=$this->fuel->blog->url('comment_reply/'.$comment->id)?>"
(I do have the comment_reply.js in the assets folder.)
3. One more: The FUEL bar at the top gets hidden under my navbar, so i can never see it. Can i do anything about it?
<?=$this->fuel->blog->theme_path();?>
2. What version of the blog module are you using (you can check the fuel/modules/blog/config/blog_constants.php):
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/tree/master/assets/js
3. You'll need to set your header to below a z-index of 999
2. Version 1.1. Just downloaded the full pack again yesterday. Reinstalled today. Now all I have there is the default theme, I have not customized anything and the reply form still loads the main page into the reply form container. That path url('comment_reply/'.$comment->id) does not seem to work.
I'm not sure if I'm looking at the right thing, but this line looks okay:
GET XHR http://localhost/OKGY/blog/comment_reply/2
but that link points to the main blog page, so that is what is loaded - in place of the reply form.
Okay, I may just omit the reply part, that's not a big problem.
What is a big problem though is the blog pictures don't get displayed. They're 404:
x GET http://localhost/OKGY/blog/2016/01/14/img/szikla.png [HTTP/1.1 404 Not Found ]
The blog images are located at assets/images/blog. It is the same setting in the CMS. Do I need to set something to get the right path?