The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Hey there
I'm still trying to learn all of this and damn this is cool ****. Anyway, I installed the gender hack and was going to use it to install another profile select box. Then I saw the very cool CP tool for adding a field to the profile. It currently only allows you to add a input box. I decieded to modify it so I could add my select box from there. It wasn't very hard and the hack is pretty short. Here it is in a nutshell I added a textarea field to the add/edit profile field if you want the new field to be a dropdown, you enter the dropdown values. each line represents a new option tag. Ex. you want a new field called "sex" that is a drop down with the choices male,female, and other. Make the new field as usual. Set Field Length. (1 would be a standard dropdown) Set Maximum Input (I'd leave it at 250) In the Select Box Items text area type Male Female Other each on it's own line. UPDATED for v224 with vbHacker Click thru for the updated version Show Your Support
|
Comments |
#122
|
||||
|
||||
[QUOTE]06-04-03 at 04:42 PM Nomb said this in Post #113
CODE [/php] Basically, all the instances of $bbuserinfo have been changed to $userfield which is from the query above this block of code in user.php. Remember to replace this twice. [/B] |
#123
|
||||
|
||||
I can't get this to work on 2.3.2. It just shows static text boxes.
I tried everything I could figure out on this thread to no avail. I got confused on which instructions to use but I tried both and with all the fixes and no go. Boo hoo for me. :disappointed: |
#124
|
||||
|
||||
Wow! I can't believe it! I used phpMyAdmin and changed the field TYPE (all caps) to type in the profilefield table and voila - it works! Damn case sensitive server/database!
Also, I set the default value (again with phpMyAdmin) of this field to 1, as in textbox. And another tweek, I used the vBulletin Admin Control Panel to change the field size to 1 and now it's a dropdown box. Oh, and I edited this post with the most recent copy and edits of the install instructions text file, hopefully to help the next person out. This is working on my vBulletin 2.3.2 Have fun and vBulletin forever! :banana: |
#125
|
|||
|
|||
Quote:
I first installed this hack without looking at all the replies afterwards, so I ended up having to plug all the holes with my own fixes.. =( seems like this is the only one that hasn't been plugged by you guys yet. Here's my fix to this problem, I don't know if it's the most efficient, but it works: Find in user.php, under the "edit" subroutine: PHP Code:
PHP Code:
|
#126
|
|||
|
|||
^ oh yea, and this is in conjunction with nomb's "replace $bbuserinfo w/ $userfield" fix.
|
#127
|
||||
|
||||
Monarch...do you think you could possibly fix that txt without all those Blocks and stuff, it is very hard to read.
|
#128
|
||||
|
||||
I second that. Themonarch - could you please fix?
|
#129
|
|||
|
|||
Following all these instructions I've yet been able to pull up a user's choice as default choice when editing a profile. It still show's whatever field is default, in my case "None" rather than whatever the user has selected.
This means every time I have to edit a profile to flag them for whatever feature we have I have to double check their profile for what that field is suppose to be. Has anybody been able to make the system show the user's selection rather than default when editing user profile through admin? |
#130
|
|||
|
|||
I know it's late in the game, but I have a request. Hopefully someone still cares and can tell me how to do this.
I installed this with all the fixes and it works fine on 2.34. What I'd like though is to have check boxes instead of a single selection. I would like people to be able to make multiple selections. I added checkboxes and that works, only it doesnt save all selected fields, just the last one. I can't figure it out, can anyone help me out here? Thanks! |
#131
|
|||
|
|||
does this work on the latest version?
|
#132
|
|||
|
|||
This is a great hack, I've had it installed on my board since the beginning. I'm hoping to tweak it, though. I have drop-down boxes for required fields, and the default is the first field in the list. If a user doesn't actively select a different option from each drop-down, the default is what ends up as part of their profile. I'd like to avoid this issue, forcing new registrants to actually select an option. I would imagine this would involve adding an extra field for each drop down that says "Make a selection" - that part is easy.
What I'm wondering how to do is, how do I get the system to return an error if they do not make a selection? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|