![]() |
Bulletproof referral awards at registration
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. |
Interesting. I like this. ;)
|
What a good idea.! :)
|
Nice idea M8, well done.
|
Great idea! Installed!
|
good... never thought of this detail... even if i browsed most of the templates.. lol
|
Cool mod, thanks!
|
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:
|
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. |
Please post this in a text file for those who want to re-add it after an upgrade. ;)
|
All times are GMT. The time now is 01:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|