Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
opdaviesThis should have been fixed in the latest 7.x-1.x-dev version, after committing #1931544.
Comment #2
pruttkay CreditAttribution: pruttkay commentedThis 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
Comment #3
E Johnson CreditAttribution: E Johnson commentedIs there any workarounds for this?
Comment #4
mattwmc CreditAttribution: mattwmc commentedLooking 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.
Comment #5
opdaviesRe-opening.
Comment #6
mattwmc CreditAttribution: mattwmc commentedUpdate: 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.
Comment #8
opdaviesI'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.
Comment #9
opdaviesComment #10
opdaviesReleased as 7.x-2.1.