But in vb3 this character is automatically present but in different way, as when the member is coming for register ,there is a little box for the name of the member whose invites him to join ,
After installing this hack, there will be there a link for every member to invite the members to register, and when the visitor follow the link which received it from the member to register, the little box that ask him about the name of member invited will not appear .
but if the visitor register in the usual way the box will appear.
and off course there will be the numbers of the members that follow the links + the numbers of the members that register with typing the name of member invited
and more than that,
so the number of new members that the member invited them what ever the way of their rigesteration.
and more than that, make a form in the main page to let the member invite the members by his e-mail, and will present the link of the member invited
in main e-mail and in reply
and show the number of referrals in a postbit
and each user can see he link in usercp.
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++
Queries >> 0
Files to Modify >> 3
Templates Added >> 1
Templates to Modify >> 5
add a phrases >> 4
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
if ($vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " . TABLE_PREFIX . "user AS user WHERE user.referrerid =
$post[userid]");
$referrals = @vb_number_format($refcount['count']);
}
Replace it with:
PHP Code:
if($bbuserinfo['userid']!=0 AND $post['userid']!=0){
if ($vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " . TABLE_PREFIX . "user AS user WHERE user.referrerid =
$post[userid]");
$referrals = @vb_number_format($refcount['count']);
}
}
very good hack .. i was searching somethign like this
when my board is closed from new Regisiter only the member whe is already Regisiter in the forums can invite their friend..
Or regisiter for them or just send them the new password and user name .. anyway nice hack
when I send invite to my friend to register, http://www.tinhyeutraiviet.com/forum...hp?refuserid=6, but when enter next steps, refuserid=0 (view source) and at the enter profile information screen, the Referrer still appear with empty input.
And if new member submited data, he was registered, but the old member (userid=6) is not the Referrer for this new member.
when I send invite to my friend to register, http://www.tinhyeutraiviet.com/forum...hp?refuserid=6, but when enter next steps, refuserid=0 (view source) and at the enter profile information screen, the Referrer still appear with empty input.
And if new member submited data, he was registered, but the old member (userid=6) is not the Referrer for this new member.
Please help me !!!
Seems to be a script problem. This thing was just poorly written. I am stripping it out of my code now. Waste of time.