Is it possible to create the following scenario:
when NEW user visit some user profile page, upon doing that, a referral cookie is implented and when the NEW user will decide to register, the user which reffered him will see new reffered..

Secondly - Email notification beign sent to a user upon new reffered and/or new "flaged" user would be GREAT!

CommentFileSizeAuthor
#1 339439.patch917 bytesaufumy

Comments

aufumy’s picture

Status: Active » Needs review
StatusFileSize
new917 bytes

Sets the cookie if you visit a users profile page. This assumes that anonymous viewers can view user profile pages.

eranglr’s picture

Thank you A LOT! (I guess not only from myself).
It work's like a charm, is it implanted in the new release?
Is it possible notify the refer user (the user that own the profile) upon new registration user or/and new flagged user?

aufumy’s picture

I will have a look tonight. The way to expedite a patch into the project release, is after testing that it works, to change the issue status to "patch (reviewed & tested by the community)".

eranglr’s picture

Status: Needs review » Reviewed & tested by the community

ok, I'm new to this.
anyway, your patch seems to work well, one scenario (which needs to be mention) could be:

user A visited user B profile, after that went to see user C profile. upon registration, user C will be the one who will get the reffer-credit. maybe there could be a checkbox that will let admin choose the scenario needed (first or last profile viewed).

Also, I had thought about the notification mail, it could be done using userpoints email (http://drupal.org/project/userpoints_contrib).
problems is: first - this module is not yet imported to drupal 6 (part of this contrib ARE ported, but not this feature). secondly, it means that you have to install userpoints + email points modules, just to notify a user upon new reffered/flaged user.

Personally, I like the flexibility of the combination between modules.
if you need my help (by making you coffe - my coding skills suck, just page me :0 ).

btw - how can I get notification email about new comments regarding this/other issues here instead of just going over and over to this thread?

kbahey’s picture

Title: Referral WITHOUT a link + Email notification » Referral WITHOUT clicking the referral link
Status: Reviewed & tested by the community » Fixed

We are doing this hodge podge and mixing up all kinds of modules and all kinds of requirements/features.

Let us do this right, without confusing the user with features. Open a new feature for the email notificiation.

I committed aufumy's patch, and it should be in the 6.x-1.x-dev version in about 2 hours or so. So it needs to be tested and verified. If it does not work then reopen this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.