Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
It's true that it should be an option
but at the same time, username can change, userid don't and so hex code based on user id won't change.
But that should be an option yes, urls look better that way.
I'm new to this module and am considering using it on one of my sites. I read the following on the module's project page, but correct me if I'm wrong here.
Referral information is recorded for a visitor in a cookie, when either of the following happens:
A non-registered visitor clicks on the referral link, or
A non-registered visitor visits the profile page of the referring user. This requires the profile page to be visible for anonymous users.
Wouldn't the second item above do what you want? Ultimately, you could give out your own profile page's URL and it would set the cookie to have you as the referrer. Then, if the referred user joins, you get credit for the referral. This assumes that your profile pages are viewable for anonymous users, of course.
Again, I'm new to the module, but this seems to give you what you want, if it works as advertised. If not, please correct me because I am trying to learn more about this module as I go along.
oh yes, if it works as advertized that would be a nice option. I wasn't aware of this feature.
But usually the way I set the referral links is to go directly to the sign up form, not let referrals find their way from a page of the site to the sign up form.
Wouldn´t the ability to change the alias url for the hex code be a solution. So that if the username changes the link also changes.
Is it possible to do that?
install pathauto module, then in the settings, go to the part about user, and put the token about username..
Sorry to not give you detailled information, but it is very simple, and yes you only have to set it up once and you're done.
It works exactly the same for nodes if you want a nice url instead of node/XX
Moving this feature request to 7x-Dev as this is still needed.
1) Many sites are stores and not social networks, so looking at other members' profiles is not a valid option.
2) The link is printed on the user's profile with the hex code, so you have people putting this link anywhere anyway.
3) Many sites don't allow users to change their usernames so that wouldn't even be an issue.
I'm going to look through the module and see where this function lives and see if there's a good way to patch. If the maintainer is staunchly opposed to committing this feature, that's fine, but if I get a patch working it might be possible to have something in place if we really are an edge case.
Comments
Comment #1
alliax commentedIt's true that it should be an option
but at the same time, username can change, userid don't and so hex code based on user id won't change.
But that should be an option yes, urls look better that way.
Comment #2
dmetzcher commentedI'm new to this module and am considering using it on one of my sites. I read the following on the module's project page, but correct me if I'm wrong here.
Wouldn't the second item above do what you want? Ultimately, you could give out your own profile page's URL and it would set the cookie to have you as the referrer. Then, if the referred user joins, you get credit for the referral. This assumes that your profile pages are viewable for anonymous users, of course.
Again, I'm new to the module, but this seems to give you what you want, if it works as advertised. If not, please correct me because I am trying to learn more about this module as I go along.
Comment #3
alliax commentedoh yes, if it works as advertized that would be a nice option. I wasn't aware of this feature.
But usually the way I set the referral links is to go directly to the sign up form, not let referrals find their way from a page of the site to the sign up form.
Comment #4
sneakerr commentedWouldn´t the ability to change the alias url for the hex code be a solution. So that if the username changes the link also changes.
Is it possible to do that?
Comment #5
ratinakage commentedHi,
Links to a user's profile page also don't have their username. Or am I missing something?
Thanks....
Comment #6
alliax commentedYou can use pathauto module in order to have the username in the url of the user's profile. I nearly always do that.
Comment #7
ratinakage commentedThanks Alliax,
Is there an automated way of doing that or would I need to manually do it for each user?
Cheers...
Comment #8
alliax commentedinstall pathauto module, then in the settings, go to the part about user, and put the token about username..
Sorry to not give you detailled information, but it is very simple, and yes you only have to set it up once and you're done.
It works exactly the same for nodes if you want a nice url instead of node/XX
Comment #9
ratinakage commentedAwesome. Thanks!! :)
Comment #10
RKS commentedMoving this feature request to 7x-Dev as this is still needed.
1) Many sites are stores and not social networks, so looking at other members' profiles is not a valid option.
2) The link is printed on the user's profile with the hex code, so you have people putting this link anywhere anyway.
3) Many sites don't allow users to change their usernames so that wouldn't even be an issue.
I'm going to look through the module and see where this function lives and see if there's a good way to patch. If the maintainer is staunchly opposed to committing this feature, that's fine, but if I get a patch working it might be possible to have something in place if we really are an edge case.