Jump to content


Photo

vB Simple Mod


  • Please log in to reply
4 replies to this topic

#1 ShibSta

ShibSta
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 12 September 2006 - 07:05 AM

Hey, I am new to php but I am wanting to copy each registration that goes through vBulletin (v3.6.0) into another database on the same server.
Also, I'm trying to make it a simple MD5 encryption since I'm completly confused by SALT.
I managed to get the username to copy over but the password is empty.
Can anyone assist me please?

#2 bob2006

bob2006
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts
  • LocationFlorida

Posted 12 September 2006 - 12:07 PM

Paste the code
--Sam Mesic--

#3 ShibSta

ShibSta
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 12 September 2006 - 07:43 PM

Would that not be illegal to post vB code?
Also, I'm not sure exactly what part(s) you'd need to see. This would probably best be answered by someone who works with and/or owns vB.

If it's not illegal I'll post my register.php file with what little mod I've done.
In short... Basically I just added:

$password = $_POST['password'];
$username = $_POST['username'];
$myinsert = "INSERT INTO users VALUES('', '$username', '$password')";
mysql_query($myinsert) or die(mysql_error());

1) This code simply puts in into another table... (I need it in another DB on the same server.)
2) When the code is executed the username is saved but the password does not get written to the DB.
3) There are no errors displayed.


#4 bob2006

bob2006
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts
  • LocationFlorida

Posted 13 September 2006 - 02:47 PM

$password = $_POST['password'];
$username = $_POST['username'];
$myinsert = ("INSERT INTO 'users' (username,password) VALUES
('', '$username', '$password')")
mysql_query($myinsert) or die(mysql_error());


--Sam Mesic--

#5 ShibSta

ShibSta
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 13 September 2006 - 08:48 PM

$password = $_POST['password'];
$username = $_POST['username'];
$myinsert = ("INSERT INTO 'users' (username,password) VALUES
('', '$username', '$password')")
mysql_query($myinsert) or die(mysql_error());


1) That code does not work, give me a MySQL Syntax Error
2) In the error generated by vB it shows ('', 'test', '')... In other words its getting the username but not the password.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users