FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Comment Plugin just doesn't work

Feed 13 posts, 8 voices

Avatar
0 posts

Yeah. Let me say this, as everyone else who has ever asked help here has said, I’m new to frog. I don’t really need the comment plugin, but I do want to know why it doesn’t work.

So. I went to the administrator page, I checked the box for comment plugin and then I added the code to the layout (I use the normal layout and just pasted it there somewhere):

<?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');
    }
?>

The problems start to emerge right off the bat: drop-down box? Really, where? I can’t see that little bad ass on any of my pages.

The second problem is that when I enter the peace of code to a certain place on the layout, all the code after it disappears when the page is viewed with a browser. Even if only the ending tag would be after the code.

I’m running Frog on my local server and currently I’m using XAMPP to do it. I didn’t try to use the comments on a completely default installation: I had “installed” the “Registered Users” plugin to test it out. There are no error messages.

Just ask for more info if needed, but note that I’m not a complete guru with this stuff yet.

E: Fak it, wrong “General”. If someone could move this to the right section? :)

 
Avatar
4 posts

Please help!!!

 
Avatar
4 posts

Heyyy, please reply.:)

 
Avatar
125 posts

look at this

 
Avatar
4 posts

When I add this code I lost my footer and sidebar. Why?

 
Avatar
4 posts

I am having the same issue.

FreeBSD 6.4
PHP 5.2.10
Apache 2.0.63
MySQL 5.0.83

Frog 0.9.5 with the following plugins enabled: Archive, Comments, File Manager, Markdown Filter, Page Not Found, Textile filter

I’ve set debug to true, but no errors are written. Everything looks fine until I add the comment code to the layout. Everything after this piece of code disappears. I tried setting ‘Use captcha’ to NO as suggested elsewhere, but it didn’t help.

Please… We need a fix for this… :-(

 
Avatar
4 posts
code
  echo "hello0"; 
  if (Plugins::isEnabled('comment'))
    {
        echo "hello1";
        if ($this->comment_status != Comment::NONE) {
            echo "hello2";
            $this->includeSnippet('comment-each');
            echo "hello3";
        }
        if ($this->comment_status == Comment::OPEN) {
            echo "hello4";
            $this->includeSnippet('comment-form');
            echo "hello5";
        }
    }

It prints hello0 and then nothing further. So something is not right in the first line.

I added the code to Layouts->Normal. I believe that is the correct way?

 
Avatar
4 posts

Apparently there is an error in the code snippet in the documentation. There is no class named ‘Plugins’. The ‘s’ in the end must be removed.

The frontend works now, but there is still trouble with the backend. The comments tag says (1/1) but no comments are printet.
I have isolated the problem to line 51 in frog/plugins/comment/views/index.php:

$comments_count = $stmt->fetchColumn();

Everything stops after that line.

I tried this:

$comments_count = $stmt->fetchColumn();
echo ‘Can you see me’;

But nothing is printet.. every thing seems to stop here…

Any ideas?

 
Avatar
26 posts

I finally got the comments plugin working though I can’t get the captcha to work.
But I can post a comment and I can moderate it and such.
Still need to work out how to print a “thank you” message.

 
Avatar
4 posts

Well…It seems that Frog is promising, but not quite finished yet. I am missing a few features, like categories and syntax highlighting for code snippets in articles.

The reason for me to use a CMS system, is that I want to avoid coding on my own website. And the last thing I need is using time on debugging… So I am going for another CMS

I am sure that Frog will eventually be a very nice CMS system. But at the moment, it does not suite my needs.

 
Avatar
8 posts

Please take a look here:
http://www.wolfcms.org/forum/topic93.html

I think you are experiencing the same problem.
Please let me know, if that helps.

 
Avatar
8 posts

…and do you guys remember, that apart of enabling comment plug-in and paste few lines of code to your layout, you need to open comments for every single article?

I’ve forgotten about it the first time when I’ve used the FrogCMS.

 
Avatar
6 posts

How do you open comments for each post?

 
Avatar
2 posts

we have similar findings nerdgirl, for a lazy a** like me, and who is tired with codes would really need a complete CMS, but hey frog looks like will be a good one in the long run and would compete agains Adobe Business Catalyst and the likes