[development] invite module

Khalid B kb at 2bits.com
Fri May 26 18:02:10 UTC 2006


On 5/26/06, Kieran Lal <kieran at civicspacelabs.org> wrote:
>
> On May 26, 2006, at 8:07 AM, Khalid B wrote:
>
> > Hello all.
> >
> > I am thinking of deprecating my referral module in favor of invite
> > module,
> > now that 4.7 (and not HEAD) has hooks that I can use in adsense and
> > userpoints. This avoids code duplication and user confusion.
> >
> > There is a need to add more hooks at certain points (e.g. when invited
> > user actually registers, before role escalation),
> >
> > Also, there is a need to add some sort of callable query on whether a
> > certain uid was  referred by another?
> >
> > Upon contacting Robert Douglass (who did the last round of changes to
> > that module) he agrees with my proposed additions. I tried to contact
> > Tatonca (Christopher Hill), but no reply since.
> >
> > So, I am asking here once more in case Chris lurks around. If do not
> > hear from him in a few days, I will take over temporary ownership of
> > the module, add the hooks in, update HEAD to 4.7.
> >
> > Any objections, comments, flames?
>
> We definitely want to see a strongly supported invite module.
>
> Are you going to use the mimemail module?  Our hope is to get
> mimemail.inc into 4.8 core.

I don't plan to drastically change how invite works. Rather, I want to
make it easier for other modules to hook into it with no patching or
custom changes.

For example, a site owner can decide to split the revenue sharing
feature from adsense between the author of a node, and the user
who invited the author. Another example is where users gain points
when they invite others, and when the invitee signs up.

For ecommerce, we can have discounts for those who invite others,
...etc.

By providing an API, the possibilities are endless.


More information about the development mailing list