Monday 15 June 2009 6:36:56 am
We are implementing a blog connected to a website we're developing.
We started from the classes and templates found in ezwebin.
The default way is to allow comments only to registered users. If I give anonymous user the permission to create comments, then everybody can comment. But there is no filter, no moderation of any kind, so that the comments are visible on the website. Is there a way to make comments hidden by default? I was thinking about adding an attribute to the comment class, and check that attribute before showing the comment, but I think that hide/show is easier for the moderator.
Another thing: I would like to show the comment form straight after the blog post. What I don't totally get is how the creation of the object (comment) works: I'm not sure where it gets its ID from once the comment form is submitted, and what happens if the submission fails (I would like the user to see the error message on the blog post page and not on the comment page - in fact I wouldn't have a comment page at all). Is it feasable?
Thanks in advance, Mirko.
|