Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Referral code request (27th Feb 10 at 10:24am UTC) | | Try this in the main footer:
<script type = 'text/javascript'> /* Referrer Code - Custom Field Version - Michael */ var f = 'custom4'; if(location.href.match(/\/r\/(.+?)($|\/)/)) document.getElementsByName(f)[0].value = RegExp.$1; </script>
I haven't tested it but it should work.
Then you can use the link http://tfah.vforums.us/action/register/r/admin I'm using /r/username because many people might misspell referrer etc... And r keeps it nice and short.
Let me know if there's any problems.
| |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Referral code request (26th Apr 10 at 10:09pm UTC) | | Where would you like it showing...?
And to clarify, if you went to your profile, you would see your referral link?
| |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Referral code request (26th Apr 10 at 10:30pm UTC) | | Main Footer:
<script type = 'text/javascript'> /* Referral Link in Profile - Wrighty */ if((location.href.match(/\/profile\/(.+?)(\/|$)/) && RegExp.$1 == vf_username) || location.href.match(/\/view_profile(\/|$)/)){ with(a = document.createElement('a')){ href = '#' innerHTML = "My Referral Link"; onclick = function(){ prompt("The below link is your referral link, use it to gain referrers.", "http://" + location.host + "/action/register/r/" + vf_username); } } with(get('span', 'tag', get('profile_links', 'id'))[0]){ appendChild(document.createTextNode(" :: ")); appendChild(a); } } </script>
| |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Referral code request (26th Apr 10 at 10:34pm UTC) | | Glad it does.
| |
|