The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how to Enterd Users to 2 Table
I want users, after membership (when the database is compiled informations) informations inside a table, another is entered.
The profile of each user is within 2 table. Now there are two for this job: 1 - changed the table name. So that the user profile into the "user" is recorded, within the "users" should be recorded and can be read from there. 2 - I add a query code to vBulletin after this information into its own table (user) will, within the table that I want (users) excitement. (Ie 2 is here) I desired query code. I searched the register.php code. But a good place to put the query code did not. Because to enter the user profile database function is used. I hope you understand my order .... please help me to do this job. |
#2
|
|||
|
|||
From the looks of it you would create a new plugin Plugins & Products > Add New Plugin . Use the hook register_addmember_complete . Then use code similar to below:
PHP Code:
Any time a person registers then the data you specify from the registration process will be inserted into your other table, granted it is in the same database. You would need additional code if it was a separate database. Unfortunately I do not know the variable names for all the data being posted, you may need someone with more knowledge on that to help. |
#3
|
||||
|
||||
Thank you so much from the answer
I know the name of the destination table fields. But I do not know what function, for example username is located. Please name the function that the user name and password ... Say they are. Now I put this code and the error was related to the database: PHP Code:
|
#4
|
||||
|
||||
Please Help Me...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|