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 |
#92
|
||||
|
||||
I have this hack installed and it's working great!! I have the code for the admin cp but not in front of me right now. I?ll post a new text file with the corrections.
EDIT Erwin helped me solve my form issues, unrealted to this hack. |
#93
|
||||
|
||||
I got my form problems worked out thanks to Erwin in the php forum.
Anyway, if you want your newly created fields to show up in the admin cp correctly, aka, dropdowns and radios actually come up that way instead of plain old text boxes I've got the code. See my attachment below. I updated Mutt's second revision to the hack. The one that stores everything in the database, the way it should be done. The new text file shows how to alter your admin/user.php file to reflect your new fields. Also, I made the small addition that mayja pointed out so the fields are saved. It was a minor query error. I think you can call it final now, no more bugs. Course, I'm working on adding checkboxes. :banana: BTW, all this is working for me on 2.2.8 |
#94
|
||||
|
||||
I found one more small bug that wasn't displaying the type dropdown correctly when editting a field in the admin cp. It's fixed and the attachment in the above post has been updated.
Doing these checkboxes isn't easy! I'm close though. I wonder if they're including this in vB3. Hope so! |
#95
|
||||
|
||||
Hmmm....I just (re)installed this on version 2.3.0 and everythign is working fine except for none of the cutom fields are showing up in the user's control panel where they edit their profiles. They are showing up on the registration pages and in the admin CP...anyone know what may be the problem?
Would that be an error in member.php or a template of some sort? |
#96
|
||||
|
||||
Look in the "modifyprofile" edit "$customfields" with $customfield I believe...not tested yet...
|
#97
|
||||
|
||||
Quote:
This could all be part of a small change they made in 2.3.0, not sure because I'm using 2.2.8. Post what you edited and then also post the query that updates the mysql with the custom fields. |
#98
|
||||
|
||||
Hey Nomb did you get the checkboxes code working yet?
|
#99
|
|||
|
|||
The user.php code has a couple of errors. In both the 'add user' and the 'edit user' code, the fields are pre-filled with the values of the administrator's profile fields, rather than the user's (or blank in the case of a new record).
Nomb, I'm sure you can figure out how to fix it; but if you'd like me to send you the corrected code I'm using on my site, let me know. |
#100
|
|||
|
|||
i'm still having problems with this. The custom field options won't show up in the User CP. I'm using 2.3.0. The Only thing that was different in the readme was this:
User.php In my User.php(Line 295) : PHP Code:
PHP Code:
PHP Code:
|
#101
|
|||
|
|||
Looks very interesting
Has anyone tried Nomb's latest in 2.2.9? Danglick, maybe you could post the corrected code here...? Also, could this be made to work with Firefly's lite registration hack? Thanks, TMM |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|