Quote:
Originally Posted by all-the-vb
try this:
open File: includes/functions_showthread.php
find:
PHP Code:
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