Hi,
I have got the following problems:
I'm using the custom user-profile.tpl.php, and I want to display a user referral link
I tried this:

  // You have the user's $uid from the URL via arg() or some other way

  print l(t('referral link'), 'referral/' . _referral_uid2ref($uid));

but it doesn't work for drupal 7.2.

I tried as well to use the option "referral page", but it doesn't display the link either. It shows this message:

Notice: Undefined variable: output in referral_view() (line 391 with ....../sites/all/modules/referral/referral.module).

Can you help me with this? Thanks in advance

best regards

Comments

elkole’s picture

Hi,

I have changed $uid to $user->uid and now it works:

  print l(t('referral link'), 'referral/' . _referral_uid2ref($user->uid));

but that bug with "refferal page" is still alive.

best regards

jazzdrive3’s picture

Status: Active » Closed (fixed)

Fixed the bug by moving the declaration of $output further up. It was also what was clearing the $output variable later on. Should fix a few issues.