I was wondering if there is a configuration for this module that I am missing. Links to login and comment are not part of the block and are still part of the main content. Is it possible to make them part of the block so for anonymous users see links to login or register in this block and authenticated users see the form.
Thanks.
Peter

Comments

opdavies’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

This should have been fixed in the latest 7.x-1.x-dev version, after committing #1931544.

pruttkay’s picture

This still doesn't work. Now it does show login links in the block but also in article.
Plus, if there are no comments the block doesn't show the login links, which makes this unusable.
Peter

E Johnson’s picture

Is there any workarounds for this?

mattwmc’s picture

Looking for something similar.

The block doesn't show to Anonymous users if there are no comments.

Kinda pointless if you are trying to build a community.

The block should still show to Anonymous users (so they can see the 'Comments' title), but say something like "be the first to comment" or "start the conversation" with a link to sign up.

Maybe even have a textarea and a post button, but when the Anonymous user goes to comment and hits post (or save), it says you need to login with a link to do that.

opdavies’s picture

Status: Closed (duplicate) » Active

Re-opening.

mattwmc’s picture

Update: Upon further thinking, I suppose I can just create a block that only shows to Anonymous users that looks similar to the Comment block with a link to sign up and login. Then once they login, they wouldn't know the difference.

  • opdavies committed 21032d6 on 7.x-2.x
    Issue #2058309 by opdavies: Comments Login not part of the block
    
opdavies’s picture

I've set up a new D7 site with the default permissions for comments, so that anonymous users cannot post comments.

With Node Comment Block both enabled and disabled I see the default 'Log in or register to post comments' text on an article node and within the comment block, so this isn't being affected by the module.

If I add the 'Post comments' permission to anonymous users, I see the comment form as expected.

This makes sense to me as it follows the precedent set by core.

However, I've added another checkbox for the block settings which allows for displaying the standard "Log in or register to posts comments" text. If you need/want to change that text, I'd suggest using the String Overrides module or overrides in settings.php.

opdavies’s picture

Version: 7.x-1.0 » 7.x-2.x-dev
opdavies’s picture

Status: Active » Fixed

Released as 7.x-2.1.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.