I changed $referbits to $referbit in the refer template -- but that didn't change anything.
Quote:
This hack is to show statistics on referrals that have been made. For instance, if you referred 5 people, it will show the 5 people you referred as well as a count of referrals for you which would be 5 and your username as the referrer. This is just for statistics.
|
What I don't understand is what is the link between the referrer and the referred? I tried a throwdown registration -- and I was not asked who referred me. No where in the instructions did I do anything to perform a database modification.
These were the instructions from the hack I downloaded earlier today.
Quote:
Installation Instructions:
I have edited this code from vb version 2.x.x to work with vb 3.0.1.
follow the instructions below to install, and feel free to make any
modifications to the code as you wish. I made some options for this
hack to limit results such as referrals by usergroups. More instructions
on implementing the results limiter is in the referals.php
Thanks to unixman - all the referred members are now clickable to their profile.
Open /includes/functions_online.php
/////////////////////////////////////
/////////////////////////////////////
Search for:
/////////////////////////////////////
case 'modcplogin':
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
break;
/////////////////////////////////////
After add:
/////////////////////////////////////
case 'referrals':
$userinfo['action'] = 'Viewing Referral Statistics';
break;
/////////////////////////////////////
Search for:
/////////////////////////////////////
case '/robots.txt':
$userinfo['activity'] = 'spider';
break;
/////////////////////////////////////
After add:
/////////////////////////////////////
case 'referals.php':
$userinfo['activity'] = 'referrals';
break;
/////////////////////////////////////
Close functions_online.php and upload to server.
/////////////////////////////////////
Open refer.txt attached to this hack and add a new template
named: refer copy and paste all into this template.
Open referbit.txt attached to this hack and add a new template
named: referbit copy and paste all into this template.
//////////////////////////////////////
//////////////////////////////////////
Open your footer template and find:
//////////////////////////////////////
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
//////////////////////////////////////
Before it add:
//////////////////////////////////////
<a href="referals.php">Referral Statistics</a> -
//////////////////////////////////////
END ENJOY.... HAVE FUN WITH IT.......
|
I've gone over the steps outline above, plus the path to my forum in the referal.php, and put that in my forum's directory. I've had a long day and it is possible that I'm missing something obvious -- but I've gone over the instructions many times and can't see it.
I might also suggest that it may help alieviate a little confusion if your above instructions indicate what directory to upload the referal.php file to -- and a little clarity on the directory change you need to make to the file first.