Closed (won't fix)
Project:
User Referral
Version:
5.x-1.x-dev
Component:
Code: referral
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2006 at 15:22 UTC
Updated:
3 Feb 2013 at 17:56 UTC
Not all people will know to send people their link, someone may just say something like, "Hey check out this site" or follow it via a link on their myspace page or whatever. It would be nice if they could fill in the username or user's e-mail whom referred them if they didn't follow it via the referral link.
Comments
Comment #1
liquidcms commentedwell until there is an option in the module for this - i added the following code to do what i think you are looking for.
I did this for 2 reasons - my client requested this sort of interface; plus i use rolesignup and registerprofile modules which don't work with the referral link approach
in case it isn't obvious you need to add this to a module such as example.module
hope this helps.
Peter Lindstrom
LiquidCMS - Content Management Solution Experts
Comment #2
doodikopf commentedYou could do this with the drupal module "Profile". It allows to add several user/admin-defined forms to the registration process. also it makes it possible to add things like gender, title or whatever to profiles, public or private.
regards
http://drupal.org/handbook/modules/profile
Comment #3
liquidcms commentedok, but i don't think you understand what this is doing.. or what the original posted asked for.
The field i added does not store any data to the database - it is simply a field to ask for a username (or email) so that it can add entries into the referral table used by the referral module.
Just adding a field with profile module doesn't do anything for me other than add a piece of info to db which i don't need for anything.
Comment #4
enxox commenteddoes it work on 5.1?
Comment #5
liquidcms commentedHi enxox,
I got your email and NO i havent done this for D5 hey. But have you tried it - it might work as is?
You nede to make a module - my code assumes it is called example.module.. basically just add the code into a file called modules/example/example.module
For Drupal 5 you iwll also need an .info file - but they are pretty small simple files - loko at any of the ones in std Drupal install copy it over to modules/example/example.info and edit a couple lines it.
Can't say it will work for sure as i havent done much Dr 5 work yet... but my code is not too complex so it may work as is.
Peter Lindstrom
LiquidCMS - Content Management Solution Experts
Comment #6
d0t101101 commentedHello Peter,
I just gave it a shot, but ran into this error when registering (with a referred userid entered on the user register page):
Fatal error: Call to undefined function module_exist() in /var/www/modules/referralid/referralid.module on line 64
Any idea why the userpoints part of this code isn't working with Drupal 5?? UserPoints latest version is installed...
'if (module_exist('userpoints')) {'
Regards
Comment #7
kbahey commentedIf you are using 5.x, then it is module_exists() with an S.
Comment #8
d0t101101 commentedThanks again kbahey, that fixed my error, and the referee is properly informed that the referrer will receive x number of points.
The above code is working on my Drupal 5.1 instance. Please consider including this functionality in the User Referral module, but of course it needs a lot more testing...
Comment #9
kbahey commentedIf you (or someone) merges it into the latest 5.x version of referral, and create a patch, I will include it.
Comment #10
pomliane commentedThis version of User Referral is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.