The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
Hi again,
during the last days I figured out where to add the code to add a new vBulletin user also to a phpNUKE database. But I've one (maybe stupid) problem... All informations (username, eMail address,...) will be stored as they should BUT the user password is not working if you want to login into phpNUKE (logon into the forum is working well). If figured out, that my modfication just insert the MD5 value as plain text (not crypted)... I mean the numbers and letters. So, my questions is how to read and insert the password as real MD5 hash value so that the phpNUKE login is also working?!? I think I've to read the password as MD5 hash or something like that and not in the way I try it... I hope you know what I mean ![]() Here's the code I use: In "class_dm_user.php" I made these changes: Code:
// INSERT NEW USER else { // fill in any registration defaults $this->set_registration_defaults(); // insert query if ($return = $this->db_insert(TABLE_PREFIX, 'user', $doquery)) { $this->set('userid', $return); $this->db_insert(TABLE_PREFIX, 'userfield', $doquery); $this->db_insert(TABLE_PREFIX, 'usertextfield', $doquery); // START - THIS IS MY NEW CODE $username = $this->fetch_field('username'); $password = $this->fetch_field('password'); $email = $this->fetch_field('email'); $joindate = $this->fetch_field('joindate'); mysql_query("insert into nuke_users (username, user_email, user_website, user_avatar, user_regdate, user_icq, user_aim, user_yim, user_viewemail, user_password) values ('$username', '$email', '', 'gallery/blank.gif', '$joindate', '', '', '', '', '$password')"); // END - THIS IS MY NEW CODE // Send welcome PM" string ..... ..... PS: I still need help with the "Whos is Online display on a extern page/website" problem but the problem above has prio 100% ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|