PDA

View Full Version : Help in lil MOD


Okie
10-30-2005, 03:46 AM
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

// ######################## START MAIN SCRIPT ############################

Then I add This Code.


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.

$userid = $DB_site->insert_id();

add :



$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 :
eval(print_standard_error('registration_complete', 1, 0));

Above Add :



$DB_site->query("Delete from reg_mod where register_key='$regkey'");

Find

eval('print_output("' . fetch_template('activate_requestemail') . '");');

Above Add :

$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

Marco van Herwaarden
11-01-2005, 09:29 AM
Please see the HOW-TO forum on tips for converting scripts from vB3.0 to vB3.5

Okie
11-05-2005, 11:21 AM
i'm trying to find that thread but i dont .. could you please point me to that thread ?

thanks alot :)

msgotit
11-05-2005, 05:18 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=98047" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=98047</a>

Try that