The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple selection profile field using MySQL data
I need a user-selectable profile field via a list of names grabbed from MySQL. I have a seperate database containing information for characters in a game. This info is retrieved from a script that reads 2-6 other profile fields (only the first two are required). Each of these user/key sets can reference up to three characters. I have another script that counts the character in the set, and grabs the data for each individual. Now I need another set of profile fields (up to three), in which the user can select which character (if there are multiple characters) should be used for the user/key set.
Say a user has all the user/key fields filled in (these are all for a single forum user). I then have: Code:
userabcd user1234 userzy09 keyabcd key1234 key zy09 Code:
Fooey Alpha 123 Booey Beta 456 Chooey Gamma 789 Preferred way would be to somehow in the User CP have underneath the user/key fields add a box such as: Code:
Account 1 Characters: [0] Fooey [0] Booey [0] Chooey Account 2 Characters: [1] Alpha [1] Beta [1] Gamma Account 3 Characters: [2] 123 [2] 456 [2] 789 Character names are retrieved from MySQL with 'SELECT charactername FROM userinfo WHERE apiuser = "'.$vbulletin->userinfo['field6'].'" ORDER BY charactername' (and field10 and field11 for the other two sets. The database containing userinfo is eveit (same host as the vB database). |
#2
|
|||
|
|||
Bump this.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|