17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1196 Views |
-
Can't delete comments?

13 July 2007 at 12:09am
I've just started playing around with Silverstripe over the past few days (nice CMS btw!); and presently working my way through Tutorial 2. I've enabled comments, posted a few... but there's no way to remove them?
I thought this unusual, so had a browse through the code and reached PageComment.php and it appears as though a delete link is supposed to appear when I'm logged in (though I could be mistaken)?
I'm most certainly logged in! Any ideas?
-
Re: Can't delete comments?

13 July 2007 at 9:54am
Hi,
is you use SS 2.0.1, then the membership checks in the PageComment.php are wrong. You have to fix them, or to set manually a flag CanCMSAdmin in the Group table in MySQL.
-
Re: Can't delete comments?

13 July 2007 at 1:06pm
Hi, thanks for the reply.
I am running SS2.0.1.
Could you be a little more specific as to what/how I fix the membership checks in PageComment.php?
I'm still quite new to PHP!
Thanks in advance.
-
Re: Can't delete comments?

15 July 2007 at 9:41am
in PageComment.php replace all:
[code php]
if($member && $member->isCMSUser()) {for
[code php]
if($member) {
| 1196 Views | ||
|
Page:
1
|
Go to Top |

