Hi,

I want to know if it is possible to show a user referrer with a php snippet. Is is possible to show the "current user" referrer with a php snippet on a page or a block?

Thank you.

Comments

Damion’s picture

I would also like to know how to do this.

simple code to put in a block would be great:

get referrer_uid where uid = $uid //get the referrer uid
print 'referred by < br>' . referrer_uid->profile_custom_name . '< br>' . profile_username($user);

Got the quick and easy way to pull this?

Damion’s picture

I got it to work for anyone interested.

You can see thread at http://drupal.org/node/221018#comment-727794

kbahey’s picture

Status: Active » Postponed (maintainer needs more info)

If you can make this into a patch, using hook_block, then it would be a nice feature to have.

rmacleod’s picture

It seems that the code listed at the following link, actually shows the Referrer ID for the owner or creator of the node. Not the user who is logged in.

http://drupal.org/node/221018#comment-727794

Does anyone have an idea on how to adapt it to show the referrer of the logged in person.

Also, is it possible to show the referrer info on the thank you page that is shown after someone signs up to the site.

So a newly referred person will see the name and website of the user that referred them to the site.

Cheers!
Thanks
Rick M.

pomliane’s picture

Component: Code » Code: referral
Status: Postponed (maintainer needs more info) » Closed (won't fix)

This 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.