The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hello,
I added some custom code of mine to one of the signup php scripts that a user would fill out when they wanted to signup to be a member on our vB board. The trouble was was that it would update my "login" mySQL table in another datbase, however it would then return an error to the user, and not update them in the vBulletin membership tables (it partially adds them). If anyone has done this succesfully and would be able to tell me where i should place my code (which file, which area, etc), it'd be helpful. I get the following error when I try to update: Invalid SQL: INSERT INTO userfield (userid,field1,field2,field3,field4) VALUES (46,'','','','') Thanks |
#2
|
||||
|
||||
Isn't there more to that mySQL error?
|
#3
|
|||
|
|||
Well that is what vB emails me. In register.php, it exists somewhere in the add member IF statement before it updates the database. Then when I start adding my own DB_site2-> (I made a new DB_Sql_vb class declaration) calls, it then busts parts and doesn't let it update all the records in vBulletin's tables, yet it updates my tables. Basically looking to go error free .
|
#5
|
|||
|
|||
I just went to that page and added my username (shellx).
|
#6
|
|||
|
|||
Someone has to have done this!!!!! I think I am editing the right file (global.php won't work from what i've analyzed), but it simply is the fact of trying to get the thing to update my database and not mess up when it tries to update vB's database. It may be in the function calls; I first tried using functions such as mysql_fetch_array, but then I used vB's own class in db_mysql.php to see if that'd fix things. I feel as if I am very close, just need that silver bullet to get this going.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|