Find answers, ask questions, and connect with our community.

Timeline Forums UK Website Q&A (and WordPress) Hiding comments from non-logged in users.

  • Hiding comments from non-logged in users.

    Posted by profmag on February 24, 2021 at 3:21 am

    UK is a cross-generational platfrom. Since it has a population on minors, the content posted by users should not be public: requiring accounts and logging in to access personally-identifiable information adds a layer of protection from the Wild West of the Internet.

    Thankfully, Buddyboss has built in functionality that makes most of the user-generated content on the site logged-in only. However, this is not true of comments on blog posts. I’ve been researching ways to hide comments unless a user is logged in so that blog content is public but not user content in comments.

    I found one thread that advocates using CSS to do so. However, CSS does not remove the content, it just instructs the browser not to show it. This is easy to over-ride for a malicious actor and has little effect on bots and scrapers that don’t pay attention to CSS on pages anyway.

    Looks like I need to keep looking…

    profmag replied 5 years, 3 months ago 1 Member · 1 Reply
  • 1 Reply
  • profmag

    Administrator
    February 24, 2021 at 4:52 am

    Probably I can modify the comments hook on a template with a “logged-in conditional” and get the job done…

Log in to reply.