Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

749 Posts in 190 Topics by 244 members

Blog Module

SilverStripe Forums » Blog Module » Forum Login to Comment on Blog

Discuss the Blog Module.

Page: 1
Go to End
Author Topic: Forum Login to Comment on Blog 427 Views
  • Clairmont
    avatar
    Community Member
    3 posts

    Forum Login to Comment on Blog Link to this post

    I've done a search and came across one post that described the steps to take to require login to forum username for blog commenting:

    http://silverstripe.org/archive/show/159269

    I did as it suggested, adding the PageComment::set_comments_require_login(true); line to the bottom of my /mysite/_config.php, but when I reload the file to my server, my entire install gets borked. Thinking I was using the wrong _config.php, I also added it to the empty /blog/_config.php, but ended with the same issue. If I could get some help with what I could be doing wrong here, it would be appreciated.

    My main direction I'm wanting to use silverstripe is to have a unified login for the site, where the members are users of the 'site' and not necessarily just the forums. Being able to require login for comment is a step in that direction, and I don't foresee any other needs beyond that at this stage. Possibly I'd like to take it into the direction similar to what the poster in the linked post was wanting as well: showing the avatars within the comments as well.

    Thanks for putting together a great CMS.

  • Willr
    avatar
    Moderator
    2736 posts

    Re: Forum Login to Comment on Blog Link to this post

    my entire install gets borked

    Can you explain the error? Perhaps put the site into devmode to get the full error message. It could be as simple as a typo.

    But yes that method should still work - we have it running for californiawomen.org. Blog commenting is locked down to members just by adding that 1 line.

  • Clairmont
    avatar
    Community Member
    3 posts

    Re: Forum Login to Comment on Blog Link to this post

    Fatal error: Call to undefined method PageComment::set_comments_require_login() in /usr/home/webpage/public_html/test/mysite/_config.php on line 28

    Is the error I'm getting once I upload and refresh. This installation is running on a subdomain, and therefore is running on a directory below the main site, as I'm just using one of my sites as a testbed. I didn't think that would effect the installation, but I might be mistaken.

  • Willr
    avatar
    Moderator
    2736 posts

    Re: Forum Login to Comment on Blog Link to this post

    I think it is PageCommentInterface::set_comments_require_login(true); not PageComment::set_comments_require_login()

  • Clairmont
    avatar
    Community Member
    3 posts

    Re: Forum Login to Comment on Blog Link to this post

    Thank you very much, willr, that worked perfectly.

    427 Views
Page: 1
Go to Top

Currently Online: aram, Ingo, Judge, Sean, eskimo, steve_nyhof

Welcome to our latest member: jasonthkim

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.