Comments plugin doesn't work
|
4 posts
|
Hy guys, this is my code:
but it doesn’t work. after the “Pubblicato” echo, nothing appears and the page footer is missing. |
|
8 posts
|
Hello, I have managed today to install Frog for a first time and seems to have the same problem like above. I’ve followed the comments instructions and added this entry to layout code: <?php
if (Plugins::isEnabled(‘comment’))
{
if ($this->comment_status != Comment::NONE)
$this->includeSnippet(‘comment-each’);
if ($this->comment_status == Comment::OPEN)
$this->includeSnippet(‘comment-form’);
} ..and the page stops loading after that lines. |
|
125 posts
|
Hi, |
|
8 posts
|
I am using with captcha set to “NO” but this not made any changes. Problem still persist. |
|
8 posts
|
I have discused this problem on WolfCRM Forum, and I have a solution: |
|
4 posts
|
This is my code in Layout: <?php echo $this->content(); ?> <?php if($this->comment_status == 1) { ?> <?php $comments = Comment::findApprovedByPageId($page->id); ?> <ol class=“comments”> <?php foreach ($comments as $comment): ?> <li class=“comment”> <p><?php echo $comment->body(); ?></p> <p> – <?php echo $comment->name(); ?> <small class=“comment-date”><?php echo $comment->date(); ?></small> </p> </li> <?php endforeach; // comments ?> </ol> <?php $this->includeSnippet(“comment-form”); ?> <?php } ?> But it doesn’t work. Before it worked but I changed something and now it doesn’t not work. What should I do? Help please |
|
16 posts
|
Hi
Nothing in the php error.log |
|
8 posts
|
Hello, I have had exacly the same problem. And I found the solution. Please take a look here: |
|
16 posts
|
Thank you for the response, but unfortunately no joy. I turned up the error reporting and I am getting this error now (both with and without the changes to Framework.php: |
|
5 posts
|
The awnser is
Instead of
Just remove the “s” of Plugins Cheers! |
|
16 posts
|
Well wasn’t that too easy! Fantastic….many thanks! |
|
5 posts
|
Your welcome :D |
|
1 posts
|
remove “s” of “Plugins” and change “== Comment::OPEN)” become “!= Comment::OPEN)”
It’s works with captha |