Hi there,

i recently downloaded role referral module (http://drupal.org/project/rolereferral) and installed it in my drupal website (www.site1.com). After i enabled this module, i went to check the configuration page and it only gave me an option to specify the referrer URL (www.site2.com -- where the link to site1 will appear) and to which role i should assign this to. However i can't get this up and running. My question is, i have several users under this particular role, how will this module determine to which particular user it should apply the authentication to? I have tried assigning one user (and deleted the others) to a role with the same name but it doesn't work as well, it still brings up the user login page when it should have given the user a direct access to the site without logging in.

Was i doing it right? or i missed out something?

Please advise.

Thank you.

Comments

Olarin’s picture

Status: Active » Closed (works as designed)

I think you have a slight misunderstanding of how the module works. It is NOT an auto-login module. All it does is temporarily (for the length of a session) assign a role to an anonymous user. So upon using the referring URL, you should have all the access priveleges of the role which you told my module to grant, but you still won't be logged in.

Also, make sure the referrer URL you specify is exactly what will come thru in the html header - if the link is on a page like http://www.site2.com/links/links.html, then simply specifying the server (http://www.site2.com) will not be sufficient.

Please let me know if you have further questions or problems. If necessary, I might be able to set up an example site to demonstrate how it's intended to work.

shopgirl_11’s picture

Hi Olarin,

Thanks for your immediate response. So basically, this module is intended to anonymous users only right? I was thinking of creating different roles with different access to contents using taxonomy access control lite. But it got me thinking, creating roles wouldn't be enough because technically there was no username and password assigned -- how will it recognize that the intended role to be used is for anonymous user or for another role? I guess tweaking the code will do the trick, unfortunately that is not my option for now as coding is not my forte.

By the way, would it be possible to show me an example site of how this module should work?

Waiting for your soonest response. Thanks again, appreciate your help. :)

Olarin’s picture

Ah, I never responded to this, I'm sorry. It's probably too late to matter now. I don't have time to set up an example site, but let me try to explain again how it works:

- Your site has various roles - such as anonymous user, and authenticated user. You install my module, and create a new role, calling it something like "referred user", and use that role for my module.

- You use a module like Taxonomy Access Lite to control who can view which nodes on your site. You have a node called "foo" you don't want viewable to the public - so the "anonymous user" role is not allowed to see it - but you make it visible to "authenticated user" and "referred user".

- someone comes to your site cold without logging in. they only have the permissions of "anonymous user". they are denied access to "foo".

- someone comes to your site without logging in, but using the 'referred' link from a page you've specified as a referrer. they are still not logged in, but they now have the permissions of both "anonymous user" and "referred user", so they will be able to access the "foo" node.

- someone comes to your site and logs in. they now have the "authenticated user" role, so if "foo" is visible to authenticated user they can see it. (you could also give your users the "referred user" role if you want, so that they have all the permissions that an anonymous user coming in thru the referred link would have - it won't affect the working of my module one way or the other.)

cestmoi’s picture

cestmoi’s picture

Title: Role Referral 6.x problem » Role Referral not working as expected (refered visitor still cant access)
Status: Closed (works as designed) » Active

Hi, thanks for the module
(sorry I had to resubmit this in order to change the issue status)

I installed the module, created a new role called "refered visitors", granted permissions to view book types.
I added the referring link in the mod admin and granted the new role to it.
I tested it, not working as supposed (i.e. the refered visitor still cannot see the page)
I changed the role to authenticated user role. Tested, still no luck !

I use "Content Access" mod to control node access. I double checked the refered-to page and access IS granted to both authenticated and "refered visitor" users same.

What is wrong ?!

I greatly appreciate any hints

cestmoi’s picture

anyone reading this ? if no more support, then why not say that please ?!

:(