• Hi,

    I require users to register and be logged-in in order to post comments on https://www.bbleaks.com However, using this feature in wordpress causes the comments to be hidden if you aren’t logged in. How can I show the comments even if you aren’t logged in?

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter bbleaks

    (@bbleaks)

    Need to clarify that I need to show comments to those who are NOT logged in or registered.

    Thanks,

    Click on Settings>>>>Discussions and set what you want from there there is one that only lets registered members to post a comment.

    Thread Starter bbleaks

    (@bbleaks)

    Right, I have it set where only registered members can comment. However, this hides the comments to those who are not logged in.

    How can I make it so the comments display whether you are logged in or not?

    Thanks,

    I just changed the setting where only registered memebrs can comment and I logged out and I can see comments fine Click on my name and one of articles with comments and you will see at bottom the form is longer there.

    So recheck your settings in discussions.

    Thread Starter bbleaks

    (@bbleaks)

    Odd, I checked my settings and they are set to: Users must be registered and logged in to comment

    However, if you goto any article on https://www.bbleaks.com that has comments, they don’t show up. I have no idea why.

    Thread Starter bbleaks

    (@bbleaks)

    May I please see your comments.php file? Maybe you have a setting different than mine?

    I have all ticked except
    Automatically close comments on articles older than days
    An administrator must always approve the comment

    Thread Starter bbleaks

    (@bbleaks)

    So, I kind of figured out the problem. However, it caused me to change a setting.

    I originally had moved the comment box above the comments, which is why the comments were not showing up when not logged in. I did not like that you had to scroll all the way down past the comments to make a comment.

    Is there a way to move the comment box above the comment list without it hiding the comments?

    edit: too late ??

    just saying:
    i can see comments, no problem, and i am definitely not registered or logged in – for instance in this single post:
    ‘want-to-be-a-guest-on-our-first-blackberry-podcast’

    but, obviously, you had it fixed.

    Thread Starter bbleaks

    (@bbleaks)

    @alchymyth Yes, I have just fixed that now by moving the comment box below the comments, as it is originally. The comments disappeared when I did this.

    However, is there a way to move the comment box above the comments so it is easier for people to comment. Rather than have to scroll all the way to the bottom.

    Is there a way to move the comment box above the comment list without it hiding the comments?

    probably, but this would involve re-writing the conditional statements that take care of registered or logged-in users; imho, quite a complex edit.

    first step: can you paste the code of comments.php into a https://wordpress.pastebin.com/ and post the link to it here?

    someone might have an idea …

    Thread Starter bbleaks

    (@bbleaks)

    Well, I ironically corrected it on my own lol

    Here is the completed code with the comment box above the comments, with an additional check to see if user is logged in, otherwise must login to comment.

    Check it here: https://wordpress.pastebin.com/EJcghXAW

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Show comments to unregistered or logged in users’ is closed to new replies.