To be able to use the new script, you use "regForm('default','action');". default is where you enter the folder name of the custom template or leave it at default to use the default ones. where action is put the action you trying to do (registration or login, all lowercase).
full credit go's to FI-DD for making the RegisterMod, only thing i did was add a little more to it.
If you have any question fill free to ask and ll try to help you the best i can
PS. I'm not a PHP pro, so there may be some errors in the script that i didn't run in to, but it worked for what i needed it for, so I'm just sharing the love
PSS. before any one ask, if you want to make a log out script add this to your log out page
- Code: Select all
@setcookie('md5_password', '', time() - 3600);
@setcookie('username', '', time() - 3600);
@session_destroy();
@session_unset();
@setcookie(session_name(), '');
Edit: Bug fix redownload file or edit your self
plugins/registraton.php, on line 236
- Code: Select all
@setcookie('lastusername', mysql_escape_string($_POST['login']['username']), false, '/');
@setcookie('username', mysql_escape_string($_POST['login']['username']), false, '/');
@setcookie('md5_password', md5x($_POST['login']['passw']), false, '/');
replace with
- Code: Select all
@setcookie('lastusername', mysql_escape_string($_POST['register']['username']), false, '/');
@setcookie('username', mysql_escape_string($_POST['register']['username']), false, '/');
@setcookie('md5_password', md5x($_POST['register']['passw1']), false, '/');
