Hello
I have This custom Hack for VB3 Sinse i upgrade to vB3.5 alot of code change and i'm poor in PHP :devious: I hope i can Get this work
In the Regisiter.php I have this code
Quote:
// ######################## START MAIN SCRIPT ############################
|
Then I add This Code.
Quote:
require_once('./admincp/credits/includes/functions_invites.php');
require_once('./admincp/credits/includes/credits_functions.php');
$mod_reg = extract_mod_values("credits_system_reg");
if ($mod_reg['status'] == "ON")
{
if ($_REQUEST['act']=="cook_key")
{
$regkey=$_REQUEST['regkey'];
cook_key($regkey);
}else{
$regkey=$_COOKIE[vb_register_key];
$is_key = check_key();
if($is_key==false)
{
//prompot for key
$regkey=$_REQUEST['regkey'];
eval('print_output("' . fetch_template(register_prompot_key) . '");');
}
}
}
if($is_key==true OR $mod_reg['status']=="OFF")
{
$regkey=$_COOKIE[vb_register_key];
|
Then Find.
Quote:
$userid = $DB_site->insert_id();
|
add :
Quote:
$reg_info = $DB_site->query_first("select * from reg_mod where register_key='$regkey'");
$reg_info2 = $DB_site->query_first("select * from " . TABLE_PREFIX . "user where userid='$reg_info[inv_userid]'");
$total_reg=$reg_info2[userid]."|".$userid;
$DB_site->query("Update " . TABLE_PREFIX . "user set invited='$total_reg' where userid='$reg_info[inv_userid]'");
|
find :
Quote:
eval(print_standard_error('registration_complete', 1, 0));
|
Above Add :
Quote:
$DB_site->query("Delete from reg_mod where register_key='$regkey'");
|
Find
Quote:
eval('print_output("' . fetch_template('activate_requestemail') . '");');
|
Above Add :
Quote:
$DB_site->query("Delete from invites_mod where register_key='$regkey'");
|
Then i find
Above I add
i dont post the all code here but please someone commants how i can make this work with vB3.5 maybe a product or something maybe i update it later to post the whole code here ..
Thankyou
Okie