I'm thinking of starting a branch of this for Drupal 7, but first I wanted to see what feature requests people had in mind.

One thing I know I would want is tight Rules integration. This would allow interaction with stuff like Drupal Commerce, and many other modules.

So deciding when a user is marked as the "referring user" would be decided by Rules. Lists of referrals, etc would also be handled by views.

Any other feature requests?

Comments

chriz001’s picture

integration with the forward module?

http://drupal.org/project/forward

jazzdrive3’s picture

Integration with the Forward module shouldn't be too tough.

hendrakieran’s picture

What about getting it to work in Drupal 7 "as is" first?

Oceanman’s picture

subscribing

babyland’s picture

subscribing

Jimmed’s picture

Subscribing

jazzdrive3’s picture

Looking at the forward module code, there is no way to hook into the process that determines the URL that is included in the email. It looks like it would be easy to do, but we need explicit changes to the forward module to even have a chance of integration. If someone wants to open up a ticket in their queue, go right ahead.

We need a "module_invoke_all" call somewhere in the "forward_node_view" function so we could modify the forward URL.

In line 1100 of the rc3 of the drupal 7 version of forward:

$form_state['values']['path'] = 'node/' . $node->nid;

I assume it would need to be right after that line.

UPDATE:Actually, we should be able to just use node_view_alter. Nevermind.

jazzdrive3’s picture

Ok, I've almost got everything working, including Forward module support (although its rudimentary).

I am going to start working on Rules integration, but will probably try to get the basics up pretty soon.

jazzdrive3’s picture

I will be uploading everything into my sandbox over the weekend. It's done with some good rules integration.

Everything you could do with the basic module is now ported to Drupal 7, plus with rules you can:

- Act on the event of a new referred user being saved
- Check if a referral is flagged
- Check if a user was referred by a another user
- Flag a referral
- Unflag a referral
- Set a new referral
- Change a referring user

So while native Userpoints integration is no longer here, it will be easy to implement with Rules.

Eventually I will do another module that integrates into Referral and the new Drupal Commerce to create a very basic affiliate system.

But next up will be Views integration and adding the relation to User based views.

jazzdrive3’s picture

You can view the sandbox project and even download it at http://drupal.org/sandbox/jazzdrive3/1158364

I will contact kbahey and see if he can put the code in a new 7.x branch.

jazzdrive3’s picture

Status: Active » Closed (fixed)

The first beta has been released.

Please open new issues for additional feature requests.