When logged-out this line gets rendered as text :
login or register to post comments

This comes apparently from this function:
function theme_nodecomment_post_forbidden($nid) {
global $user;
if ($user->uid) {
return t("you can't post comments");
}
else {
// we cannot use drupal_get_destination() because these links sometimes appear on /node and taxo listing pages
if (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
// TODO: This is wrong and has to be addressed with the whole separate page business.
$destination = "destination=". drupal_urlencode("node/$nid#nodecomment_form");
}
else {
$destination = "destination=". drupal_urlencode("node/$nid#nodecomment_form");
}

if (variable_get('user_register', 1)) {
return t('login or register to post comments', array('@login' => url('user/login', $destination), '@register' => url('user/register', $destination)));
}
else {
return t('login to post comments', array('@login' => url('user/login', $destination)));
}
}
}

I am currently installing and working with node comments, and having solved the "recent posts" issue, I came accross this. I am currently reviewing the module, and I can't yet see what exactly causes this problem.

My anonymous users can only : "access comments" , "access content" , "access users" and "access views"

Going to see if I can find a way around it in the meantime (or solve it *cross fingers*)

I upgraded from 1.x-dev to beta2 and both have same behaviour...

Comments

robertdouglass’s picture

Status: Active » Fixed

Thanks for reporting. Fixed in beta3

Paintbox’s picture

Thank you for updating, checking out your fix asap on my site that uses node comments...:)

Anonymous’s picture

Status: Fixed » Closed (fixed)
inadelowercase’s picture

I have run into that same situation in Drupal 5.2. Is there a fix ? If yes, how can I find it ? Tx