When one have to login or register to post comments, and wants to register, she wont be redirected to the "Registration" node.

She will stay at the original node page whith an error message: "You are not authorized to post comments."

Comments

cyberswat’s picture

Status: Active » Closed (won't fix)

Hi ... That is core behavior and not a bug in this module.

thamas’s picture

Status: Closed (won't fix) » Active

When you do not use Auto Assign Role, clicking the links redirects you to the registration page ("ceate new access") or to the login page. This is the drupal core behavior!

Using the Auto Assign Role registration page overwrite function makes the links in "Login or register to post comments" work as mentioned in the issue (just a warning text), instead of redirect users. So IMHO it is a problem of AAR and it needs a fix!

fhoubart’s picture

Version: 6.x-1.0-rc1 » 6.x-1.1
Priority: Normal » Critical

+1 subscribing. With this, overriding registration page path lose his utility. That's block a important functionnality of drupal ( user can't register if there is a desination parameter !!!). Thanks for looking.

mrgoltra’s picture

subscribing

Balbo’s picture

bump

cyberswat’s picture

Bumps are nice ... patches are better.

RiteshJain’s picture

Role based administrative approval feature should also be incorporated with this module..

Lars Jansen’s picture

Hey all,

I've spent a LOT of time on this issue but unfortunately I just don't have the know-how to fix it. I spent quiet a bit of time messing with alias's trying to overcome this but...nah.

To summarise:

At the top of your forum post page you have "Login or register to post comments". The login link is not a problem.

The "register" link is a problem because it points to: http://blahblah.co.nz/user/register?destination=comment%2Freply%2F24%23c....

http://blahblah.co.nz/user/register - works. Redirects to whatever you set it to in the admin area.

http://blahblah.co.nz/user/register?destinationbalhblah=whatever/balh - wont work. This does a refresh only and spits out a "You are not authorized to post comments." warning.

AAR is my fav module, it's awesome but this issue is really buggering it up for joe average drupal doods like me:)

Who can I pay to get this fixed?

casperloc76’s picture

Lars,

Better late than never... You can disable the registration links with a function in your template file.

function theme_comment_post_forbidden($node) {
  global $user;
  static $authenticated_post_comments;

      if (variable_get('user_register', 1)) {
        // Display login link to anon users
        return t('<a href="@login">Login</a> to post comments', array('@login' => url('user/login', array('query' => $destination))));
      }
      else {
        // Display login link
        return t('<a href="@login">Login</a> to post comments', array('@login' => url('user/login', array('query' => $destination))));
      }
    }

Place this inside your template file and rename "theme" to the name of your theme, clear drupal cache and the links should disappear.

God Bless,
Jeff

cyberswat’s picture

Status: Active » Closed (won't fix)

This sounds like a theming issue

gamelodge’s picture

I think this is the same issue - the patch there worked for me.

http://drupal.org/node/921896