Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   HELP (http://www.bvlist.com/showthread.php?t=2357)

fireman 3rd April 2009 10:12

HELP
 
how do i turn email validation off with this tracker what do i edit or where can i fix this

joeroberts 3rd April 2009 14:47

FOR PMBT 2.X
open user/takeregister.php find
Code:

$sql = "INSERT INTO ".$db_prefix."_users (username, clean_username, email, password, act_key, regdate) VALUES ('".escape($username)."', '".strtolower($username)."', '".escape($email)."', '".md5($password)."', '".$act_key."', NOW());";
and replace with
Code:

$sql = "INSERT INTO ".$db_prefix."_users (username, clean_username, email, password, act_key, regdate, active) VALUES ('".escape($username)."', '".strtolower($username)."', '".escape($email)."', '".md5($password)."', '".$act_key."', NOW(),'1');";
that should automaticly set then active
then find
Code:

OpenTable(_btsignup);

$replace_markers = Array("**sitename**","**siteurl**","**username**","**password**","**key**");
$replace_data = Array ($sitename,$siteurl,$username,$password,md5($act_key));

$confirm_mail = New eMail;
$confirm_mail->sender = $admin_email;
$confirm_mail->subject = $userregconfirmmailsub[$language];
$confirm_mail->body = str_replace($replace_markers,$replace_data,$userregconfirmmailtext[$language]);
$confirm_mail->Add($email);
$confirm_mail->Send();

echo "

"._btregcomplete.spellmail($admin_email)."

";

and replace with
Code:

OpenTable(_btsignup);

/*$replace_markers = Array("**sitename**","**siteurl**","**username**","**password**","**key**");
$replace_data = Array ($sitename,$siteurl,$username,$password,md5($act_key));

$confirm_mail = New eMail;
$confirm_mail->sender = $admin_email;
$confirm_mail->subject = $userregconfirmmailsub[$language];
$confirm_mail->body = str_replace($replace_markers,$replace_data,$userregconfirmmailtext[$language]);
$confirm_mail->Add($email);
$confirm_mail->Send();
                if($forumshare)forumadd($username);

echo "

"._btregcomplete.spellmail($admin_email)."

";
*/
echo "

You have been registerd with this site Thank You

";



All times are GMT +2. The time now is 21:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.