Closed (fixed)
Project:
User Referral
Version:
6.x-1.x-dev
Component:
Code: referral
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 14:54 UTC
Updated:
27 May 2011 at 21:00 UTC
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
Comment #1
chriz001 commentedintegration with the forward module?
http://drupal.org/project/forward
Comment #2
jazzdrive3 commentedIntegration with the Forward module shouldn't be too tough.
Comment #3
hendrakieran commentedWhat about getting it to work in Drupal 7 "as is" first?
Comment #4
Oceanman commentedsubscribing
Comment #5
babyland commentedsubscribing
Comment #6
Jimmed commentedSubscribing
Comment #7
jazzdrive3 commentedLooking 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.
Comment #8
jazzdrive3 commentedOk, 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.
Comment #9
jazzdrive3 commentedI 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.
Comment #10
jazzdrive3 commentedYou 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.
Comment #11
jazzdrive3 commentedThe first beta has been released.
Please open new issues for additional feature requests.