The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help locating register function
Hi,
I'm very close to successfully integrating a game server with VB, i am only missing one tiny little thing which i thought would have been the easiest, but is turning out to be the hardest to find I am looking for the registration function that actually adds the user inputed data into the database (username, pass, email...) so that i can modify it to add 2 new bits of data into 2 new columns in my table. I have looked in /register.php and seem to have found everything except for the usual MySQL query i'm used to seeing in these situations. Is VB making use of some other method of writing the data to MySQL (i'm not very experienced in php but i usually manage to find my way around) or is it in some other document? Thanks. |
#2
|
|||
|
|||
If you are including the vB backend you can make use of the datamanager
https://vborg.vbsupport.ru/showthread.php?t=82836 I think you can add extra fields by something like this: PHP Code:
Someone might need to verify it but its worth a try |
#3
|
|||
|
|||
Quote:
I don't know if i add that into the register.php, or if i have to make a new register page? What i have is the following: register.php template is edited to have a dropdown to chose Male or Female gender (to affect the gender of the game character). The values in the html are M and F. Along with all the regular VBulletin data, i need the gender values of either M or F to be inserted into the "user" table (same table as the username, pass, email and so on) into the column "sex". I only know how to do this using a MySQL query such as, for example: PHP Code:
|
#4
|
|||
|
|||
Why are you not using a User Profile Field to let them enter their sex? No need to modify anything for that.
|
#5
|
|||
|
|||
doh *slaps self*
|
#6
|
|||
|
|||
With that is it possible to put the values of "M" or "F" into the user table under the column "sex"? i checked custom fields before trying this and all i see is the ability to add extra options that would go into their profile, and nothing to let me decide what table and column it goes into (which is vital, since the game is programed to look for the users sex in the table "user" under column "sex").
|
#7
|
|||
|
|||
Nope that is not possible, it will be stored in a seperate table.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|