The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Select user profile field inside a user profile field possible?
Hello everyone,
I am trying to add a new user profile field. This user profile field is a 'Single selection menu' I'd like the menu to contain fields 6 to 15 as a selection Is that possible? To make things more realistic, field6 to 15 are player names my members has in their game-server accounts (it auto fills not editable using some php script) I'd like for them to be able to choose a main player from the list |
#2
|
|||
|
|||
Quote:
then add all the fields to that Category from "6" to "11" as you wish |
#3
|
|||
|
|||
I already have that,
How do i make those fields appear in a Single selection menu userfield so that userfield16 can have one of their selection --------------- Added [DATE]1351249095[/DATE] at [TIME]1351249095[/TIME] --------------- Would be glad to get assistance |
#4
|
|||
|
|||
So I take it by the no replies that this isnt possible?
|
#5
|
||||
|
||||
Can you post what you have done and tell us what is wrong with your current set up? And, images of what you want always help as I can't picture what you've done and what you want.
|
#6
|
|||
|
|||
That's going to be abit long but why not.
I have coded my registration page to require a custom field. This field is my users username in a game server I am running In order to make sure they use their username I also added a script that checks if their password match the game password. This part is working great. Then, I added a php schedule task that connects to my sql game server and takes all the players info based on the field they used in registration and adding this info into Players user field category (let's say fields 6-15 10 player limit) You can see this here: Now, After this is working as it should, I am trying to pull more information but I want the members to be able to set a main player (one of the fields) so I can display other stuff like guild, profession etc So to do this, I need to add another custom field called Main Player the members would have to choose from the list of players contained in fields6-15 which one is their main player and this field will be used to pull more information |
#7
|
|||
|
|||
If the field is already created and you have php code that's setting the other fields, you can set the menu options of your Main Player field like this:
Code:
$players = array(); $players[1] = "Rogue"; $players[2] = "Mage"; // etc $menuid = ID; // Change ID to profile field id of menu global $vbulletin; $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "profilefield SET data = '" . $vbulletin->db->escape_string(serialize($players)) . "' WHERE profilefieldid = $menuid"); Note that members won't have any value for this field until they set it themselves, unless you also update the userfield table. |
#8
|
|||
|
|||
I sure hope your members know what you are doing. I for one would never register on a site using the same password I use in a game, same name probably depending on the site, but never the pass.
|
#9
|
|||
|
|||
Quote:
If I can use plugins, which hook do you think is best for this? Quote:
Reminder, this is a private server not a global server (still not relevant to the case ) |
#10
|
|||
|
|||
Quote:
Well, in a post above you said: Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|