Greg-J
07-30-2006, 10:00 PM
This is just an 'improvement' of MacMorag (https://vborg.vbsupport.ru/member.php?u=3505)'s Bulletproof referral awards at registration (https://vborg.vbsupport.ru/showthread.php?t=98592). It's a great simple little hack, but I would prefer the user knows who referred them rather than leave them in the dark. This allows your referral to see who referred them, but does not allow them to change who that was.
Open the Registration Templates ? register template and find:
<if condition="$referrername">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" disabled="disabled" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
<else />
And _REPLACE_ it with this:
<if condition="$referrername">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" disabled="disabled" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
<else />
<if condition="$show['referrer']">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
</if>
</if>
You're all set.
Credit to MacMorag for inspiration.
P.S. Used in conjunction with https://vborg.vbsupport.ru/showthread.php?p=1021459 it can really make a difference.
Open the Registration Templates ? register template and find:
<if condition="$referrername">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" disabled="disabled" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
<else />
And _REPLACE_ it with this:
<if condition="$referrername">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" disabled="disabled" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
<else />
<if condition="$show['referrer']">
<fieldset class="fieldset">
<legend>$vbphrase[referrer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td>
</tr>
<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
</if>
</if>
You're all set.
Credit to MacMorag for inspiration.
P.S. Used in conjunction with https://vborg.vbsupport.ru/showthread.php?p=1021459 it can really make a difference.