referal links

Started by umiya, January 19, 2005, 09:41:43 PM

Previous topic - Next topic

SexyDSM95

I did everything exact and when I ran the query it ran perfect! When a new user goes to register the referral line is there and referrals do get entered into the database. The only problem I am having is in the profiles, there is no line in the profiles saying how many referrals each member has. I know personally I have around 3, can someone please help. Just tell me what you need me to post up and I shall. Thanks!

Ride

In profile.template.php just put this somewhere:

'$context['member']['referrals']

Here's a piece of my code so you get an idea.

// If karma enabled show the members karma.
if ($modSettings['karmaMode'] == '1')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
</td>
</tr>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
+', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
</td>
</tr>';
echo '
<tr>
<td><b>Referrals: </b></td>
<td>', $context['member']['referrals'], '</td>
</tr>
<tr>
<td><b>', $txt[233], ': </b></td>
<td>', $context['member']['registered'], '</td>
</tr><tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';

tarkhorani

it is have a place to send email to referrals
Get a Free SMForum on http://www.myboards.com (Ver 1.1.1)



Vinspire

So, is this mod working ?

Advertisement: