Closed (fixed)
Project:
User Referral
Version:
7.x-1.0-beta1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 May 2011 at 17:09 UTC
Updated:
4 Jun 2011 at 18:54 UTC
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
Comment #1
elkole commentedHi,
I have changed $uid to $user->uid and now it works:
but that bug with "refferal page" is still alive.
best regards
Comment #2
jazzdrive3 commentedFixed 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.