Hi everyone,
My client has got a news page, and it allows people to leave comments, unfortunately they've got loads of spam emails. I'm new to this, is there any way we can disable the comment field by default? How do I do it?
Thanks heaps.
Sam
Update - Because this is someone else's code, I just realised that they have some sort of spam protection already, so we are trying to disable the comment option. I have managed to set no comment by default by changing file BlogEntry.php
static $defaults = array(
"ProvideComments" => true,
'ShowInMenus' => false
);
to
static $defaults = array(
"ProvideComments" => false, //changed
'ShowInMenus' => false
);
Am I on the right track to disable comments by default? Also how can I stop on the news page showing the link of 0, or 5 or xxx comments? eg
Test
Posted by Admin on 21 June 2011 | 3 Comments
Tags: P
This is a test....
3 comments | Read the full post
Thanks. S:)
Update - If anyone is interested, I have been changing BlogSummary.ss since yesterday, but nothing changed on the news page. i have just found an old post, "because I was rebuilding the database by going to dev/build, but it was only rebuilding the main site, not the blog. when I added ?flush=1 to the blog url, it rebuilt and showed all my changes."
Thanks everyone. :)