The Arcive of vBulletin Modifications Site. |
|
Bulletproof referral awards at registration Details »»
|
|||||||||||||||||||||||||||
|
Bulletproof referral awards at registration
Developer Last Online: Dec 2008
The way vb is set up, means that it is possible for a registering user to clear the "referred by" field when they are completing the registration form - thus robbing the referring member of a referral point.
The following mod is to the "register" template, and tests whether the registering member has followed a referral link, and if they have, it doesn't show the "referred by" field at all, but hides it, so that the referring member definitely gets the referral award. In register template, look for: <if condition="$show['referrer']"> before this add: <if condition="$referrername"> <input type="hidden" name="referrername" value="$referrername" /> <else /> Now look for: <tr> <td> $vbphrase[referrer]:<br /> <input type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" /> </td> </tr> </table> </fieldset> </if> After this, add: </if> And that's it. All very simple. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Interesting. I like this.
|
|
#3
|
||||
|
||||
|
What a good idea.!
|
|
#4
|
||||
|
||||
|
Nice idea M8, well done.
|
|
#5
|
||||
|
||||
|
Great idea! Installed!
|
|
#6
|
|||
|
|||
|
good... never thought of this detail... even if i browsed most of the templates.. lol
|
|
#7
|
|||
|
|||
|
Cool mod, thanks!
|
|
#8
|
|||
|
|||
|
im gettnig the following error with the first edit
In register template, look for: <if condition="$show['referrer']"> before this add: <if condition="$referrername"> <input type="hidden" name="referrername" value="$referrername" /> <else /> Quote:
|
|
#9
|
|||
|
|||
|
actually never mind, you have to do both edits before u save.
i was in the habit of saving after each edit. thanks for this mod, it's great. |
|
#10
|
||||
|
||||
|
Please post this in a text file for those who want to re-add it after an upgrade.
|
![]() |
|
|